VR-Exchange 2.2 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
broker
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.
28
class
DT_DLL_BROKER
DtBrokerThread
:
public
QThread
29
{
30
Q_OBJECT
31
32
public
:
33
35
DtBrokerThread
();
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
:
58
DtBroker
*
myBroker
;
59
QTimer *
myTimer
;
60
bool
myUsingThread
;
61
};
62
63
64
}
//Close namespaces
65
66
Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)