Update httpserver to 1.6.5

This commit is contained in:
Luis Ángel San Martín
2016-06-22 19:09:04 +02:00
parent 44d7c892c1
commit 706e0921f3
22 changed files with 1491 additions and 1198 deletions

View File

@ -10,6 +10,7 @@
#include <QMap>
#include <QTimer>
#include <QMutex>
#include "httpglobal.h"
#include "httpsession.h"
#include "httpresponse.h"
#include "httprequest.h"
@ -25,17 +26,17 @@
<code><pre>
cookiePath=/
cookieComment=Session ID
cookieDomain=stefanfrings.de
;cookieDomain=stefanfrings.de
</pre></code>
*/
class HttpSessionStore : public QObject {
class DECLSPEC HttpSessionStore : public QObject {
Q_OBJECT
Q_DISABLE_COPY(HttpSessionStore)
public:
/** Constructor. */
HttpSessionStore(QSettings* settings, QObject* parent);
HttpSessionStore(QSettings* settings, QObject* parent=NULL);
/** Destructor */
virtual ~HttpSessionStore();
@ -75,14 +76,15 @@ public:
/** Delete a session */
void removeSession(HttpSession session);
protected:
/** Storage for the sessions */
QMap<QByteArray,HttpSession> sessions;
private:
/** Configuration settings */
QSettings* settings;
/** Storage for the sessions */
QMap<QByteArray,HttpSession> sessions;
/** Timer to remove expired sessions */
QTimer cleanupTimer;
@ -98,7 +100,7 @@ private:
private slots:
/** Called every minute to cleanup expired sessions. */
void timerEvent();
void sessionTimerEvent();
};
#endif // HTTPSESSIONSTORE_H