MAK RTIspy API Documentation for HLA 1.3
List of all members | 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:

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 
)
DtAssistantLicQueryDialog::~DtAssistantLicQueryDialog ( )
virtual

Destructor.

DtAssistantLicQueryDialog::DtAssistantLicQueryDialog ( DtAssistantLicQueryDialog const &  )
private

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

void DtAssistantLicQueryDialog::clearServers ( )
virtual

Clears the entire server list.

References myUiImpl.

Referenced by DtAssistantLicenseQueryMgr::updateLicQuery().

void DtAssistantLicQueryDialog::enableChooseLicense ( bool  enable)
virtualslot

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)
virtualslot

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)
virtualslot

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)
protectedvirtual

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
bool DtAssistantLicQueryDialog::myWasAccepted
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 Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)