mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 10:50:04 -05:00
Drop server v1
This commit is contained in:
@ -4,34 +4,20 @@
|
||||
#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);
|
||||
explicit YACReaderHttpSessionStore(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
|
||||
|
||||
Reference in New Issue
Block a user