#ifndef RM_TEST_PROCESS_H #define RM_TEST_PROCESS_H #if (RM_TESTING) #include #include #include #include "../core/rm_player.h" #include "../core/rm_player_base.h" //#define DVR_TESTER_VERSION "0.2" class RMTestProcess : public QObject { Q_OBJECT public: explicit RMTestProcess(QObject *parent,QString path); bool isRunning(); QString filePath; int count(); // OPTION private: bool _optionLogDrawFrame; // 프레임 DRAW 확인 bool _optionLogFileName; // 재생 파일명 확인 int _nextFileTimeout; // 다음파일 대기 QTimer* _nextFileWatchTimer; // 다음파일 대기 타이머 private: QString lastFileName; private: void load(QString path); QList processes; bool _running; int _loop; QTimer* _timer; qint64 _processDelay; QElapsedTimer elapsedTimer; int _processIndex; void connectEvents(); void makeClick(QWidget* control,float x = -1.0f); //bool _waitForEvent; PLAY_EVENT _waitPlayEvent; // 대기중 플레이 이벤트 float parseRandFloat(QString range); int parseRandInt(QString range); signals: void timer(qint64 timer); void loopChange(int loop); void statusChange(QString message); void log(QString log); void error(QString error); public slots: void onRun(); void onStop(); void onSyncTime(); void onProcessNext(); void onLoadingListEnd(bool bLoading); void onPlayEvent(PLAY_EVENT event,RMVideoItem* item); void onFileTimeout(); }; #endif #endif // RM_TEST_PROCESS_H