1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

Http server: fixed parameters passing

This commit is contained in:
f4exb
2017-11-18 10:15:29 +01:00
parent 7305f2fb00
commit 2b65fb2d62
8 changed files with 57 additions and 58 deletions
+4 -10
View File
@@ -65,7 +65,7 @@ public:
@param requestHandler The handler that will process each received HTTP request.
@warning The requestMapper gets deleted by the destructor of this pool
*/
HttpConnectionHandlerPool(const HttpListenerSettings& settings, HttpRequestHandler* requestHandler);
HttpConnectionHandlerPool(const HttpListenerSettings* settings, HttpRequestHandler* requestHandler);
/** Destructor */
virtual ~HttpConnectionHandlerPool();
@@ -74,16 +74,10 @@ public:
HttpConnectionHandler* getConnectionHandler();
/**
* Get a listener settings copy
* Get a listener settings const reference. Can be changed on the HttpListener only.
* @return The current listener settings
*/
HttpListenerSettings getListenerSettings() const { return listenerSettings; }
/**
* Set new listener settings data
* @param Listener settings to replace current data
*/
void setListenerSettings(const HttpListenerSettings& settings) { listenerSettings = settings; }
const HttpListenerSettings* getListenerSettings() const { return listenerSettings; }
private:
@@ -91,7 +85,7 @@ private:
QSettings* settings;
/** Settings for this pool as structure*/
HttpListenerSettings listenerSettings;
const HttpListenerSettings *listenerSettings;
/** Will be assigned to each Connectionhandler during their creation */
HttpRequestHandler* requestHandler;