VR-Exchange 2.4 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
broker
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.
27
class
DT_DLL_BROKER
DtBrokerThread
:
public
QThread
28
{ Q_OBJECT;
29
public
:
30
32
DtBrokerThread
();
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
64
bool
myUsingThread
;
65
66
DtBroker
*
myBroker
;
67
QTimer*
myTimer
;
68
69
};
70
71
}
Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)