summaryrefslogtreecommitdiff
path: root/saltoqd/cardmanageradaptor.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-04-21 00:47:30 +0200
committerJavier <dev.git@javispedro.com>2015-04-21 00:47:30 +0200
commit6662f40aff76e0700d82237261774758981bf784 (patch)
tree45617cf6b00b9e7e84da685abd216bd4278513f0 /saltoqd/cardmanageradaptor.h
parente9628b70189b9acb84705693e155e10700f21177 (diff)
downloadsaltoq-6662f40aff76e0700d82237261774758981bf784.tar.gz
saltoq-6662f40aff76e0700d82237261774758981bf784.zip
forward some types of notification icons
Diffstat (limited to 'saltoqd/cardmanageradaptor.h')
-rw-r--r--saltoqd/cardmanageradaptor.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/saltoqd/cardmanageradaptor.h b/saltoqd/cardmanageradaptor.h
new file mode 100644
index 0000000..e0f613d
--- /dev/null
+++ b/saltoqd/cardmanageradaptor.h
@@ -0,0 +1,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