Line | |
---|
1 | // MotorThreadDialog.h: Schnittstelle für die Klasse MotorThreadController.
|
---|
2 | //
|
---|
3 | //////////////////////////////////////////////////////////////////////
|
---|
4 |
|
---|
5 | #ifndef MOTORTHREADDIALOG_H
|
---|
6 | #define MOTORTHREADDIALOG_H
|
---|
7 |
|
---|
8 |
|
---|
9 | #include "motorthreaddialogbase.h"
|
---|
10 | #include <qlist.h>
|
---|
11 | #include <qthread.h>
|
---|
12 |
|
---|
13 | #define MAX_THREADS 8
|
---|
14 |
|
---|
15 | //class MagicMirror;
|
---|
16 | class MotorThreadController;
|
---|
17 | class QSemaphore;
|
---|
18 |
|
---|
19 | class MotorThreadDialog : public MotorThreadDlgBase, public QThread
|
---|
20 | {
|
---|
21 | Q_OBJECT
|
---|
22 | public:
|
---|
23 | MotorThreadDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags f = 0 );
|
---|
24 | ~MotorThreadDialog();
|
---|
25 |
|
---|
26 | public slots:
|
---|
27 | void startThread();
|
---|
28 |
|
---|
29 | public:
|
---|
30 | void customEvent( QCustomEvent* e );
|
---|
31 | void outputMessage( QString p_qsMsg );
|
---|
32 |
|
---|
33 | private:
|
---|
34 | QSemaphore* m_pThreadSemaphore;
|
---|
35 | bool m_zOn;
|
---|
36 | protected:
|
---|
37 | virtual void run();
|
---|
38 | };
|
---|
39 |
|
---|
40 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.