VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtSlaveConnectionWidget.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2007 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 /****************************************************************************** 
00006 ** $RCSfile: DtSlaveConnectionWidget.h,v $ $Revision: 1.19 $ $State: Exp $ 
00007 ******************************************************************************/ 
00008  
00012  
00013 #ifndef DtSlaveConnectionWidget_H_ 
00014 #define DtSlaveConnectionWidget_H_ 
00015 
00016 #include <vrvCoreQt/vrvCoreQt.h> 
00017 
00018 #include <vrvCoreQt/DtSlaveConnectionInterface.h> 
00019 #include <vrvCoreQt/DtSlaveConnectionUI.hpp>
00020 #include <vrvCoreQt/DtSlaveConnectionLogic.h>
00021 #include <QtGui/QDialog>
00022 
00023 class QProgressDialog;
00024 
00025 namespace makVrv 
00026 {
00027 
00028    class DtDe;
00029 
00032    class DT_DLL_VRVCOREQT DtSlaveConnectionWidget 
00033    : public QDialog
00034    , public DtSlaveConnectionInterface
00035    , public Ui::DtSlaveConnectionUI
00036    {
00037       Q_OBJECT;
00038 
00039    public:      
00040 
00041 
00043       DtSlaveConnectionWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::SubWindow);
00044       
00046       virtual ~DtSlaveConnectionWidget();
00047 
00049       virtual DtSlaveConnectionLogic* logic();
00050 
00053       virtual const std::string& serverAddress() const;
00054 
00056       virtual void setServerAddress(const std::string& address);
00057 
00059       virtual int serverPort() const;
00060 
00062       virtual void setServerPort(int port);
00063 
00065       virtual void setConnectionState(bool connected);
00066 
00068       virtual bool connectionState() const;
00069 
00070       virtual void onActivate();
00071 
00072       virtual void onDeactivate();
00073 
00074       virtual void onConnecting();
00075       virtual void onConnected();
00076       virtual void onUnableToConnect();
00077 
00078    protected slots:
00079 
00080       virtual void on_myConnectButton_clicked();
00081 
00082       virtual void on_myDefaultPortButton_clicked();
00083 
00084       virtual void on_myCancelButton_clicked();
00085      
00086    protected:
00087 
00088       bool myConnectionStatus;
00089       DtSlaveConnectionLogic* myLogic;
00090       QProgressDialog* myProgressDialog;
00091    };
00092 }
00093  
00094 #endif
00095  

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)