blob: 02ab4a893cc7ce8b6d1040cf15153314455abc67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "cardmanageradaptor.h"
CardManagerAdaptor::CardManagerAdaptor(CardManager *parent)
: QDBusAbstractAdaptor(parent),
_conn(QDBusConnection::sessionBus()),
_mgr(parent)
{
setAutoRelaySignals(true);
}
QDBusObjectPath CardManagerAdaptor::CreateDeck(const QString &application, const QDBusMessage &msg)
{
QString sender = msg.service();
CardDeck *deck = new CardDeck(sender, application, _mgr);
QDBusObjectPath path("/com/javispedro/saltoq/CardManager/" + application);
deck->setObjectName(application);
_mgr->installDeck(deck);
_decks.insert(path, deck);
return path;
}
|