Line | |
---|
1 | // AdjustThreadController.cpp: Implementierung der Klasse MotorThreadController.
|
---|
2 | //
|
---|
3 | //////////////////////////////////////////////////////////////////////
|
---|
4 |
|
---|
5 | #include "adjustthreadcontroller.h"
|
---|
6 | #include "adjustthread.h"
|
---|
7 | #include "amcmirrorpanel.h"
|
---|
8 | #include <qthread.h>
|
---|
9 |
|
---|
10 | //////////////////////////////////////////////////////////////////////
|
---|
11 | // Konstruktion/Destruktion
|
---|
12 | //////////////////////////////////////////////////////////////////////
|
---|
13 |
|
---|
14 | AdjustThreadController::AdjustThreadController( QList<AMCMirrorPanel>& p_qlPanels, QObject* p_pReceiver )
|
---|
15 | : ThreadController( p_qlPanels, p_pReceiver )
|
---|
16 | {
|
---|
17 | }
|
---|
18 |
|
---|
19 | AdjustThreadController::~AdjustThreadController()
|
---|
20 | {
|
---|
21 |
|
---|
22 | }
|
---|
23 |
|
---|
24 | void AdjustThreadController::run()
|
---|
25 | {
|
---|
26 | for( AMCMirrorPanel* pActualPanel = m_qlPanels.first();
|
---|
27 | pActualPanel; pActualPanel = m_qlPanels.next() )
|
---|
28 | {
|
---|
29 | if( m_zStop )
|
---|
30 | return;
|
---|
31 | AdjustThread* pThread = new AdjustThread( m_pReceiver );
|
---|
32 | pThread->setPanel( pActualPanel );
|
---|
33 | pThread->setLaser( m_zTrue );
|
---|
34 | pThread->start();
|
---|
35 | pThread->wait();
|
---|
36 | delete pThread;
|
---|
37 | }
|
---|
38 |
|
---|
39 | return;
|
---|
40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.