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

7 years ago
​
​
​
7 years ago
​
​
​
​
7 years ago
​
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __OBJECTEVENTREPORT_H_INCL__
  2. #define __OBJECTEVENTREPORT_H_INCL__
  3. #include <time.h>
  4. #include <vector>
  5. #include "../base/basicFunctionality.h"
  6. #include "../base/basicEventHandler.h"
  7. #include "../../data/storage/storageProvider.h"
  8. #include "../base/basicSettings.h"
  9. #include "../base/basicReportRecord.h"
  10. #include "../base/basicCamera.h"
  11. /**
  12. * TODO: Add class description
  13. *
  14. * @author Gagua
  15. */
  16. typedef std::vector<char*> Rere;
  17. class objectEventReport : public basicEventHandler {
  18. private:
  19. storageProvider * m_pStorageProvider;
  20. basicSettings * m_pSettingsEngine;
  21. char m_pReportFileName[MAX_PATH];
  22. bool addVideoRecord( CSTR fileName );
  23. bool addSnapshot(CSTR fileName);
  24. bool addGenericEvent( basicEvent *Evt );
  25. Rere m_vLoaddedReports;
  26. public:
  27. static objectEventReport *getInstance(void);
  28. bool bindCamera( basicCamera * tPtr );
  29. virtual ~objectEventReport(void);
  30. void dispatchEvent(basicEvent *Evt);
  31. bool loadReportList(struct tm *LTM);
  32. Rere * getLoaddedReports(void);
  33. private:
  34. static objectEventReport *_instance;
  35. protected:
  36. objectEventReport(void);
  37. };
  38. // TODO: Uncomment the copy constructor when you need it.
  39. //inline objectEventReport::objectEventReport(const objectEventReport& src)
  40. //{
  41. // // TODO: copy
  42. //}
  43. // TODO: Uncomment the assignment operator when you need it.
  44. //inline objectEventReport& objectEventReport::operator=(const objectEventReport& rhs)
  45. //{
  46. // if (this == &rhs) {
  47. // return *this;
  48. // }
  49. //
  50. // // TODO: assignment
  51. //
  52. // return *this;
  53. //}
  54. #endif // __OBJECTEVENTREPORT_H_INCL__