![]() |
MAK RTIspy API Documentation for HLA 1516
|
Dialog used to request the user to provide new license information when a component cannot establish a connection. More...
Inheritance diagram for DtAssistantLicQueryDialog:
Collaboration diagram for DtAssistantLicQueryDialog:Public Slots | |
| virtual void | enableChooseLicense (bool enable) |
| Enable the widgets which allow the user to set the choose the license from a list of known licenses. | |
| virtual void | enableSetLicense (bool enable) |
| Enable the widgets which allow the user to set the license manually. | |
| virtual void | processFinish (int result) |
| Sets the results after the dialog is accepted or rejected. | |
Public Member Functions | |
| DtAssistantLicQueryDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor. | |
| virtual | ~DtAssistantLicQueryDialog () |
| Destructor. | |
| virtual void | addServer (const QString &name, int port) |
| Adds an available license server to the list. | |
| virtual void | clearServers () |
| Clears the entire server list. | |
| virtual void | setAllowUnlicensed (bool allowUnlicensed) |
| Set whether or not unlicensed mode is allowed. | |
| virtual bool | getResults (bool &runUnlicensed, QString &name, QString &port, bool &saveLic) |
| If dialog was accepted during its previous execution, fills in the accepted server name and port and returns true. | |
Protected Types | |
| enum | DtLicServerCol { ServerNameCol, ServerPortCol } |
| Enumeration for the table columns. More... | |
Protected Member Functions | |
| virtual void | showEvent (QShowEvent *event) |
| Prepare the dialog to be shown. | |
Protected Attributes | |
| Ui::AssistantLicQueryDialog | myUiImpl |
| QIntValidator * | myPortValidator |
| Validator to check the input of the port line edit box. | |
| bool | myWasAccepted |
| Stores the acceptance state of the last execution. | |
Private Member Functions | |
| DtAssistantLicQueryDialog (DtAssistantLicQueryDialog const &) | |
| Copy constructor not implemented. | |
| DtAssistantLicQueryDialog & | operator= (DtAssistantLicQueryDialog const &) |
| Assignment operator not implemented. | |
Dialog used to request the user to provide new license information when a component cannot establish a connection.
enum DtAssistantLicQueryDialog::DtLicServerCol [protected] |
| DtAssistantLicQueryDialog::DtAssistantLicQueryDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructor.
References connect(), DtGreatestValidPortNumber, enableChooseLicense(), enableSetLicense(), myPortValidator, myUiImpl, processFinish(), ServerNameCol, and ServerPortCol.
| DtAssistantLicQueryDialog::~DtAssistantLicQueryDialog | ( | ) | [virtual] |
Destructor.
| DtAssistantLicQueryDialog::DtAssistantLicQueryDialog | ( | DtAssistantLicQueryDialog const & | ) | [private] |
Copy constructor not implemented.
| void DtAssistantLicQueryDialog::addServer | ( | const QString & | name, |
| int | port | ||
| ) | [virtual] |
Adds an available license server to the list.
The list of available servers should be set prior to every execution of the dialog.
References myUiImpl, ServerNameCol, and ServerPortCol.
Referenced by DtAssistantLicenseQueryMgr::updateLicQuery().
| void DtAssistantLicQueryDialog::clearServers | ( | ) | [virtual] |
Clears the entire server list.
References myUiImpl.
Referenced by DtAssistantLicenseQueryMgr::updateLicQuery().
| void DtAssistantLicQueryDialog::enableChooseLicense | ( | bool | enable | ) | [virtual, slot] |
Enable the widgets which allow the user to set the choose the license from a list of known licenses.
References myUiImpl.
Referenced by DtAssistantLicQueryDialog().
| void DtAssistantLicQueryDialog::enableSetLicense | ( | bool | enable | ) | [virtual, slot] |
Enable the widgets which allow the user to set the license manually.
References myUiImpl.
Referenced by DtAssistantLicQueryDialog().
| bool DtAssistantLicQueryDialog::getResults | ( | bool & | runUnlicensed, |
| QString & | name, | ||
| QString & | port, | ||
| bool & | saveLic | ||
| ) | [virtual] |
If dialog was accepted during its previous execution, fills in the accepted server name and port and returns true.
Otherwise returns false. The saveLic parameter will be set to true if the user selected to save this license for future failures rather than prompting again.
References myUiImpl, myWasAccepted, ServerNameCol, and ServerPortCol.
Referenced by DtAssistantLicenseQueryMgr::processLicQueryResults().
| DtAssistantLicQueryDialog& DtAssistantLicQueryDialog::operator= | ( | DtAssistantLicQueryDialog const & | ) | [private] |
Assignment operator not implemented.
| void DtAssistantLicQueryDialog::processFinish | ( | int | result | ) | [virtual, slot] |
Sets the results after the dialog is accepted or rejected.
References myWasAccepted.
Referenced by DtAssistantLicQueryDialog().
| void DtAssistantLicQueryDialog::setAllowUnlicensed | ( | bool | allowUnlicensed | ) | [virtual] |
Set whether or not unlicensed mode is allowed.
References myUiImpl.
Referenced by DtAssistantLicenseQueryMgr::processLicQueryMsg().
| void DtAssistantLicQueryDialog::showEvent | ( | QShowEvent * | event | ) | [protected, virtual] |
Prepare the dialog to be shown.
References myWasAccepted.
QIntValidator* DtAssistantLicQueryDialog::myPortValidator [protected] |
Validator to check the input of the port line edit box.
Referenced by DtAssistantLicQueryDialog().
Ui::AssistantLicQueryDialog DtAssistantLicQueryDialog::myUiImpl [protected] |
Referenced by addServer(), clearServers(), DtAssistantLicQueryDialog(), enableChooseLicense(), enableSetLicense(), getResults(), and setAllowUnlicensed().
bool DtAssistantLicQueryDialog::myWasAccepted [protected] |
Stores the acceptance state of the last execution.
Referenced by getResults(), processFinish(), and showEvent().