VR-Exchange 2.10 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
MAKVrExchange::DtBrokerApp Class Reference

An application framework for a Broker instance. More...

Public Types

typedef DtBroker *(* DtBrokerCreator )(DtBrokerInitializer *)
 Function prototype for functions that create DtDisBrokers. More...
 

Public Member Functions

void setDarkModeEnabled (bool flag)
 
 DtBrokerApp (DtBrokerInitializer *init)
 Takes a DtDisBrokerInitializer which has already been parsed, and then creates a DtDisBroker instance. More...
 
virtual ~DtBrokerApp ()
 Destructor frees memory. More...
 
virtual DtBrokerbroker ()
 Returns a pointer to the DtDisBroker instance. More...
 
virtual int run (bool showInfoDialog=false)
 Runs the application. More...
 

Static Public Member Functions

static void setBrokerCreator (DtBrokerCreator func)
 Set function used for creating myBroker. More...
 
static void setBrokerDialogCreator (DtBrokerDialogCreator func)
 Set function used for creating the broker dialog. More...
 
static void setBrokerIcon (DtString icon)
 Set function used for selecting the broker Icon. More...
 

Protected Attributes

DtBrokerThreadmyBrokerThread
 Controls the backend thread. More...
 
DtBrokermyBroker
 The DtBroker Broker object. More...
 
QApplication * myQApp
 A QApplication instance is needed for each Qt application. More...
 
DtGenericUserInterfacemyUi
 The user interface used by the broker. More...
 
bool myDarkModeEnabled
 

Static Protected Attributes

static DtBrokerCreator theBrokerCreator
 The DtDisBroker creation function. More...
 
static DtBrokerDialogCreator theBrokerDialogCreator
 
static QString theBrokerIcon
 

Private Member Functions

 DtBrokerApp (const DtBrokerApp &other)
 Copy constructor not implemented - cannot be copied. More...
 
DtBrokerAppoperator= (const DtBrokerApp &other)
 Assignment operator not implemented – cannot be copied. More...
 

Detailed Description

An application framework for a Broker instance.

Member Typedef Documentation

typedef DtBroker*(* MAKVrExchange::DtBrokerApp::DtBrokerCreator)(DtBrokerInitializer *)

Function prototype for functions that create DtDisBrokers.

Constructor & Destructor Documentation

MAKVrExchange::DtBrokerApp::DtBrokerApp ( DtBrokerInitializer init)

Takes a DtDisBrokerInitializer which has already been parsed, and then creates a DtDisBroker instance.

Parameters
[in]initThe broker's initialization parameters.
virtual MAKVrExchange::DtBrokerApp::~DtBrokerApp ( )
virtual

Destructor frees memory.

MAKVrExchange::DtBrokerApp::DtBrokerApp ( const DtBrokerApp other)
private

Copy constructor not implemented - cannot be copied.

Member Function Documentation

virtual DtBroker* MAKVrExchange::DtBrokerApp::broker ( )
virtual

Returns a pointer to the DtDisBroker instance.

DtBrokerApp& MAKVrExchange::DtBrokerApp::operator= ( const DtBrokerApp other)
private

Assignment operator not implemented – cannot be copied.

virtual int MAKVrExchange::DtBrokerApp::run ( bool  showInfoDialog = false)
virtual

Runs the application.

If showInfoDialog is set, the broker starts in an 'inactive' state, not performing any translation, only displaying the configuration dialog. This function will not return until the broker gets a message to shutdown. Any translator replacements to the broker need to go before the call to run. Calls DtBroker::loadTranslators().

static void MAKVrExchange::DtBrokerApp::setBrokerCreator ( DtBrokerCreator  func)
static

Set function used for creating myBroker.

Parameters
[in]funcThe creator function used by the DtDisBrokerApp.
static void MAKVrExchange::DtBrokerApp::setBrokerDialogCreator ( DtBrokerDialogCreator  func)
static

Set function used for creating the broker dialog.

Parameters
[in]funcThe creator function used by the DtDisBrokerApp.
static void MAKVrExchange::DtBrokerApp::setBrokerIcon ( DtString  icon)
static

Set function used for selecting the broker Icon.

void MAKVrExchange::DtBrokerApp::setDarkModeEnabled ( bool  flag)

Member Data Documentation

DtBroker* MAKVrExchange::DtBrokerApp::myBroker
protected

The DtBroker Broker object.

DtBrokerThread* MAKVrExchange::DtBrokerApp::myBrokerThread
protected

Controls the backend thread.

bool MAKVrExchange::DtBrokerApp::myDarkModeEnabled
protected
QApplication* MAKVrExchange::DtBrokerApp::myQApp
protected

A QApplication instance is needed for each Qt application.

DtGenericUserInterface* MAKVrExchange::DtBrokerApp::myUi
protected

The user interface used by the broker.

DtBrokerCreator MAKVrExchange::DtBrokerApp::theBrokerCreator
staticprotected

The DtDisBroker creation function.

DtBrokerDialogCreator MAKVrExchange::DtBrokerApp::theBrokerDialogCreator
staticprotected
QString MAKVrExchange::DtBrokerApp::theBrokerIcon
staticprotected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon May 25 18:45:12 EDT 2026 from SVN revision 289111
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)