TesterApplication.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef UTILS__CALITKO_MOCKS__TESTER_APPLICATION_H
00024 #define UTILS__CALITKO_MOCKS__TESTER_APPLICATION_H
00025
00026 #include "Imports.h"
00027
00028 namespace Utils {
00029 namespace CalitkoMocks {
00030
00032
00045 class TesterApplication : public QCoreApplication
00046 {
00047 Q_OBJECT
00048
00049 public:
00050 TesterApplication (int & argc, char ** argv);
00051 static int exec (int maxTime);
00052 bool notify (QObject * receiver, QEvent * event);
00053
00054 private slots:
00055 void timeout();
00056
00057 private:
00058 auto_ptr <CPPUNIT_NS::Exception> cppUnitException;
00059 QTimer timeoutTimer;
00060 };
00061
00062 }
00063 }
00064
00065 #endif // UTILS__CALITKO_MOCKS__TESTER_APPLICATION_H