MAK RTIspy API Documentation for HLA Evolved
licQueryDialog.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: licQueryDialog.h,v $ $Revision: 1.14 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef licQueryDialog_H_
00013 #define licQueryDialog_H_
00014 
00015 #include "rtiMsConfig.h"
00016 #include "ui_licQueryDialogUI.h"
00017 #include <qdialog.h>
00018 
00019 class QIntValidator;
00020 
00024 class DT_DLL_ASSISTANTAPP DtAssistantLicQueryDialog : public QDialog
00025 {
00026    Q_OBJECT
00027 
00028 public:
00029 
00031    DtAssistantLicQueryDialog( QWidget* parent = 0, Qt::WindowFlags f=0 );
00032 
00034    virtual ~DtAssistantLicQueryDialog();
00035 
00038    virtual void addServer( const QString& name, int port );
00039 
00041    virtual void clearServers();
00042 
00044    virtual void setAllowUnlicensed( bool allowUnlicensed );
00045 
00050    virtual bool getResults( bool& runUnlicensed, QString& name, QString& port,
00051       bool& saveLic );
00052 
00053 protected:
00054 
00056    virtual void showEvent( QShowEvent* event );
00057 
00058 private:
00059 
00061    DtAssistantLicQueryDialog( DtAssistantLicQueryDialog const& );
00062 
00064    DtAssistantLicQueryDialog& operator=( DtAssistantLicQueryDialog const& );
00065 
00066 public slots:
00067 
00070    virtual void enableChooseLicense( bool enable );
00071 
00073    virtual void enableSetLicense( bool enable );
00074 
00076    virtual void processFinish( int result );
00077 
00078 protected:
00079 
00081    enum DtLicServerCol
00082    {
00083       ServerNameCol,
00084       ServerPortCol
00085    };
00086 
00087    Ui::AssistantLicQueryDialog myUiImpl;
00088 
00090    QIntValidator* myPortValidator;
00091 
00093    bool myWasAccepted;
00094 };
00095 
00096 #endif
00097 

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)