diff options
author | Javier <dev.git@javispedro.com> | 2015-04-21 00:47:30 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-04-21 00:47:30 +0200 |
commit | 6662f40aff76e0700d82237261774758981bf784 (patch) | |
tree | 45617cf6b00b9e7e84da685abd216bd4278513f0 /saltoqd/cardmanageradaptor.h | |
parent | e9628b70189b9acb84705693e155e10700f21177 (diff) | |
download | saltoq-6662f40aff76e0700d82237261774758981bf784.tar.gz saltoq-6662f40aff76e0700d82237261774758981bf784.zip |
forward some types of notification icons
Diffstat (limited to 'saltoqd/cardmanageradaptor.h')
-rw-r--r-- | saltoqd/cardmanageradaptor.h | 30 |
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 |