![]() |
VR-Exchange 2.10 API Documentation
|
Manages the connection list on the main portal window. More...

Public Types | |
| enum | { DisplayInformation, Shutdown } |
Public Slots | |
| virtual void | brokerItemAdded (DtXmlBrokerLauncher &) |
| A new broker has been added internally. More... | |
| virtual void | brokerItemEdited (DtXmlBrokerLauncher &) |
| A new broker has been edited internally. More... | |
| virtual void | showBrokerInfoDialogAction () |
| Display information on currently selected broker. More... | |
| virtual void | brokerShutdownBrokerAction () |
| Shutdown currently selected broker. More... | |
| virtual void | brokerRestartBrokerAction () |
| Restart currently selected broker. More... | |
| virtual void | brokerRemoveBrokerAction () |
| Remove currently selected broker from the list. More... | |
| virtual void | brokerEditBrokerAction () |
| Edit the configuration file. More... | |
| virtual void | brokerAddNewBrokerAction () |
| Add a new broker. More... | |
| virtual void | setDarkModeEnabled (bool enable) |
| Set styling for the broker. More... | |
| virtual bool | darkModeEnabled () |
| Access styling setting for broker. More... | |
Signals | |
| void | brokerSelectedRunning (bool) |
Public Member Functions | |
| DtAppBrokerManager (QWidget *parent, DtPortalAppInitializer *init, DtPortalConnection *pconn) | |
| virtual | ~DtAppBrokerManager () |
| Destructor. More... | |
| virtual void | setBrokerInitLists (const std::vector< DtXmlBrokerLauncher > &vector) |
| If you want the broker manager to re-start brokers, it needs to know how to do that. More... | |
| virtual DtString | lookupBrokerName (const DtU16 &brokerId) const |
| look up a broker name given its ID More... | |
| virtual DtU16 | lookupBrokerId (const DtString &brokerName) const |
| look up a broker ID given its Name More... | |
| virtual void | setOneToOne (bool val) |
| Set One To One mapping of Broker's initializer so app broker manager has the same settings as the portal. More... | |
| virtual const QTreeWidget * | treeWidget () const |
| Const accessor for the tree widget. More... | |
| virtual QTreeWidget * | treeWidget () |
| Accessor for the tree widget. More... | |
Protected Types | |
| enum | { ShutdownBroker = 1 } |
| typedef std::map< DtU16, DtString > | BrokerIdToNameMap |
Protected Slots | |
| virtual void | brokerItemDoubleClicked (QTreeWidgetItem *item) |
| callback for when an broker is double clicked. More... | |
| virtual void | brokerSelectionChanged () |
| Broker item has changed. Used for color swapping. More... | |
| virtual void | onBrokerMenuAboutToShow () |
| Update the broker context menu on show. More... | |
Protected Member Functions | |
| virtual void | processAddBrokerMessage (const DtBrokerStartedMessage &msg) |
| Processes DtBrokerStartedMessage by adding the broker name to the broker list. More... | |
| virtual void | processRunBrokerMessage (const DtBrokerRunningMessage &msg) |
| Processes DtBrokerRunningMessage by adding the broker name to the broker list. More... | |
| virtual void | processRemoveBrokerMessage (const DtBrokerExitingMessage &msg) |
| Processes DtBrokerExitingMessage by removing the name from the broker list. More... | |
| virtual void | processAbnormalRemoval (const DtAbnormalBrokerExitMessage &msg) |
| Processes DtAbnormalBrokerExitMessage and calls processRemoveBrokerMessage. More... | |
| virtual void | requestBrokerLaunchGui (QTreeWidgetItem *item) |
| Sends a 'Launch GUI' request to the broker which is represented by this item. More... | |
| virtual void | requestBrokerStart (QTreeWidgetItem *item) |
| Sends a 'Start Broker' request to the broker which is represented by this item. More... | |
| virtual void | shutdownBrokerForItem (QTreeWidgetItem *item) |
| shutdown the broker which is represented by this item More... | |
| virtual DtString | createBrokerStartupCommand (const DtXmlBrokerLauncher &brokerLauncher) |
| Creates a base common command line to start a broker. More... | |
| virtual bool | eventFilter (QObject *obj, QEvent *event) |
Static Protected Member Functions | |
| static void | discoverBrokerCb (const DtBrokerStartedMessage &msg, void *usrData) |
| Callback registered with the portal, to be called when a new broker is discovered. More... | |
| static void | runningBrokerCb (const DtBrokerRunningMessage &msg, void *usrData) |
| Callback registered with the portal, to be called when a broker is started. More... | |
| static void | removeBrokerCb (const DtBrokerExitingMessage &msg, void *usrData) |
| Callback registered with the portal, to be called when an broker is deleted. More... | |
| static void | abnormalRemovalCb (const DtAbnormalBrokerExitMessage &msg, void *usrData) |
| Callback registered with the portal, to be called when an broker is suspiciously removed. More... | |
Protected Attributes | |
| enum MAKVrExchange::DtAppBrokerManager:: { ... } | BrokerPopupMenuPosition |
| Ui::DtBrokerList | myUi |
| std::vector< DtXmlBrokerLauncher > | myBrokerLaunchers |
| DtBrokerContextMenu * | myPopupMenu |
| A popup menu used for the selected broker. More... | |
| DtPortalConnection * | myPConn |
| DtPortalAppInitializer * | myInitializer |
| DtBrokerEditor * | myBrokerEditor |
| bool | myDarkModeEnabled |
Private Member Functions | |
| DtAppBrokerManager (const DtAppBrokerManager &orig) | |
| Copy Ctor Not Implemented. More... | |
| DtAppBrokerManager & | operator= (const DtAppBrokerManager &orig) |
| Assignment Operator Not Implemented. More... | |
Private Attributes | |
| QColor | myDisconColor |
| QColor | myConColor |
| bool | first = true |
Manages the connection list on the main portal window.
This class is responsible for populating that window by registering to discover brokers and removing then when they are deleted. It is also responsible for sending messages to the broker to display their dialog box
|
protected |
| MAKVrExchange::DtAppBrokerManager::DtAppBrokerManager | ( | QWidget * | parent, |
| DtPortalAppInitializer * | init, | ||
| DtPortalConnection * | pconn | ||
| ) |
|
virtual |
Destructor.
|
private |
Copy Ctor Not Implemented.
|
staticprotected |
Callback registered with the portal, to be called when an broker is suspiciously removed.
|
virtualslot |
Add a new broker.
|
virtualslot |
Edit the configuration file.
|
virtualslot |
A new broker has been added internally.
|
protectedvirtualslot |
callback for when an broker is double clicked.
|
virtualslot |
A new broker has been edited internally.
|
virtualslot |
Remove currently selected broker from the list.
|
virtualslot |
Restart currently selected broker.
|
signal |
|
protectedvirtualslot |
Broker item has changed. Used for color swapping.
|
virtualslot |
Shutdown currently selected broker.
|
protectedvirtual |
Creates a base common command line to start a broker.
|
virtualslot |
Access styling setting for broker.
|
staticprotected |
Callback registered with the portal, to be called when a new broker is discovered.
|
protectedvirtual |
|
virtual |
look up a broker ID given its Name
|
virtual |
look up a broker name given its ID
|
protectedvirtualslot |
Update the broker context menu on show.
|
private |
Assignment Operator Not Implemented.
|
protectedvirtual |
Processes DtAbnormalBrokerExitMessage and calls processRemoveBrokerMessage.
|
protectedvirtual |
Processes DtBrokerStartedMessage by adding the broker name to the broker list.
The status of the broker will be set to 'Configuring'.
|
protectedvirtual |
Processes DtBrokerExitingMessage by removing the name from the broker list.
The status of the broker will be set to 'Disconnected'.
|
protectedvirtual |
Processes DtBrokerRunningMessage by adding the broker name to the broker list.
The status of the broker will be set to 'Connected'.
|
staticprotected |
Callback registered with the portal, to be called when an broker is deleted.
|
protectedvirtual |
Sends a 'Launch GUI' request to the broker which is represented by this item.
|
protectedvirtual |
Sends a 'Start Broker' request to the broker which is represented by this item.
|
staticprotected |
Callback registered with the portal, to be called when a broker is started.
|
virtual |
If you want the broker manager to re-start brokers, it needs to know how to do that.
|
virtualslot |
Set styling for the broker.
|
virtual |
Set One To One mapping of Broker's initializer so app broker manager has the same settings as the portal.
|
virtualslot |
Display information on currently selected broker.
|
protectedvirtual |
shutdown the broker which is represented by this item
|
virtual |
Const accessor for the tree widget.
Used to back up column spacing.
|
virtual |
Accessor for the tree widget.
Used to restore column spacing.
| enum { ... } MAKVrExchange::DtAppBrokerManager::BrokerPopupMenuPosition |
|
private |
|
protected |
|
protected |
|
private |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
A popup menu used for the selected broker.
|
protected |