| 1 |
#ifndef ACCOUNTSERVICEWORKER_H |
| 2 |
#define ACCOUNTSERVICEWORKER_H |
| 3 |
|
| 4 |
#include <QObject> |
| 5 |
#include <QtDBus> |
| 6 |
|
| 7 |
class AccountServiceWorker : public QObject |
| 8 |
{ |
| 9 |
Q_OBJECT |
| 10 |
Q_CLASSINFO("D-Bus Interface", "org.dekkoproject.AccountService") |
| 11 |
public: |
| 12 |
explicit AccountServiceWorker(QObject *parent = 0); |
| 13 |
|
| 14 |
public slots: |
| 15 |
void removeAccount(const quint64 &id); |
| 16 |
|
| 17 |
QList<quint64> queryAccounts(const QByteArray &accountKey = QByteArray(), const QByteArray &sortKey = QByteArray(), const int &limit = 0); |
| 18 |
|
| 19 |
signals: |
| 20 |
void accountRemoved(const quint64 &id); |
| 21 |
}; |
| 22 |
|
| 23 |
#endif |