message queued tested
[tpsession] / tpsession-0.1 / tests / smstest / testprog.h
1 #ifndef TESTPROG_H
2 #define TESTPROG_H
3
4 #include <QObject>
5 #include <QDebug>
6 #include "tpsession.h"
7 #include "tpsessionaccount.h"
8
9
10 class TestProg : public QObject
11 {
12     Q_OBJECT
13 public:
14   TestProg(QString addr,QString msg);
15 public slots:
16     void onAccountReady(TpSessionAccount *);
17     void onMessageReceived(const Tp::ReceivedMessage &,TpSessionAccount *);
18     void onMessageQueued(TpSessionAccount *acc,bool status);
19 private:
20     QString address;
21     QString message;
22     TpSession* tps;
23 };
24
25 #endif // TESTPROG_H