GClasses

GClasses::GDynamicPageSession Class Reference

#include <GDynamicPage.h>

List of all members.

Public Member Functions

 GDynamicPageSession (GDynamicPageServer *pServer, unsigned long long id)
virtual ~GDynamicPageSession ()
GDynamicPageServerserver ()
 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.
GDynamicPageSessionExtensionextension ()
 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

GDynamicPageServerm_pServer
unsigned long long m_id
time_t m_tLastAccessed
GDynamicPageSessionExtensionm_pExtension
const char * m_szUrl
const char * m_szParams
size_t m_paramsLen

Constructor & Destructor Documentation

GClasses::GDynamicPageSession::GDynamicPageSession ( GDynamicPageServer pServer,
unsigned long long  id 
)
virtual GClasses::GDynamicPageSession::~GDynamicPageSession ( ) [virtual]

Member Function Documentation

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]

Member Data Documentation

unsigned long long GClasses::GDynamicPageSession::m_id [protected]
const char* GClasses::GDynamicPageSession::m_szUrl [protected]