1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

HttpServer: use settings structures in place of QSettings (4)

This commit is contained in:
f4exb
2017-11-13 01:36:00 +01:00
parent ef2f591bcd
commit ab55400cc2
4 changed files with 70 additions and 9 deletions
+7
View File
@@ -19,6 +19,8 @@
namespace qtwebapp {
class HttpListenerSettings;
/** Alias type definition, for compatibility to different Qt versions */
#if QT_VERSION >= 0x050000
typedef qintptr tSocketDescriptor;
@@ -59,6 +61,7 @@ public:
@param sslConfiguration SSL (HTTPS) will be used if not NULL
*/
HttpConnectionHandler(QSettings* settings, HttpRequestHandler* requestHandler, QSslConfiguration* sslConfiguration=NULL);
HttpConnectionHandler(HttpListenerSettings* settings, HttpRequestHandler* requestHandler, QSslConfiguration* sslConfiguration=NULL);
/** Destructor */
virtual ~HttpConnectionHandler();
@@ -73,6 +76,7 @@ private:
/** Configuration settings */
QSettings* settings;
HttpListenerSettings* listenerSettings;
/** TCP socket of the current connection */
QTcpSocket* socket;
@@ -98,6 +102,9 @@ private:
/** Create SSL or TCP socket */
void createSocket();
/** Settings flag */
bool useQtSettings;
public slots:
/**