GClasses
|
#include <GDynamicPage.h>
Public Member Functions | |
GDynamicPageSession (GDynamicPageServer *pServer, unsigned long long id) | |
virtual | ~GDynamicPageSession () |
GDynamicPageServer * | server () |
Returns the server object associated with this session. | |
unsigned long long | id () |
Returns the id associated with this session. | |
void | setExtension (GDynamicPageSessionExtension *pExtension) |
Use this to store your own custom object with the session. Your object should inherit from GDynamicPageSessionExtension. (The extension will not be deleted when the session is deleted, but the GDynamicPageSessionExtension::onDisown method will be called, which you can use to delete the extension.) | |
void | onAccess () |
Stamp the session as having been accessed at the current time. | |
GDynamicPageSessionExtension * | extension () |
Retrieve the extension object that was associated with this session by a call to setExtension. | |
void | setCurrentUrl (const char *szUrl, const char *szParams, size_t paramsLen) |
const char * | url () |
const char * | params () |
size_t | paramsLen () |
Protected Attributes | |
GDynamicPageServer * | m_pServer |
unsigned long long | m_id |
time_t | m_tLastAccessed |
GDynamicPageSessionExtension * | m_pExtension |
const char * | m_szUrl |
const char * | m_szParams |
size_t | m_paramsLen |
GClasses::GDynamicPageSession::GDynamicPageSession | ( | GDynamicPageServer * | pServer, |
unsigned long long | id | ||
) |
virtual GClasses::GDynamicPageSession::~GDynamicPageSession | ( | ) | [virtual] |
GDynamicPageSessionExtension* GClasses::GDynamicPageSession::extension | ( | ) | [inline] |
Retrieve the extension object that was associated with this session by a call to setExtension.
unsigned long long GClasses::GDynamicPageSession::id | ( | ) | [inline] |
Returns the id associated with this session.
void GClasses::GDynamicPageSession::onAccess | ( | ) |
Stamp the session as having been accessed at the current time.
const char* GClasses::GDynamicPageSession::params | ( | ) | [inline] |
size_t GClasses::GDynamicPageSession::paramsLen | ( | ) | [inline] |
GDynamicPageServer* GClasses::GDynamicPageSession::server | ( | ) | [inline] |
Returns the server object associated with this session.
void GClasses::GDynamicPageSession::setCurrentUrl | ( | const char * | szUrl, |
const char * | szParams, | ||
size_t | paramsLen | ||
) | [inline] |
void GClasses::GDynamicPageSession::setExtension | ( | GDynamicPageSessionExtension * | pExtension | ) |
Use this to store your own custom object with the session. Your object should inherit from GDynamicPageSessionExtension. (The extension will not be deleted when the session is deleted, but the GDynamicPageSessionExtension::onDisown method will be called, which you can use to delete the extension.)
const char* GClasses::GDynamicPageSession::url | ( | ) | [inline] |
unsigned long long GClasses::GDynamicPageSession::m_id [protected] |
size_t GClasses::GDynamicPageSession::m_paramsLen [protected] |
const char* GClasses::GDynamicPageSession::m_szParams [protected] |
const char* GClasses::GDynamicPageSession::m_szUrl [protected] |
time_t GClasses::GDynamicPageSession::m_tLastAccessed [protected] |