WebLVC 1.7d API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
brokerThread.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <broker/dllExport.h>
13 #include <QtCore/QThread>
14 #include <QtCore/QTimer>
15 
16 namespace MAKVrExchange
17 {
18 
19  class DtBroker;
20 
21  // \brief A class to create the main thread in a broker.
22  // This class cn also be used without the threading part
23  // by simply calling startTimer. It should be used this way
24  // if there is multi-threading concerns between the gui and the
25  // backend.
28  { Q_OBJECT;
29  public:
30 
33 
35  virtual ~DtBrokerThread();
36 
38  virtual void run();
39 
44  virtual void startTimer();
45 
47  virtual void setBroker(DtBroker* broker);
48 
49  public slots:
50 
52  virtual void processBroker();
53 
54  protected:
55 
57  static void brokerReloadCallback( void* usr );
58 
60  virtual void brokerReloadCallback();
61 
62  protected:
63 
65 
67  QTimer* myTimer;
68 
69  };
70 
71 }
bool myUsingThread
Definition: brokerThread.h:64
#define DT_DLL_BROKER
Definition: include/broker/dllExport.h:20
Definition: brokerThread.h:27
Base class for all broker objects.
Definition: broker.h:58
DtBroker * myBroker
Definition: brokerThread.h:66
QTimer * myTimer
Definition: brokerThread.h:67

Document ID: Generated on Wed Jun 21 15:05:44 EDT 2023 from SVN revision 256253
Copyright © 2005-2023 MAK Technologies. All Rights Reserved (www.mak.com)