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.

41 lines
800 B

7 years ago
​
​
​
7 years ago
​
​
7 years ago
7 years ago
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
​
  1. #ifndef __OBJECTCLILOGGINGSERVICE_H_INCL__
  2. #define __OBJECTCLILOGGINGSERVICE_H_INCL__
  3. #include "../../cli/cliClass.h"
  4. #include "../base/basicFunctionality.h"
  5. #include "../base/basicLoggingService.h"
  6. #include <time.h>
  7. #ifndef NEWT_CLI
  8. #include "../base/basicNCursesEngine.h"
  9. #endif
  10. /**
  11. * TODO: Add class description
  12. *
  13. * @author Gagua
  14. */
  15. class objectCliLoggingService : public basicLoggingService, public WindowCLI
  16. {
  17. private:
  18. bool m_bLogging;
  19. char ** m_ppLines;
  20. int m_iLinesCount;
  21. newtComponent m_t[22];
  22. newtComponent m_b1, m_b2;
  23. public:
  24. // Constructor
  25. objectCliLoggingService();
  26. // Destructor
  27. ~objectCliLoggingService();
  28. void logMessage(CSTR Msg);
  29. void logMessage(const char * Msg);
  30. void paint(void);
  31. };
  32. #endif // __OBJECTCLILOGGINGSERVICE_H_INCL__