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.

38 lines
896 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __OBJECTCLILOGGINGSERVICE_H_INCL__
  2. #define __OBJECTCLILOGGINGSERVICE_H_INCL__
  3. #include <time.h>
  4. #include "../base/basicFunctionality.h"
  5. #include "../base/basicLoggingService.h"
  6. #include "../../cli/cliClass.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. private:
  17. bool m_bLogging;
  18. char **m_ppLines;
  19. int m_iLinesCount;
  20. newtComponent m_t[22];
  21. newtComponent m_b1, m_b2;
  22. public:
  23. // Constructor
  24. objectCliLoggingService();
  25. // Destructor
  26. ~objectCliLoggingService();
  27. void logMessage( CSTR Msg );
  28. void logMessage( const char *Msg );
  29. void paint( void );
  30. };
  31. #endif // __OBJECTCLILOGGINGSERVICE_H_INCL__