yacreader/YACReaderLibrary/server/yacreader_http_session_store.h
Felix Kauselmann 1b344d70e5 Update server code integration for QtWebApp 1.7.11
- Adapt server code for QtWebapp namespace 'stefanfrings'
- Implement custom modifications needed by v1 controller
  via template engine
- Unify iphone and ipad templates
2020-08-20 18:22:57 +02:00

38 lines
852 B
C++

#ifndef YACREADERHTTPSESSIONSTORE_H
#define YACREADERHTTPSESSIONSTORE_H
#include <QObject>
#include <QtCore>
namespace stefanfrings {
class HttpSessionStore;
}
class YACReaderHttpSession;
class YACReaderHttpSessionStore : public QObject
{
Q_OBJECT
public:
explicit YACReaderHttpSessionStore(stefanfrings::HttpSessionStore *sessionStore, QObject *parent = nullptr);
void addYACReaderHttpSession(const QByteArray &httpSessionId, YACReaderHttpSession *yacreaderHttpSession);
YACReaderHttpSession *getYACReaderSessionHttpSession(const QByteArray &httpSessionId);
signals:
public slots:
private:
QMap<QByteArray, YACReaderHttpSession *> sessions;
stefanfrings::HttpSessionStore *sessionStore;
QTimer cleanupTimer;
QMutex mutex;
private slots:
void sessionTimerEvent();
};
#endif // YACREADERHTTPSESSIONSTORE_H