summaryrefslogtreecommitdiff
path: root/tests/QtReactor_Test.h
diff options
context:
space:
mode:
authormbrudka <mbrudka@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-07-11 23:52:11 +0000
committermbrudka <mbrudka@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-07-11 23:52:11 +0000
commit64165eef7e2d280b25d59708961f1063df93ef26 (patch)
treee992bff9e8bcdddc78ba5187fed6c364c4d802e9 /tests/QtReactor_Test.h
parent0ea4c0af0858d55381252495a52c331e4301fbcb (diff)
downloadATCD-64165eef7e2d280b25d59708961f1063df93ef26.tar.gz
ChangeLogTag: Mon Jul 12 01:31:53 2004 Marek Brudka <mbrudka@elka.pw.edu.pl>
Diffstat (limited to 'tests/QtReactor_Test.h')
-rw-r--r--tests/QtReactor_Test.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/QtReactor_Test.h b/tests/QtReactor_Test.h
new file mode 100644
index 00000000000..e2ce413521e
--- /dev/null
+++ b/tests/QtReactor_Test.h
@@ -0,0 +1,26 @@
+/* -*- C++ -*- */
+// $Id$
+#ifndef QTREACTOR_TEST_H
+#define QTREACTOR_TEST_H
+
+#ifdef ACE_HAS_QT
+#include <qapplication.h>
+#include <qtimer.h>
+
+class QTestApplication: public QApplication
+{
+ Q_OBJECT
+public:
+ typedef QApplication inherited;
+public:
+ QTestApplication( int argc, char *argv[] );
+ virtual void exec( int msec = 0 );
+public slots:
+ virtual void finishTest(); //!< slot to finish the test, connected to finishTimer_
+private:
+ QTimer finishTimer_; //!< timer to finish the test
+};
+
+#endif /*ACE_HAS_QT*/
+
+#endif /*QTREACTOR_TEST_H*/