tpsession initial import
[tpsession] / tpsession-0.1 / tests / smstest / testprog.h
diff --git a/tpsession-0.1/tests/smstest/testprog.h b/tpsession-0.1/tests/smstest/testprog.h
new file mode 100644 (file)
index 0000000..9bd16dc
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef TESTPROG_H
+#define TESTPROG_H
+
+#include <QObject>
+#include <QDebug>
+#include "tpsession.h"
+#include "tpsessionaccount.h"
+
+
+class TestProg : public QObject
+{
+    Q_OBJECT
+public:
+  TestProg(QString addr,QString msg);
+public slots:
+    void onAccountReady(TpSessionAccount *);
+    void onMessageReceived(const Tp::ReceivedMessage &,TpSessionAccount *);
+private:
+    QString address;
+    QString message;
+    TpSession* tps;
+};
+
+#endif // TESTPROG_H