1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -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
@@ -45,6 +45,8 @@ namespace qtwebapp {
@see HttpRequest for description of config settings maxRequestSize and maxMultiPartSize
*/
class HttpListenerSettings;
class DECLSPEC HttpConnectionHandlerPool : public QObject {
Q_OBJECT
Q_DISABLE_COPY(HttpConnectionHandlerPool)
@@ -57,6 +59,7 @@ public:
@warning The requestMapper gets deleted by the destructor of this pool
*/
HttpConnectionHandlerPool(QSettings* settings, HttpRequestHandler* requestHandler);
HttpConnectionHandlerPool(HttpListenerSettings* settings, HttpRequestHandler* requestHandler);
/** Destructor */
virtual ~HttpConnectionHandlerPool();
@@ -68,6 +71,7 @@ private:
/** Settings for this pool */
QSettings* settings;
HttpListenerSettings* listenerSettings;
/** Will be assigned to each Connectionhandler during their creation */
HttpRequestHandler* requestHandler;
@@ -87,6 +91,9 @@ private:
/** Load SSL configuration */
void loadSslConfig();
/** Settings flag */
bool useQtSettings;
private slots:
/** Received from the clean-up timer. */