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

Public Types | |
| enum | { DisplayInformation, Shutdown } |
Public Slots | |
| virtual void | brokerItemEdited (DtXMLBrokerLauncher &) |
| A new broker has been edited internally. | |
| virtual void | brokerItemAdded (DtXMLBrokerLauncher &) |
| A new broker has been added internally. | |
| virtual void | brokerItemRemoved (DtXMLBrokerLauncher &) |
| A new broker has been removed internally. | |
| virtual void | showBrokerInfoDialogAction () |
| Display information on currently selected broker. | |
| virtual void | brokerShutdownBrokerAction () |
| Shutdown currently selected broker. | |
| virtual void | brokerRestartBrokerAction () |
| Restart currently selected broker. | |
| virtual void | brokerRemoveBrokerAction () |
| Remove currently selected broker from the list. | |
| virtual void | brokerEditBrokerAction () |
| Edit the configuration file. | |
| virtual void | brokerAddNewBrokerAction () |
| Add a new broker. | |
Signals | |
| void | brokerSelectedRunning (bool) |
Public Member Functions | |
| DtAppBrokerManager (QWidget *parent, DtPortalAppInitializer *init, DtPortalAppInitializer *editInit, DtPortalConnection *pconn) | |
| virtual | ~DtAppBrokerManager () |
| Destructor. | |
| virtual void | setBrokerInitLists (std::vector< DtXMLBrokerLauncher > vector) |
| If you want the broker manager to re-start brokers, it needs to know how to do that. | |
| virtual DtString | lookupBrokerName (const DtU16 &brokerId) const |
| look up a broker name given its ID | |
| virtual DtU16 | lookupBrokerId (const DtString &brokerName) const |
| look up a broker ID given its Name | |
| 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. | |
Protected Types | |
| enum | { ShutdownBroker = 1 } |
| typedef std::map< DtU16, DtString > | BrokerIdToNameMap |
Protected Slots | |
| virtual void | brokerItemDoubleClicked (QTreeWidgetItem *item) |
| signal handler for reaping child broker processes under the Linux vrx portal | |
| virtual void | brokerItemRightButtonPressed (QTreeWidgetItem *item, const QPoint &point) |
| callback for when an broker is right clicked. | |
| virtual void | brokerSelectionChanged () |
| Broker item has changed. Used for color swapping. | |
Protected Member Functions | |
| virtual void | processAddBrokerMessage (const DtBrokerStartedMessage &msg) |
| processes an brokerAddMessage by adding the broker name to the broker list | |
| virtual void | processRemoveBrokerMessage (const DtBrokerExitingMessage &msg) |
| processes an brokerRemove message from the portal by removing the name from the list | |
| virtual void | processAbnormalRemoval (const DtAbnormalBrokerExitMessage &msg) |
| processes an abnormal removal message and then called processRemoveBrokerMessage | |
| virtual void | launchBrokerForItem (QTreeWidgetItem *item) |
| launches the broker which is represented by this item | |
| virtual void | shutdownBrokerForItem (QTreeWidgetItem *item) |
| shutdown the broker which is represented by this item | |
| virtual DtString | createBrokerStartupCommand (const DtXMLBrokerLauncher &brokerLauncher) |
| creates a base common command line to start a broker | |
| bool | eventFilter (QObject *obj, QEvent *event) |
Static Protected Member Functions | |
| static void | discoverBrokerCb (const DtBrokerStartedMessage &msg, void *usrData) |
| a callback registered with the portal, to be called when a new broker is discovered | |
| static void | removeBrokerCb (const DtBrokerExitingMessage &msg, void *usrData) |
| a callback registered with the portal, to be called when an broker is deleted | |
| static void | abnormalRemovalCb (const DtAbnormalBrokerExitMessage &msg, void *usrData) |
| a callback registered with the portal, to be called when an broker is suspiciously removed | |
Protected Attributes | |
| enum MAKVrExchange::DtAppBrokerManager:: { ... } | BrokerPopupMenuPosition |
| Ui::DtBrokerList | myUi |
| std::vector< DtXMLBrokerLauncher > | myBrokerLaunchers |
| QMenu * | myPopupMenu |
| A popup menu used for the selected broker. | |
| QMenu * | myDisabledPopupMenu |
| QMenu * | myUnselectedPopupMenu |
| DtPortalConnection * | myPConn |
| DtPortalAppInitializer * | myInitializer |
| DtPortalAppInitializer * | myEditInitializer |
| DtBrokerEditor * | myBrokerEditor |
Private Member Functions | |
| DtAppBrokerManager (const DtAppBrokerManager &orig) | |
| Copy Ctor Not Implemented. | |
| DtAppBrokerManager & | operator= (const DtAppBrokerManager &orig) |
| Assignment Operator Not Implemented. | |
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, | ||
| DtPortalAppInitializer * | editInit, | ||
| DtPortalConnection * | pconn | ||
| ) |
|
virtual |
Destructor.
|
private |
Copy Ctor Not Implemented.
|
virtual |
If you want the broker manager to re-start brokers, it needs to know how to do that.
|
virtual |
look up a broker name given its ID
|
virtual |
look up a broker ID given its Name
|
virtual |
Set One To One mapping of Broker's initializer so app broker manager has the same settings as the portal.
|
signal |
|
virtualslot |
A new broker has been edited internally.
|
virtualslot |
A new broker has been added internally.
|
virtualslot |
A new broker has been removed internally.
|
virtualslot |
Display information on currently selected broker.
|
virtualslot |
Shutdown currently selected broker.
|
virtualslot |
Restart currently selected broker.
|
virtualslot |
Remove currently selected broker from the list.
|
virtualslot |
Edit the configuration file.
|
virtualslot |
Add a new broker.
|
protectedvirtual |
processes an brokerAddMessage by adding the broker name to the broker list
|
protectedvirtual |
processes an brokerRemove message from the portal by removing the name from the list
|
protectedvirtual |
processes an abnormal removal message and then called processRemoveBrokerMessage
|
protectedvirtual |
launches the broker which is represented by this item
|
protectedvirtual |
shutdown the broker which is represented by this item
|
protectedvirtual |
creates a base common command line to start a broker
|
staticprotected |
a callback registered with the portal, to be called when a new broker is discovered
|
staticprotected |
a callback registered with the portal, to be called when an broker is deleted
|
staticprotected |
a callback registered with the portal, to be called when an broker is suspiciously removed
|
protectedvirtualslot |
signal handler for reaping child broker processes under the Linux vrx portal
callback for when an broker is double clicked.
|
protectedvirtualslot |
callback for when an broker is right clicked.
|
protectedvirtualslot |
Broker item has changed. Used for color swapping.
|
protected |
|
private |
Assignment Operator Not Implemented.
| enum { ... } MAKVrExchange::DtAppBrokerManager::BrokerPopupMenuPosition |
|
protected |
|
protected |
|
protected |
A popup menu used for the selected broker.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |