VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
17 #include "DtSlaveConnectionUI.hpp"
19 #include <QtWidgets/QDialog>
20 
21 class QProgressDialog;
22 
23 namespace makVrv
24 {
25 
26  class DtDe;
27 
31  : public QDialog
33  , public Ui::DtSlaveConnectionUI
34  {
35  Q_OBJECT;
36 
37  public:
38 
39 
41  DtSlaveConnectionWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::SubWindow);
42 
44  virtual ~DtSlaveConnectionWidget();
45 
47  virtual DtSlaveConnectionLogic* logic();
48 
51  virtual const std::string& serverAddress() const;
52 
54  virtual void setServerAddress(const std::string& address);
55 
57  virtual int serverPort() const;
58 
60  virtual void setServerPort(int port);
61 
63  virtual void setConnectionState(bool connected);
64 
66  virtual bool connectionState() const;
67 
68  virtual void onActivate();
69 
70  virtual void onDeactivate();
71 
72  virtual void onConnecting();
73  virtual void onConnected();
74  virtual void onUnableToConnect();
75 
76  protected slots:
77 
78  virtual void on_myConnectButton_clicked();
79 
80  virtual void on_myDefaultPortButton_clicked();
81 
82  virtual void on_myCancelButton_clicked();
83 
84  protected:
85 
88  QProgressDialog* myProgressDialog;
89  };
90 }
91 
92 #endif
93 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)