VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSlaveConnectionWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtSlaveConnectionWidget.h,v $ $Revision: 1.19 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtSlaveConnectionWidget_H_
14 #define DtSlaveConnectionWidget_H_
15 
16 #include <vrvCoreQt/vrvCoreQt.h>
17 
19 #include <vrvCoreQt/DtSlaveConnectionUI.hpp>
21 #include <QtGui/QDialog>
22 
23 class QProgressDialog;
24 
25 namespace makVrv
26 {
27 
28  class DtDe;
29 
33  : public QDialog
35  , public Ui::DtSlaveConnectionUI
36  {
37  Q_OBJECT;
38 
39  public:
40 
41 
43  DtSlaveConnectionWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::SubWindow);
44 
46  virtual ~DtSlaveConnectionWidget();
47 
49  virtual DtSlaveConnectionLogic* logic();
50 
53  virtual const std::string& serverAddress() const;
54 
56  virtual void setServerAddress(const std::string& address);
57 
59  virtual int serverPort() const;
60 
62  virtual void setServerPort(int port);
63 
65  virtual void setConnectionState(bool connected);
66 
68  virtual bool connectionState() const;
69 
70  virtual void onActivate();
71 
72  virtual void onDeactivate();
73 
74  virtual void onConnecting();
75  virtual void onConnected();
76  virtual void onUnableToConnect();
77 
78  protected slots:
79 
80  virtual void on_myConnectButton_clicked();
81 
82  virtual void on_myDefaultPortButton_clicked();
83 
84  virtual void on_myCancelButton_clicked();
85 
86  protected:
87 
90  QProgressDialog* myProgressDialog;
91  };
92 }
93 
94 #endif
95 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)