MagicSmoke  $VERSION$
MOCouponInfo Class Reference

This class represents the bare minimum info of a coupon. More...

#include <srcMOCouponInfo.h>

Inheritance diagram for MOCouponInfo:

Public Member Functions

 MOCouponInfo ()
 default constructor: constructs an invalid instance of MOCouponInfo More...
 
 MOCouponInfo (const MOCouponInfo &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOCouponInfo (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOCouponInfo ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< QString > couponid () const
 
virtual Nullable< QString > description () const
 
virtual Nullable< QString > flags () const
 
MOCouponInfooperator= (const MOCouponInfo &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setcouponid (Nullable< QString > s)
 
virtual void setdescription (Nullable< QString > s)
 
virtual void setflags (Nullable< QString > s)
 
virtual void setvalidfrom (Nullable< qint64 > s)
 
virtual void setvalidtill (Nullable< qint64 > s)
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="CouponInfo")
 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...
 
virtual Nullable< qint64 > validfrom () const
 
virtual Nullable< qint64 > validtill () const
 

Static Public Member Functions

static MOCouponInfo fromString (const QString &)
 create MOCouponInfo from XML formatted string (inverse of toString) More...
 
static MOCouponInfo fromXml (const QDomElement &)
 create MOCouponInfo from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< QString > mp_couponid
 
Nullable< QString > mp_description
 
Nullable< QString > mp_flags
 
Nullable< qint64 > mp_validfrom
 
Nullable< qint64 > mp_validtill
 

Detailed Description

This class represents the bare minimum info of a coupon.

Constructor & Destructor Documentation

MOCouponInfo::MOCouponInfo ( )
inline

default constructor: constructs an invalid instance of MOCouponInfo

Referenced by fromString(), and fromXml().

MOCouponInfo::MOCouponInfo ( const MOCouponInfo o)

copy constructor: creates a (deep) copy of the object

References mp_couponid, mp_description, mp_flags, mp_validfrom, and mp_validtill.

MOCouponInfo::MOCouponInfo ( const QDomElement &  root)
explicit

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

References setcouponid(), setdescription(), setflags(), setvalidfrom(), and setvalidtill().

virtual MOCouponInfo::~MOCouponInfo ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<QString> MOCouponInfo::couponid ( ) const
inlinevirtual
virtual Nullable<QString> MOCouponInfo::description ( ) const
inlinevirtual
virtual Nullable<QString> MOCouponInfo::flags ( ) const
inlinevirtual
MOCouponInfo MOCouponInfo::fromString ( const QString &  txt)
static

create MOCouponInfo from XML formatted string (inverse of toString)

References MOCouponInfo().

MOCouponInfo MOCouponInfo::fromXml ( const QDomElement &  root)
static

create MOCouponInfo from XML (inverse of toXml)

References MOCouponInfo().

MOCouponInfo & MOCouponInfo::operator= ( const MOCouponInfo o)

copy assignment: creates a (deep) copy of the object

References mp_couponid, mp_description, mp_flags, mp_validfrom, and mp_validtill.

virtual void MOCouponInfo::setcouponid ( Nullable< QString >  s)
inlinevirtual

Referenced by MOCouponInfo().

virtual void MOCouponInfo::setdescription ( Nullable< QString >  s)
inlinevirtual

Referenced by MOCouponInfo().

virtual void MOCouponInfo::setflags ( Nullable< QString >  s)
inlinevirtual

Referenced by MOCouponInfo().

virtual void MOCouponInfo::setvalidfrom ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOCouponInfo().

virtual void MOCouponInfo::setvalidtill ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOCouponInfo().

QString MOCouponInfo::toString ( )

Serializes the object to XML and returns the string representation of that XML.

References toXml().

QDomElement MOCouponInfo::toXml ( QDomDocument &  doc,
QString  name = "CouponInfo" 
)

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 "MOCouponInfo" is used

Referenced by toString().

void MOCouponInfo::toXml ( QDomDocument &  doc,
QDomElement &  r 
)

Serializes the object into the given element.

References mp_couponid, mp_description, mp_flags, mp_validfrom, and mp_validtill.

virtual Nullable<qint64> MOCouponInfo::validfrom ( ) const
inlinevirtual
virtual Nullable<qint64> MOCouponInfo::validtill ( ) const
inlinevirtual

Member Data Documentation

Nullable<QString> MOCouponInfo::mp_couponid
protected

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

Nullable<QString> MOCouponInfo::mp_description
protected

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

Nullable<QString> MOCouponInfo::mp_flags
protected

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

Nullable<qint64> MOCouponInfo::mp_validfrom
protected

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

Nullable<qint64> MOCouponInfo::mp_validtill
protected

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


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