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