#ifndef LOOPVIDEORECORDER_H
|
#define LOOPVIDEORECORDER_H
|
|
#include <iostream>
|
#include <thread>
|
#include <functional>
|
#include <unistd.h>
|
#include "VideoRecorder.h"
|
#include <QtCore/QObject>
|
#include "TimerElement.h"
|
#include <queue>
|
|
class LoopVideoRecorder : public TimerElement {
|
|
public:
|
explicit LoopVideoRecorder(int interval, std::string index, std::string rtsp,std::string pathId,LDBTool* db_c);
|
|
~LoopVideoRecorder();
|
|
void loopRecordVideo();
|
|
void stopTimer();
|
|
private:
|
virtual void timerFunc() override;
|
std::string getFullFileName();
|
|
private:
|
std::string m_nIndex;
|
std::string m_strRtsp;
|
std::string m_pathId;
|
int m_nInterval;
|
VideoRecorder *m_pVideoRcd;
|
std::queue<VideoRecorder *> m_queManager;
|
LDBTool* m_db;
|
};
|
|
#endif // LOOPVIDEORECORDER_H
|