VR-Exchange 2.1 API Documentation
brokerThread.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2007 VT MAK
3 *********************************************************************/
4 #pragma once
5 
6 #include <QtCore/QThread>
7 #include <QtCore/QTimer>
8 #include <namespace.h>
9 
16 
17 namespace MAKVrExchange
18 {
19 
20  class DtBroker;
21 
22  // \brief A class to create the main thread in a broker.
23  // This class cn also be used without the threading part
24  // by simply calling startTimer. It should be used this way
25  // if there is multi-threading concerns between the gui and the
26  // backend.
29  {
30  Q_OBJECT
31 
32  public:
33 
36 
38  virtual ~DtBrokerThread();
39 
41  virtual void run();
42 
47  virtual void startTimer();
48 
50  virtual void setBroker(DtBroker* broker);
51 
52  public slots:
53 
55  virtual void processBroker();
56 
57  protected:
59  QTimer *myTimer;
61  };
62 
63 
64 } //Close namespaces
65 
66 

Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)