summaryrefslogtreecommitdiff
path: root/saltoqd/cardmanageradaptor.h
blob: e0f613dee8758ebf196d7d5b0d4b0ad657917d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef CARDMANAGERADAPTOR_H
#define CARDMANAGERADAPTOR_H

#include <QtDBus/QDBusConnection>
#include <QtDBus/QDBusAbstractAdaptor>
#include <QtDBus/QDBusMessage>
#include <QtDBus/QDBusObjectPath>

#include "cardmanager.h"

class CardManagerAdaptor : public QDBusAbstractAdaptor
{
	Q_OBJECT
	Q_CLASSINFO("D-Bus Interface", "com.javispedro.saltoq.CardManager")

public:
	explicit CardManagerAdaptor(CardManager *parent = 0);

signals:

public slots:
	QDBusObjectPath CreateDeck(const QString &application, const QDBusMessage &msg);

private:
	QDBusConnection _conn;
	CardManager *_mgr;
	QHash<QDBusObjectPath, CardDeck*> _decks;
};

#endif // CARDMANAGERADAPTOR_H