You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.6 KiB
61 lines
1.6 KiB
#ifndef __OBJECTEVENTREPORT_H_INCL__
|
|
#define __OBJECTEVENTREPORT_H_INCL__
|
|
|
|
#include <time.h>
|
|
#include <vector>
|
|
#include "../base/basicFunctionality.h"
|
|
#include "../base/basicEventHandler.h"
|
|
#include "../../data/storage/storageProvider.h"
|
|
#include "../base/basicSettings.h"
|
|
#include "../base/basicReportRecord.h"
|
|
#include "../base/basicCamera.h"
|
|
/**
|
|
* TODO: Add class description
|
|
*
|
|
* @author Gagua
|
|
*/
|
|
|
|
typedef std::vector<char*> Rere;
|
|
|
|
class objectEventReport : public basicEventHandler {
|
|
private:
|
|
storageProvider * m_pStorageProvider;
|
|
basicSettings * m_pSettingsEngine;
|
|
char m_pReportFileName[MAX_PATH];
|
|
bool addVideoRecord( CSTR fileName );
|
|
bool addSnapshot(CSTR fileName);
|
|
bool addGenericEvent( basicEvent *Evt );
|
|
Rere m_vLoaddedReports;
|
|
public:
|
|
static objectEventReport *getInstance(void);
|
|
bool bindCamera( basicCamera * tPtr );
|
|
virtual ~objectEventReport(void);
|
|
void dispatchEvent(basicEvent *Evt);
|
|
bool loadReportList(struct tm *LTM);
|
|
Rere * getLoaddedReports(void);
|
|
private:
|
|
static objectEventReport *_instance;
|
|
protected:
|
|
objectEventReport(void);
|
|
};
|
|
|
|
|
|
// TODO: Uncomment the copy constructor when you need it.
|
|
//inline objectEventReport::objectEventReport(const objectEventReport& src)
|
|
//{
|
|
// // TODO: copy
|
|
//}
|
|
|
|
// TODO: Uncomment the assignment operator when you need it.
|
|
//inline objectEventReport& objectEventReport::operator=(const objectEventReport& rhs)
|
|
//{
|
|
// if (this == &rhs) {
|
|
// return *this;
|
|
// }
|
|
//
|
|
// // TODO: assignment
|
|
//
|
|
// return *this;
|
|
//}
|
|
|
|
#endif // __OBJECTEVENTREPORT_H_INCL__
|