VR-Exchange 2.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
brokerApp.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <widgets/dllExport.h>
13 #include <widgets/brokerDialog.h>
14 
15 class QApplication;
16 
17 namespace MAKVrExchange
18 {
19 
20  class DtBrokerThread;
21  class DtGenericUserInterface;
22 
26  {
27  public:
28 
31  typedef DtBroker* (*DtBrokerCreator)( DtBrokerInitializer* );
32 
33  public:
34 
37  static void setBrokerCreator( DtBrokerCreator func );
38 
41  static void setBrokerDialogCreator( DtBrokerDialogCreator func );
42 
44  static void setBrokerIcon( DtString icon );
45 
46  // !\brief Set function for toggling dark mode.
47  void setDarkModeEnabled(bool flag);
48 
53 
55  virtual ~DtBrokerApp();
56 
58  virtual DtBroker* broker();
59 
66  virtual int run( bool showInfoDialog = false );
67 
68  private:
69 
71  DtBrokerApp( const DtBrokerApp& other );
72 
74  DtBrokerApp& operator = ( const DtBrokerApp& other );
75 
76  protected:
77 
79  static DtBrokerCreator theBrokerCreator;
81  static QString theBrokerIcon;
82 
85 
88 
90  QApplication* myQApp;
91 
94 
96 
97  };
98 
99 }
A class to initialize DtBroker instances.
Definition: brokerInitializer.h:35
An application framework for a Broker instance.
Definition: brokerApp.h:25
DtBroker * myBroker
The DtBroker Broker object.
Definition: brokerApp.h:87
DtBrokerDialog *(* DtBrokerDialogCreator)(DtBroker *, DtBrokerInitializer *, QWidget *)
Definition: brokerDialog.h:36
Definition: brokerThread.h:27
QApplication * myQApp
A QApplication instance is needed for each Qt application.
Definition: brokerApp.h:90
static DtBrokerDialogCreator theBrokerDialogCreator
Definition: brokerApp.h:80
bool myDarkModeEnabled
Definition: brokerApp.h:95
Contains the DtBrokerDialog class declaration.
Base class for all broker objects.
Definition: broker.h:58
static DtBrokerCreator theBrokerCreator
The DtDisBroker creation function.
Definition: brokerApp.h:79
DtBrokerThread * myBrokerThread
Controls the backend thread.
Definition: brokerApp.h:84
#define DT_DLL_WIDGETS
Definition: include/widgets/dllExport.h:22
DtGenericUserInterface * myUi
The user interface used by the broker.
Definition: brokerApp.h:93
static QString theBrokerIcon
Definition: brokerApp.h:81
An abstract version of a Broker Interface.
Definition: genericUserInterface.h:21

Document ID: Generated on Tue Aug 16 16:15:26 EDT 2022 from SVN revision 245901
Copyright © 2005-2022 MAK Technologies. All Rights Reserved (www.mak.com)