NorMIT-nav
2023.01.05-dev+develop.0da12
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
:
44
VisServicesPtr
mServices
;
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
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
cx::WebServerWidgetBase
Definition:
cxWebServerWidgetBase.h:33
cx::WebServerWidgetBase::mServices
VisServicesPtr mServices
Definition:
cxWebServerWidgetBase.h:44
cx::VisServicesPtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition:
cxMainWindow.h:40
cx::WebServerWidgetBase::mVerticalLayout
QVBoxLayout * mVerticalLayout
Definition:
cxWebServerWidgetBase.h:46
cx::WebServerWidgetBase::shutdownServer
virtual void shutdownServer()
Definition:
cxWebServerWidgetBase.h:50
cx::WebServerWidgetBase::mStartStopButton
QPushButton * mStartStopButton
Definition:
cxWebServerWidgetBase.h:45
cxVisServices.h
CX
source
resource
widgets
cxWebServerWidgetBase.h
Generated on Thu Jan 5 2023 03:15:56 for NorMIT-nav by
1.8.17