source: trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/adjustthreadcontroller.cpp@ 3401

Last change on this file since 3401 was 3401, checked in by merck, 21 years ago
nitial checkin of AMC project
File size: 1.0 KB
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
14AdjustThreadController::AdjustThreadController( QList<AMCMirrorPanel>& p_qlPanels, QObject* p_pReceiver )
15 : ThreadController( p_qlPanels, p_pReceiver )
16{
17}
18
19AdjustThreadController::~AdjustThreadController()
20{
21
22}
23
24void 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.