|
TreeFrogFramework 2.10
|
#include <tsession.h>


Public Member Functions | |
| TSession (const QByteArray &id=QByteArray()) | |
| TSession (const TSession &other) | |
| TSession & | operator= (const TSession &other) |
| QByteArray | id () const |
| void | reset () |
| iterator | insert (const QString &key, const QVariant &value) |
| int | remove (const QString &key) |
| QVariant | take (const QString &key) |
| const QVariant | value (const QString &key) const |
| const QVariant | value (const QString &key, const QVariant &defaultValue) const |
Static Public Member Functions | |
| static QByteArray | sessionName () |
Friends | |
| class | TSessionCookieStore |
| class | TActionContext |
The TSession class holds information associated with individual visitors.
This class inherits QVariantMap class.
|
inline |
Constructs a empty session with the ID id.
|
inline |
Copy constructor.
|
inline |
Returns the ID.
|
inline |
Inserts a new item with the key and a value of value.
If there is already an item with the key, that item's value is replaced with value.
|
inline |
| void TSession::reset | ( | ) |
Resets the session.
|
static |
Returns the session name specified by the application.ini file.
|
inline |
|
inline |
Returns the value associated with the key.
|
inline |
This is an overloaded function.
If the session contains no item with the given key, the function returns defaultValue.
|
friend |
|
friend |