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.

29 lines
706 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __EVENT_VIEW_WIDGET_HEADER__
  2. #define __EVENT_VIEW_WIDGET_HEADER__
  3. #include "../gui.h"
  4. #include "../../components/base/basicEventHandler.h"
  5. #include "../../components/base/basicMutex.h"
  6. typedef struct{
  7. E_basicEventTypeID evtType;
  8. char msg[256];
  9. } EVListItem;
  10. typedef std::vector<EVListItem> vectorEVLI;
  11. class EventViewerList: public QListWidget, public basicEventHandler{
  12. private:
  13. basicMutex m_oLinesProtector;
  14. vectorEVLI m_vLines;
  15. QTimer *m_pStatusTimer;
  16. private slots:
  17. void handleTimer( void );
  18. protected:
  19. public:
  20. explicit EventViewerList( QWidget *parent = NULL );
  21. ~EventViewerList();
  22. void dispatchEvent(basicEvent *Evt);
  23. };
  24. #endif