Files
yacreader/YACReaderLibrary/server/yacreader_http_session_store.cpp
luisangelsm cdb33aef3b Format
2026-02-20 19:17:17 +01:00

23 lines
609 B
C++

#include "yacreader_http_session_store.h"
#include "yacreader_http_session.h"
YACReaderHttpSessionStore::YACReaderHttpSessionStore(QObject *parent)
: QObject(parent)
{
}
void YACReaderHttpSessionStore::addYACReaderHttpSession(const QByteArray &httpSessionId, YACReaderHttpSession *yacreaderHttpSession)
{
QMutexLocker locker(&mutex);
sessions.insert(httpSessionId, yacreaderHttpSession);
}
YACReaderHttpSession *YACReaderHttpSessionStore::getYACReaderSessionHttpSession(const QByteArray &httpSessionId)
{
QMutexLocker locker(&mutex);
return sessions.value(httpSessionId, nullptr);
}