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.
httpserver
httplistener.h
Go to the documentation of this file.
1
6
#ifndef HTTPLISTENER_H
7
#define HTTPLISTENER_H
8
9
#include <QTcpServer>
10
#include <QSettings>
11
#include <QBasicTimer>
12
#include "
httpglobal.h
"
13
#include "
httpconnectionhandler.h
"
14
#include "
httpconnectionhandlerpool.h
"
15
#include "
httprequesthandler.h
"
16
#include "
httplistenersettings.h
"
17
18
#include "
export.h
"
19
20
namespace
qtwebapp
{
21
47
class
HTTPSERVER_API
HttpListener
:
public
QTcpServer {
48
Q_OBJECT
49
Q_DISABLE_COPY(
HttpListener
)
50
public
:
51
60
HttpListener
(QSettings* settings,
HttpRequestHandler
* requestHandler, QObject* parent = NULL);
61
70
HttpListener
(
const
HttpListenerSettings
& settings,
HttpRequestHandler
* requestHandler, QObject* parent = NULL);
71
73
virtual
~
HttpListener
();
74
78
void
listen();
79
84
void
close();
85
90
HttpListenerSettings
getListenerSettings
()
const
{
return
listenerSettings; }
91
96
void
setListenerSettings
(
const
HttpListenerSettings
& settings) { listenerSettings = settings; }
97
98
protected
:
99
101
void
incomingConnection(
tSocketDescriptor
socketDescriptor);
102
103
private
:
104
106
QSettings*
settings
;
107
109
HttpListenerSettings
listenerSettings
;
110
112
HttpRequestHandler
*
requestHandler
;
113
115
HttpConnectionHandlerPool
*
pool
;
116
118
bool
useQtSettings
;
119
120
signals:
121
127
void
handleConnection(
tSocketDescriptor
socketDescriptor);
128
129
};
130
131
}
// end of namespace
132
133
#endif // HTTPLISTENER_H
export.h
HTTPSERVER_API
#define HTTPSERVER_API
Definition:
export.h:88
httpconnectionhandlerpool.h
qtwebapp::HttpRequestHandler
Definition:
httprequesthandler.h:29
httplistenersettings.h
qtwebapp::HttpListener::setListenerSettings
void setListenerSettings(const HttpListenerSettings &settings)
Definition:
httplistener.h:96
qtwebapp::HttpConnectionHandlerPool
Definition:
httpconnectionhandlerpool.h:51
qtwebapp::HttpListener::pool
HttpConnectionHandlerPool * pool
Definition:
httplistener.h:115
qtwebapp
Definition:
httpconnectionhandler.h:23
qtwebapp::tSocketDescriptor
int tSocketDescriptor
Definition:
httpconnectionhandler.h:29
qtwebapp::HttpListener::settings
QSettings * settings
Definition:
httplistener.h:106
httpglobal.h
qtwebapp::HttpListener::requestHandler
HttpRequestHandler * requestHandler
Definition:
httplistener.h:112
httpconnectionhandler.h
qtwebapp::HttpListener
Definition:
httplistener.h:47
qtwebapp::HttpListener::getListenerSettings
HttpListenerSettings getListenerSettings() const
Definition:
httplistener.h:90
httprequesthandler.h
qtwebapp::HttpListener::listenerSettings
HttpListenerSettings listenerSettings
Definition:
httplistener.h:109
qtwebapp::HttpListenerSettings
Definition:
httplistenersettings.h:13
qtwebapp::HttpListener::useQtSettings
bool useQtSettings
Definition:
httplistener.h:118
Generated on Fri Aug 2 2019 17:56:29 for SDRAngel by
1.8.13