VR-Exchange 2.2 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
brokers
tenaBroker
libTenaBroker
tenaBrokerApp.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2013 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
broker/brokerThread.h
>
13
14
class
DtString
;
15
16
class
QTimer;
17
class
QApplication;
18
19
namespace
MAKVrExchange
20
{
21
22
namespace
DtTenaBroker
23
{
24
25
class
DtTenaBroker;
26
class
DtGenericUserInterface;
27
class
DtTenaBrokerInitializer;
28
31
class
DT_DLL_TENABROKER
DtTenaBrokerApp
32
{
33
public
:
34
35
// \brief Function prototype for functions that create DtTenaBrokers.
36
typedef
DtTenaBroker
* (*DtTenaBrokerCreator)(
DtTenaBrokerInitializer
* init);
37
38
public
:
39
40
// \brief Takes an initializer which has already been parsed,
41
// and then creates a DtTenaBroker Instance.
42
DtTenaBrokerApp
(
DtTenaBrokerInitializer
* init );
43
44
// \brief Default DTOR
45
virtual
~
DtTenaBrokerApp
();
46
47
public
:
48
49
// \brief Set function used for creating TenaBrokers.
50
static
void
setTenaBrokerCreator( DtTenaBrokerCreator func );
51
52
private
:
53
54
// \brief Copy CTOR not implemented -- Do Not Copy!
55
DtTenaBrokerApp
(
const
DtTenaBrokerApp
& other );
56
57
// \brief Assignment Operator not implemented -- Do Not Copy!
58
DtTenaBrokerApp
& operator = (
const
DtTenaBrokerApp
& other );
59
60
public
:
61
62
// \brief Returns a pointer to the tenaBroker instance.
63
virtual
DtTenaBroker
* tenaBroker();
64
65
// \brief Runs the application. This function will not return until
66
// the broker gets a message to shutdown. Run gives time to
67
// the broker and the GUI to process events. Before run starts its processing
68
// it loads all translators. Any translator replacements to the broker need
69
// to go before the call to run.
70
virtual
int
run();
71
76
virtual
int
showInfoDialog();
77
78
protected
:
79
80
static
DtTenaBrokerCreator
theTenaBrokerCreator
;
81
82
protected
:
83
84
DtGenericUserInterface
*
myUi
;
85
DtTenaBroker
*
myBroker
;
86
DtBrokerThread
*
myBrokerThread
;
87
QApplication*
myQApp
;
88
89
};
90
91
}
92
}
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
)