yacreader/YACReaderLibrary/server/yacreader_http_session_store.h
Luis Ángel San Martín 268bebbddd Use nullptr instead of 0
2019-06-01 16:04:48 +02:00

36 lines
797 B
C++

#ifndef YACREADERHTTPSESSIONSTORE_H
#define YACREADERHTTPSESSIONSTORE_H
#include <QObject>
#include <QtCore>
class HttpSessionStore;
class YACReaderHttpSession;
class YACReaderHttpSessionStore : public QObject
{
Q_OBJECT
public:
explicit YACReaderHttpSessionStore(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;
HttpSessionStore *sessionStore;
QTimer cleanupTimer;
QMutex mutex;
private slots:
void sessionTimerEvent();
};
#endif // YACREADERHTTPSESSIONSTORE_H