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.

51 lines
1.3 KiB

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