Cutelyst  2.3.0
Public Member Functions | List of all members
Cutelyst::SessionStoreFile Class Reference
Inheritance diagram for Cutelyst::SessionStoreFile:
Inheritance graph
[legend]

Public Member Functions

 SessionStoreFile (QObject *parent=nullptr)
 
virtual bool deleteExpiredSessions (Context *c, quint64 expires) final
 
virtual bool deleteSessionData (Context *c, const QString &sid, const QString &key) final
 
virtual QVariant getSessionData (Context *c, const QString &sid, const QString &key, const QVariant &defaultValue) final
 
virtual bool storeSessionData (Context *c, const QString &sid, const QString &key, const QVariant &value) final
 
- Public Member Functions inherited from Cutelyst::SessionStore
 SessionStore (QObject *parent=nullptr)
 

Detailed Description

Definition at line 27 of file sessionstorefile.h.

Constructor & Destructor Documentation

◆ SessionStoreFile()

SessionStoreFile::SessionStoreFile ( QObject *  parent = nullptr)
explicit

Constructs a new session store file object with the given parent.

Definition at line 39 of file sessionstorefile.cpp.

Member Function Documentation

◆ deleteExpiredSessions()

bool SessionStoreFile::deleteExpiredSessions ( Context c,
quint64  expires 
)
finalvirtual

◆ deleteSessionData()

bool SessionStoreFile::deleteSessionData ( Context c,
const QString &  sid,
const QString &  key 
)
finalvirtual

Reimplemented from SessionStore::deleteSessionData().

Implements Cutelyst::SessionStore.

Definition at line 66 of file sessionstorefile.cpp.

References Cutelyst::Context::setStash().

◆ getSessionData()

QVariant SessionStoreFile::getSessionData ( Context c,
const QString &  sid,
const QString &  key,
const QVariant &  defaultValue 
)
finalvirtual

Reimplemented from SessionStore::getSessionData().

Implements Cutelyst::SessionStore.

Definition at line 48 of file sessionstorefile.cpp.

◆ storeSessionData()

bool SessionStoreFile::storeSessionData ( Context c,
const QString &  sid,
const QString &  key,
const QVariant &  value 
)
finalvirtual

Reimplemented from SessionStore::storeSessionData().

Implements Cutelyst::SessionStore.

Definition at line 55 of file sessionstorefile.cpp.

References Cutelyst::Context::setStash().