TreeFrogFramework 2.10
Loading...
Searching...
No Matches
tsessionstoreplugin.h
Go to the documentation of this file.
1#pragma once
2#include <QObject>
3#include <QStringList>
4#include <QtPlugin>
5#include <TGlobal>
6
7class TSessionStore;
8
9constexpr auto TSessionStoreInterface_iid = "org.treefrogframework.TreeFrog.TSessionStoreInterface/2.0";
10
11
13public:
15 virtual TSessionStore *create(const QString &key) = 0;
16 virtual void destroy(const QString &key, TSessionStore *store) = 0;
17};
18
20
21
23 Q_OBJECT
24 Q_INTERFACES(TSessionStoreInterface)
25
26public:
27 explicit TSessionStorePlugin(QObject *parent = 0) :
28 QObject(parent) { }
30
31 virtual TSessionStore *create(const QString &key) = 0;
32 virtual void destroy(const QString &key, TSessionStore *store) = 0;
33};
34
The TSessionStoreInterface class provides an interface to implement TSessionStore plugins.
Definition tsessionstoreplugin.h:12
virtual ~TSessionStoreInterface()
Definition tsessionstoreplugin.h:14
virtual TSessionStore * create(const QString &key)=0
Implement this function to create a session store matching the name specified by the given key.
virtual void destroy(const QString &key, TSessionStore *store)=0
The TSessionStorePlugin class provides an abstract base for custom TSessionStore plugins.
Definition tsessionstoreplugin.h:22
~TSessionStorePlugin()
Definition tsessionstoreplugin.h:29
TSessionStorePlugin(QObject *parent=0)
Constructor.
Definition tsessionstoreplugin.h:27
virtual TSessionStore * create(const QString &key)=0
Implement this function to create a session store matching the name specified by the given key.
virtual void destroy(const QString &key, TSessionStore *store)=0
The TSessionStore is an abstract class that stores HTTP sessions.
Definition tsessionstore.h:8
#define T_CORE_EXPORT
Definition tdeclexport.h:28
constexpr auto TSessionStoreInterface_iid
Definition tsessionstoreplugin.h:9