MagicSmoke
$VERSION$
|
#include <srcMOWebSession.h>
Public Member Functions | |
MOWebSession () | |
default constructor: constructs an invalid instance of MOWebSession More... | |
MOWebSession (const MOWebSession &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOWebSession (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOWebSession () |
destructor: deletes this copy of the object More... | |
virtual Nullable< MOCustomer > | customer () const |
customer object or null More... | |
virtual Nullable< qint64 > | customerid () const |
ID of the customer using this session or null. More... | |
MOWebSession & | operator= (const MOWebSession &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual Nullable< QString > | sessionid () const |
Cookie for this session. More... | |
virtual void | setcustomer (Nullable< MOCustomer > s) |
customer object or null More... | |
virtual void | setcustomerid (Nullable< qint64 > s) |
ID of the customer using this session or null. More... | |
virtual void | setsessionid (Nullable< QString > s) |
Cookie for this session. More... | |
virtual void | settimeout (Nullable< qint64 > s) |
time at which this cookie is deleted More... | |
virtual Nullable< qint64 > | timeout () const |
time at which this cookie is deleted More... | |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="WebSession") |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself. More... | |
void | toXml (QDomDocument &, QDomElement &) |
Serializes the object into the given element. More... | |
Static Public Member Functions | |
static MOWebSession | fromString (const QString &) |
create MOWebSession from XML formatted string (inverse of toString) More... | |
static MOWebSession | fromXml (const QDomElement &) |
create MOWebSession from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< MOCustomer > | mp_customer |
Nullable< qint64 > | mp_customerid |
Nullable< QString > | mp_sessionid |
Nullable< qint64 > | mp_timeout |
|
inline |
default constructor: constructs an invalid instance of MOWebSession
Referenced by fromString(), and fromXml().
MOWebSession::MOWebSession | ( | const MOWebSession & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_customer, mp_customerid, mp_sessionid, and mp_timeout.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setcustomer(), setcustomerid(), setsessionid(), and settimeout().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
customer object or null
|
inlinevirtual |
ID of the customer using this session or null.
|
static |
create MOWebSession from XML formatted string (inverse of toString)
References MOWebSession().
|
static |
create MOWebSession from XML (inverse of toXml)
References MOWebSession().
MOWebSession & MOWebSession::operator= | ( | const MOWebSession & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_customer, mp_customerid, mp_sessionid, and mp_timeout.
|
inlinevirtual |
Cookie for this session.
|
inlinevirtual |
customer object or null
Referenced by MOWebSession().
|
inlinevirtual |
ID of the customer using this session or null.
Referenced by MOWebSession().
|
inlinevirtual |
Cookie for this session.
Referenced by MOWebSession().
|
inlinevirtual |
time at which this cookie is deleted
Referenced by MOWebSession().
|
inlinevirtual |
time at which this cookie is deleted
QString MOWebSession::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOWebSession::toXml | ( | QDomDocument & | doc, |
QString | name = "WebSession" |
||
) |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself.
doc | the DOM document node for which to generate the element |
name | the name to give the generated element, per default "MOWebSession" is used |
Referenced by toString().
void MOWebSession::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_customer, mp_customerid, mp_sessionid, and mp_timeout.
|
protected |
Referenced by MOWebSession(), operator=(), and toXml().
|
protected |
Referenced by MOWebSession(), operator=(), and toXml().
|
protected |
Referenced by MOWebSession(), operator=(), and toXml().
|
protected |
Referenced by MOWebSession(), operator=(), and toXml().