Files
yacreader/YACReaderLibrary/server/yacreader_http_session_store.h
2026-02-20 19:01:49 +01:00

24 lines
607 B
C++

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