We now have a current svn snapshot of libqxt in our contrib dir, and
[quassel.git] / src / contrib / libqxt-2007-10-24 / tests / QxtFileLock / src / threadtestcontroller.h
1 #ifndef THREADTESTCONTROLLER_H
2 #define THREADTESTCONTROLLER_H
3
4 #include <QObject>
5
6 /**
7         @author Benjamin Zeller <zbenjamin@libqxt.org>
8 */
9
10
11 /**
12  * the test controller controls the client over a QTcpSocker port 55555
13  * there are some controll commands
14  * n : start next test
15  * a : abort testing
16  * from the client there are two possible answers
17  * s: the test succeeded
18  * f: the test failed
19  */
20
21 class QTcpServer;
22
23 class ThreadTestController : public QObject
24 {
25     Q_OBJECT
26     public:
27         ThreadTestController(QObject *parent = 0);
28         ~ThreadTestController();
29         bool startTests();
30         
31     public slots:
32         void doTests();
33         
34     private:
35         QTcpServer *server;
36
37 };
38
39 #endif