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

This commit is contained in:
f4exb
2017-11-13 01:01:15 +01:00
parent bc793b4095
commit 9a77311b2a
7 changed files with 165 additions and 2 deletions
+40
View File
@@ -0,0 +1,40 @@
/*
* httpsessionssettings.h
*
* Created on: Nov 13, 2017
* Author: f4exb
*/
#ifndef HTTPSERVER_HTTPSESSIONSSETTINGS_H_
#define HTTPSERVER_HTTPSESSIONSSETTINGS_H_
namespace qtwebapp {
struct HttpSessionsSettings
{
int expirationTime;
QString cookieName;
QString cookiePath;
QString cookieComment;
QString cookieDomain;
HttpSessionsSettings() {
resetToDefaults();
}
void resetToDefaults()
{
expirationTime = 3600000;
cookieName = "sessionid";
cookiePath = "";
cookieComment = "";
cookieDomain = "";
}
};
} // end of namespace
#endif /* HTTPSERVER_HTTPSESSIONSSETTINGS_H_ */