TreeFrogFramework  1.18
tsessionstoreplugin.h
Go to the documentation of this file.
1 #ifndef TSESSIONSTOREPLUGIN_H
2 #define TSESSIONSTOREPLUGIN_H
3 
4 #include <QObject>
5 #include <QStringList>
6 #include <QtPlugin>
7 #include <TGlobal>
8 
9 #define TSessionStoreInterface_iid "org.treefrogframework.TreeFrog.TSessionStoreInterface/2.0"
10 
11 class TSessionStore;
12 
13 
15 {
16 public:
18  virtual TSessionStore *create(const QString &key) = 0;
19  virtual void destroy(const QString &key, TSessionStore *store) = 0;
20 #if QT_VERSION < 0x050000
21  virtual QStringList keys() const = 0;
22 #endif
23 };
24 
26 
27 
29 {
30  Q_OBJECT
31  Q_INTERFACES(TSessionStoreInterface)
32 
33 public:
34  explicit TSessionStorePlugin(QObject *parent = 0) : QObject(parent) { }
36 
37  virtual TSessionStore *create(const QString &key) = 0;
38  virtual void destroy(const QString &key, TSessionStore *store) = 0;
39 #if QT_VERSION < 0x050000
40  virtual QStringList keys() const = 0;
41 #endif
42 };
43 
44 #endif // TSESSIONSTOREPLUGIN_H
#define T_CORE_EXPORT
Definition: tglobal.h:81
#define TSessionStoreInterface_iid
Definition: tsessionstoreplugin.h:9
virtual ~TSessionStoreInterface()
Definition: tsessionstoreplugin.h:17
~TSessionStorePlugin()
Definition: tsessionstoreplugin.h:35
TSessionStorePlugin(QObject *parent=0)
Constructor.
Definition: tsessionstoreplugin.h:34
The TSessionStoreInterface class provides an interface to implement TSessionStore plugins...
Definition: tsessionstoreplugin.h:14
The TSessionStore is an abstract class that stores HTTP sessions.
Definition: tsessionstore.h:10
The TSessionStorePlugin class provides an abstract base for custom TSessionStore plugins.
Definition: tsessionstoreplugin.h:28