First commit
[hidecallerid] / src / tpsession.h
1 #ifndef TPSESSION_H
2 #define TPSESSION_H
3
4 #include <QObject>
5 #include <TelepathyQt4/AccountManager>
6
7 using namespace Tp;
8
9 class tpSession : public QObject
10 {
11     Q_OBJECT
12
13 public:
14     tpSession();
15     ~tpSession() {}
16     void setPrivacy(bool showId);
17     void retrievePrivacy();
18
19 private Q_SLOTS:
20     void onAMReady(Tp::PendingOperation *op);
21     void onAccountHaveConnectionChanged(bool value);
22     void onSetPrivacyFinished(Tp::PendingOperation *op);
23     void onGotPrivacy(QDBusPendingCallWatcher *op);
24     void onPropertyChanged(const QVariantMap& properties);
25
26 private:
27     AccountManagerPtr mAM;
28     AccountPtr mAccount;
29     ConnectionPtr mConnection;
30     bool showId;
31
32 signals:
33     void privacyUpdated(bool showId);
34 };
35
36 #endif // TPSESSION_H