MagicSmoke  $VERSION$
MOWebSession Class Reference

#include <srcMOWebSession.h>

Inheritance diagram for MOWebSession:

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< MOCustomercustomer () const
 customer object or null More...
 
virtual Nullable< qint64 > customerid () const
 ID of the customer using this session or null. More...
 
MOWebSessionoperator= (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< MOCustomermp_customer
 
Nullable< qint64 > mp_customerid
 
Nullable< QString > mp_sessionid
 
Nullable< qint64 > mp_timeout
 

Constructor & Destructor Documentation

MOWebSession::MOWebSession ( )
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.

MOWebSession::MOWebSession ( const QDomElement &  root)
explicit

special constructor: create from the XML representation, deserializing the object

References setcustomer(), setcustomerid(), setsessionid(), and settimeout().

virtual MOWebSession::~MOWebSession ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<MOCustomer> MOWebSession::customer ( ) const
inlinevirtual

customer object or null

virtual Nullable<qint64> MOWebSession::customerid ( ) const
inlinevirtual

ID of the customer using this session or null.

MOWebSession MOWebSession::fromString ( const QString &  txt)
static

create MOWebSession from XML formatted string (inverse of toString)

References MOWebSession().

MOWebSession MOWebSession::fromXml ( const QDomElement &  root)
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.

virtual Nullable<QString> MOWebSession::sessionid ( ) const
inlinevirtual

Cookie for this session.

virtual void MOWebSession::setcustomer ( Nullable< MOCustomer s)
inlinevirtual

customer object or null

Referenced by MOWebSession().

virtual void MOWebSession::setcustomerid ( Nullable< qint64 >  s)
inlinevirtual

ID of the customer using this session or null.

Referenced by MOWebSession().

virtual void MOWebSession::setsessionid ( Nullable< QString >  s)
inlinevirtual

Cookie for this session.

Referenced by MOWebSession().

virtual void MOWebSession::settimeout ( Nullable< qint64 >  s)
inlinevirtual

time at which this cookie is deleted

Referenced by MOWebSession().

virtual Nullable<qint64> MOWebSession::timeout ( ) const
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.

Parameters
docthe DOM document node for which to generate the element
namethe 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.

Member Data Documentation

Nullable<MOCustomer> MOWebSession::mp_customer
protected

Referenced by MOWebSession(), operator=(), and toXml().

Nullable<qint64> MOWebSession::mp_customerid
protected

Referenced by MOWebSession(), operator=(), and toXml().

Nullable<QString> MOWebSession::mp_sessionid
protected

Referenced by MOWebSession(), operator=(), and toXml().

Nullable<qint64> MOWebSession::mp_timeout
protected

Referenced by MOWebSession(), operator=(), and toXml().


The documentation for this class was generated from the following files: