SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
sdrbase
webapi
webapiserver.h
Go to the documentation of this file.
1
// Copyright (C) 2017 Edouard Griffiths, F4EXB. //
3
// //
4
// Swagger server adapter interface //
5
// //
6
// This program is free software; you can redistribute it and/or modify //
7
// it under the terms of the GNU General Public License as published by //
8
// the Free Software Foundation as version 3 of the License, or //
9
// (at your option) any later version. //
10
// //
11
// This program is distributed in the hope that it will be useful, //
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
14
// GNU General Public License V3 for more details. //
15
// //
16
// You should have received a copy of the GNU General Public License //
17
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
19
20
#ifndef SDRBASE_WEBAPI_WEBAPISERVER_H_
21
#define SDRBASE_WEBAPI_WEBAPISERVER_H_
22
23
#include "
export.h
"
24
25
namespace
qtwebapp
26
{
27
class
HttpListener;
28
class
HttpListenerSettings;
29
}
30
31
class
WebAPIRequestMapper
;
32
33
class
SDRBASE_API
WebAPIServer
34
{
35
public
:
36
WebAPIServer
(
const
QString& host,
uint16_t
port,
WebAPIRequestMapper
*requestMapper);
37
~
WebAPIServer
();
38
39
void
start();
40
void
stop();
41
42
void
setHostAndPort(
const
QString& host,
uint16_t
port);
43
const
QString&
getHost
()
const
{
return
m_settings.host; }
44
int
getPort
()
const
{
return
m_settings.port; }
45
46
private
:
47
WebAPIRequestMapper
*
m_requestMapper
;
48
qtwebapp::HttpListener
*
m_listener
;
49
qtwebapp::HttpListenerSettings
m_settings
;
50
};
51
52
53
54
#endif
/* SDRBASE_WEBAPI_WEBAPISERVER_H_ */
WebAPIServer::m_settings
qtwebapp::HttpListenerSettings m_settings
Definition:
webapiserver.h:49
WebAPIServer::m_listener
qtwebapp::HttpListener * m_listener
Definition:
webapiserver.h:48
export.h
WebAPIServer::m_requestMapper
WebAPIRequestMapper * m_requestMapper
Definition:
webapiserver.h:47
WebAPIRequestMapper
Definition:
webapirequestmapper.h:39
qtwebapp
Definition:
httpconnectionhandler.h:23
uint16_t
unsigned short uint16_t
Definition:
rtptypes_win.h:44
WebAPIServer
Definition:
webapiserver.h:33
WebAPIServer::getHost
const QString & getHost() const
Definition:
webapiserver.h:43
qtwebapp::HttpListener
Definition:
httplistener.h:47
WebAPIServer::getPort
int getPort() const
Definition:
webapiserver.h:44
SDRBASE_API
#define SDRBASE_API
Definition:
export.h:40
qtwebapp::HttpListenerSettings
Definition:
httplistenersettings.h:13
Generated on Fri Aug 2 2019 17:56:33 for SDRAngel by
1.8.13