| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
#ifndef ACCOUNTSERVICEINTERFACE_H |
| 12 |
#define ACCOUNTSERVICEINTERFACE_H |
| 13 |
|
| 14 |
#include <QtCore/QObject> |
| 15 |
#include <QtCore/QByteArray> |
| 16 |
#include <QtCore/QList> |
| 17 |
#include <QtCore/QMap> |
| 18 |
#include <QtCore/QString> |
| 19 |
#include <QtCore/QStringList> |
| 20 |
#include <QtCore/QVariant> |
| 21 |
#include <QtDBus/QtDBus> |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
class AccountServiceInterface: public QDBusAbstractInterface |
| 27 |
{ |
| 28 |
Q_OBJECT |
| 29 |
public: |
| 30 |
static inline const char *staticInterfaceName() |
| 31 |
{ return "org.dekkoproject.AccountService"; } |
| 32 |
|
| 33 |
public: |
| 34 |
AccountServiceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); |
| 35 |
|
| 36 |
~AccountServiceInterface(); |
| 37 |
|
| 38 |
public Q_SLOTS: |
| 39 |
inline QDBusPendingReply<QList<quint64> > queryAccounts(const QByteArray &accountKey, const QByteArray &sortKey, int limit) |
| 40 |
{ |
| 41 |
QList<QVariant> argumentList; |
| 42 |
argumentList << QVariant::fromValue(accountKey) << QVariant::fromValue(sortKey) << QVariant::fromValue(limit); |
| 43 |
return asyncCallWithArgumentList(QStringLiteral("queryAccounts"), argumentList); |
| 44 |
} |
| 45 |
|
| 46 |
inline QDBusPendingReply<> removeAccount(qulonglong id) |
| 47 |
{ |
| 48 |
QList<QVariant> argumentList; |
| 49 |
argumentList << QVariant::fromValue(id); |
| 50 |
return asyncCallWithArgumentList(QStringLiteral("removeAccount"), argumentList); |
| 51 |
} |
| 52 |
|
| 53 |
Q_SIGNALS: |
| 54 |
void accountRemoved(qulonglong id); |
| 55 |
}; |
| 56 |
|
| 57 |
#endif |