equal
deleted
inserted
replaced
13 |
13 |
14 #define MSG_EVENT 65432 |
14 #define MSG_EVENT 65432 |
15 |
15 |
16 class Monitor; |
16 class Monitor; |
17 |
17 |
18 class DataChangeEvent : public QEvent { |
18 class DataChangeEvent:public QEvent { |
19 public: |
19 public: |
20 DataChangeEvent(QString msg_) |
20 DataChangeEvent (QString msg_) |
21 : QEvent((QEvent::Type)MSG_EVENT) |
21 :QEvent ((QEvent::Type) MSG_EVENT) { |
22 { |
22 msg = msg_; |
23 msg = msg_; |
|
24 |
23 |
25 } |
24 } |
26 |
25 QString Text () const { |
27 QString Text() const { return msg; } |
26 return msg; |
28 private: |
27 } |
29 QString msg; |
28 private: |
|
29 QString msg; |
30 }; |
30 }; |
31 |
31 |
32 class readerThread : public QThread { |
32 class readerThread:public QThread { |
33 public: |
33 public: |
34 readerThread(Monitor*); |
34 readerThread (Monitor *); |
35 virtual void run(); |
35 virtual void run (); |
36 private: |
36 private: |
37 Monitor *handle; |
37 Monitor * handle; |
38 }; |
38 }; |
39 |
39 |
40 #endif |
40 #endif |