#ifndef __OBJECTEVENTREPORT_H_INCL__ #define __OBJECTEVENTREPORT_H_INCL__ #include #include #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 struct S_REPORT_RECORD { uint32_t ms; //4 uint16_t ums; //2 uint8_t cls_id; //1 uint8_t type; //1 uint32_t src; //4 uint8_t media_type; //1 uint32_t media_marker; //4 uint8_t media_count; //1 //----------------------------------- 18 bytes = Fixed Size Header char ** media_names; uint16_t data_size; void * data; }REPORT_RECORD; typedef std::vector Rere; class mediaVideoSourceManager; class objectEventReport : public basicEventHandler { private: storageProvider * m_pStorageProvider; basicSettings * m_pSettingsEngine; mediaVideoSourceManager * m_pMediaManager; char m_pReportFileName[MAX_PATH]; bool saveReportRecord(REPORT_RECORD *Record); bool getMedia(REPORT_RECORD* Record); bool prefill(REPORT_RECORD* Record); REPORT_RECORD * loadReportRecord(FILE* FD); Rere m_vLoaddedReports; public: static objectEventReport *getInstance(void); 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__