mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
HttpServer: use settings structure as an object not a pointer
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <QTemporaryFile>
|
||||
#include <QUuid>
|
||||
#include "httpglobal.h"
|
||||
#include "httplistenersettings.h"
|
||||
|
||||
namespace qtwebapp {
|
||||
|
||||
@@ -35,8 +36,6 @@ namespace qtwebapp {
|
||||
The body is always a little larger than the file itself.
|
||||
*/
|
||||
|
||||
class HttpListenerSettings;
|
||||
|
||||
class DECLSPEC HttpRequest {
|
||||
Q_DISABLE_COPY(HttpRequest)
|
||||
friend class HttpSessionStore;
|
||||
@@ -51,7 +50,12 @@ public:
|
||||
@param settings Configuration settings
|
||||
*/
|
||||
HttpRequest(QSettings* settings);
|
||||
HttpRequest(HttpListenerSettings* settings);
|
||||
|
||||
/**
|
||||
Constructor.
|
||||
@param settings Configuration settings as a structure
|
||||
*/
|
||||
HttpRequest(const HttpListenerSettings& settings);
|
||||
|
||||
/**
|
||||
Destructor.
|
||||
@@ -235,9 +239,6 @@ private:
|
||||
/** Buffer for collecting characters of request and header lines */
|
||||
QByteArray lineBuffer;
|
||||
|
||||
/** settings flag */
|
||||
bool useQtSettings;
|
||||
|
||||
};
|
||||
|
||||
} // end of namespace
|
||||
|
||||
Reference in New Issue
Block a user