ArtMOO
|
00001 #ifndef MOOAPP_H 00002 #define MOOAPP_H 00003 00004 #include <QList> 00005 #include <QMutex> 00006 #include <QObject> 00007 00008 #include <lua.hpp> 00009 00010 #include "taskentry.h" 00011 00012 class mooApp : public QObject 00013 { 00014 Q_OBJECT 00015 00016 public: 00017 explicit mooApp( const QString &pDataFileName = "moo.dat", QObject *pParent = 0 ); 00018 00019 virtual ~mooApp(); 00020 00021 signals: 00022 void textOutput( const QString &pText ); 00023 00024 public slots: 00025 void doTask( TaskEntry &pTask ); 00026 void cleanup( QObject *pObject = 0 ); 00027 00028 private slots: 00029 void doOutput( const QString &pText ); 00030 00031 private: 00032 int mTimerId; 00033 const QString mDataFileName; 00034 00035 static void streamCallback( const QString &pText, void *pUserData ); 00036 00037 void timerEvent( QTimerEvent *pEvent ); 00038 }; 00039 00040 #endif // MOOAPP_H