CustusX  20.03-rc1
An IGT application
cxWebServerWidgetBase.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXWEBSERVERWIDGETBASE_H
13 #define CXWEBSERVERWIDGETBASE_H
14 
15 #include "cxResourceWidgetsExport.h"
16 
17 #include <QWidget>
18 #include "cxVisServices.h"
19 
20 class QPushButton;
21 class QVBoxLayout;
22 
23 namespace cx
24 {
33 class cxResourceWidgets_EXPORT WebServerWidgetBase : public QWidget
34 {
35  Q_OBJECT
36 public:
37  WebServerWidgetBase(cx::VisServicesPtr services, QWidget* parent = 0);
38  virtual ~WebServerWidgetBase();
39 
40 protected slots:
41  virtual void startStopSlot(bool checked);
42 
43 protected:
45  QPushButton* mStartStopButton;
46  QVBoxLayout* mVerticalLayout;
47 
48  virtual void startServer() = 0;
49  virtual void stopServer() = 0;
50  virtual void shutdownServer() {};//May be removed after testing and fixing shutdown issues
51 };
52 
53 }//cx
54 
55 #endif // CXWEBSERVERWIDGETBASE_H
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
Namespace for all CustusX production code.