TreeFrogFramework  1.18
tsessionstore.h
Go to the documentation of this file.
1 #ifndef TSESSIONSTORE_H
2 #define TSESSIONSTORE_H
3 
4 #include <QString>
5 #include <QByteArray>
6 #include <QDateTime>
7 #include <TSession>
8 
9 
11 {
12 public:
14  virtual ~TSessionStore() { }
15 
16 #if QT_VERSION < 0x050000
17  virtual QString key() const = 0;
18 #endif
19  virtual TSession find(const QByteArray &id) = 0;
20  virtual bool store(TSession &sesion) = 0;
21  virtual bool remove(const QByteArray &id) = 0;
22  virtual int gc(const QDateTime &expire) = 0;
23 
24  static int lifeTimeSecs();
25 };
26 
27 #endif // TSESSIONSTORE_H
#define T_CORE_EXPORT
Definition: tglobal.h:81
TSessionStore()
Definition: tsessionstore.h:13
The TSession class holds information associated with individual visitors.
Definition: tsession.h:9
virtual ~TSessionStore()
Definition: tsessionstore.h:14
The TSessionStore is an abstract class that stores HTTP sessions.
Definition: tsessionstore.h:10