| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
#ifndef ACCOUNTSERVICEADAPTOR_H |
| 13 |
#define ACCOUNTSERVICEADAPTOR_H |
| 14 |
|
| 15 |
#include <QtCore/QObject> |
| 16 |
#include <QtDBus/QtDBus> |
| 17 |
QT_BEGIN_NAMESPACE |
| 18 |
class QByteArray; |
| 19 |
template<class T> class QList; |
| 20 |
template<class Key, class Value> class QMap; |
| 21 |
class QString; |
| 22 |
class QStringList; |
| 23 |
class QVariant; |
| 24 |
QT_END_NAMESPACE |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
class AccountServiceAdaptor: public QDBusAbstractAdaptor |
| 30 |
{ |
| 31 |
Q_OBJECT |
| 32 |
Q_CLASSINFO("D-Bus Interface", "org.dekkoproject.AccountService") |
| 33 |
Q_CLASSINFO("D-Bus Introspection", "" |
| 34 |
" <interface name=\"org.dekkoproject.AccountService\">\n" |
| 35 |
" <signal name=\"accountRemoved\">\n" |
| 36 |
" <arg direction=\"out\" type=\"t\" name=\"id\"/>\n" |
| 37 |
" </signal>\n" |
| 38 |
" <method name=\"removeAccount\">\n" |
| 39 |
" <arg direction=\"in\" type=\"t\" name=\"id\"/>\n" |
| 40 |
" </method>\n" |
| 41 |
" <method name=\"queryAccounts\">\n" |
| 42 |
" <arg direction=\"in\" type=\"ay\" name=\"accountKey\"/>\n" |
| 43 |
" <arg direction=\"in\" type=\"ay\" name=\"sortKey\"/>\n" |
| 44 |
" <arg direction=\"in\" type=\"i\" name=\"limit\"/>\n" |
| 45 |
" <arg direction=\"out\" type=\"(iiii)\" name=\"accounts\"/>\n" |
| 46 |
" <annotation value=\"QList<quint64>\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n" |
| 47 |
" </method>\n" |
| 48 |
" </interface>\n" |
| 49 |
"") |
| 50 |
public: |
| 51 |
AccountServiceAdaptor(QObject *parent); |
| 52 |
virtual ~AccountServiceAdaptor(); |
| 53 |
|
| 54 |
public: |
| 55 |
public Q_SLOTS: |
| 56 |
QList<quint64> queryAccounts(const QByteArray &accountKey, const QByteArray &sortKey, int limit); |
| 57 |
void removeAccount(qulonglong id); |
| 58 |
Q_SIGNALS: |
| 59 |
void accountRemoved(qulonglong id); |
| 60 |
}; |
| 61 |
|
| 62 |
#endif |