Debian Codegraph @

Dekko/backend/accounts/service/AccountServiceClient.h

raw symbols SCIP
1 #ifndef ACCOUNTSERVICECLIENT_H
2 #define ACCOUNTSERVICECLIENT_H
3
4 #include <QObject>
5 #include <QtDBus>
6 #include <QDBusPendingReply>
7 #include <qmailaccountkey.h>
8 #include <qmailaccountsortkey.h>
9 #include "AccountServiceInterface.h"
10
11 typedef QDBusPendingReply<QList<quint64> > IdReply;
12
13 class AccountServiceClient : public QObject
14 {
15 Q_OBJECT
16 public:
17 explicit AccountServiceClient(QObject *parent = 0);
18
19 void removeAccount(const QMailAccountId &id);
20
21 IdReply queryAccounts(const QMailAccountKey &accountKey = QMailAccountKey(), const QMailAccountSortKey &sortKey = QMailAccountSortKey(), const int &limit = 0);
22
23 signals:
24 void accountRemoved(QMailAccountId &id);
25
26 private slots:
27 void handleRemoved(const quint64 &id);
28
29 private:
30 AccountServiceInterface *m_service;
31 };
32
33 #endif // ACCOUNTSERVICECLIENT_H