MAK RTIspy API Documentation for HLA 1516
Public Slots | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
DtAssistantLicQueryDialog Class Reference

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:

List of all members.

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.
DtAssistantLicQueryDialogoperator= (DtAssistantLicQueryDialog const &)
 Assignment operator not implemented.

Detailed Description

Dialog used to request the user to provide new license information when a component cannot establish a connection.


Member Enumeration Documentation

Enumeration for the table columns.

Enumerator:
ServerNameCol 
ServerPortCol 

Constructor & Destructor Documentation

DtAssistantLicQueryDialog::DtAssistantLicQueryDialog ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

Destructor.

Copy constructor not implemented.


Member Function Documentation

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().

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.


Member Data Documentation

QIntValidator* DtAssistantLicQueryDialog::myPortValidator [protected]

Validator to check the input of the port line edit box.

Referenced by DtAssistantLicQueryDialog().

Ui::AssistantLicQueryDialog DtAssistantLicQueryDialog::myUiImpl [protected]

Stores the acceptance state of the last execution.

Referenced by getResults(), processFinish(), and showEvent().


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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)