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 (2)

This commit is contained in:
f4exb
2017-11-13 01:17:55 +01:00
parent 9a77311b2a
commit 3fb9d56d85
2 changed files with 29 additions and 9 deletions
+7
View File
@@ -17,6 +17,8 @@
namespace qtwebapp {
class HttpSessionsSettings;
/**
Stores HTTP sessions and deletes them when they have expired.
The following configuration settings are required in the config file:
@@ -39,6 +41,7 @@ public:
/** Constructor. */
HttpSessionStore(QSettings* settings, QObject* parent=NULL);
HttpSessionStore(HttpSessionsSettings* settings, QObject* parent=NULL);
/** Destructor */
virtual ~HttpSessionStore();
@@ -86,6 +89,7 @@ private:
/** Configuration settings */
QSettings* settings;
HttpSessionsSettings *sessionsSettings;
/** Timer to remove expired sessions */
QTimer cleanupTimer;
@@ -99,6 +103,9 @@ private:
/** Used to synchronize threads */
QMutex mutex;
/** Settings flag */
bool useQtSettings;
private slots:
/** Called every minute to cleanup expired sessions. */