#ifndef LOOPRECORDVIDEOI_H
|
#define LOOPRECORDVIDEOI_H
|
|
#include "RecordVideo.h"
|
#include <iostream>
|
#include <thread>
|
#include <QtCore/QMap>
|
#include "LoopVideoRecorder.h"
|
#include "TimerElement.h"
|
#include <mutex>
|
#include "../VideoServer/QiaoJia/DB/LDBTool.h"
|
class LoopRecordVideoI : public ::RecordVideo::LoopRecorder, TimerElement {
|
public:
|
LoopRecordVideoI(int interval = 10000);
|
|
~LoopRecordVideoI();
|
|
::std::string addCamera(const ::std::string &index, const ::std::string &t_rtsp, const ::Ice::Current & = ::Ice::emptyCurrent);
|
|
void removeCamera(const ::std::string &index, const ::Ice::Current & = ::Ice::emptyCurrent);
|
|
void clearCamera(const ::Ice::Current & = ::Ice::emptyCurrent);
|
|
void feedDog(const ::std::string &index, const ::Ice::Current & = ::Ice::emptyCurrent);
|
|
void timerFunc();
|
|
private:
|
|
QMap<std::string, LoopVideoRecorder *> m_mapRecorders;
|
QMap<std::string, QDateTime> m_mapFeedDogTime;
|
std::mutex m_mutex;
|
std::mutex m_map_mutex;
|
LDBTool* db_c;
|
};
|
|
#endif // LOOPRECORDVIDEOI_H
|