|
MagicSmoke
$VERSION$
|
This class represents the bare minimum info of a coupon. More...
#include <srcMOCouponInfo.h>
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 |
| MOCouponInfo & | operator= (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 |
This class represents the bare minimum info of a coupon.
|
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.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setcouponid(), setdescription(), setflags(), setvalidfrom(), and setvalidtill().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
static |
create MOCouponInfo from XML formatted string (inverse of toString)
References MOCouponInfo().
|
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.
|
inlinevirtual |
Referenced by MOCouponInfo().
|
inlinevirtual |
Referenced by MOCouponInfo().
|
inlinevirtual |
Referenced by MOCouponInfo().
|
inlinevirtual |
Referenced by MOCouponInfo().
|
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.
| doc | the DOM document node for which to generate the element |
| name | the 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.
|
inlinevirtual |
|
inlinevirtual |
|
protected |
Referenced by MOCouponInfo(), operator=(), and toXml().
|
protected |
Referenced by MOCouponInfo(), operator=(), and toXml().
|
protected |
Referenced by MOCouponInfo(), operator=(), and toXml().
|
protected |
Referenced by MOCouponInfo(), operator=(), and toXml().
|
protected |
Referenced by MOCouponInfo(), operator=(), and toXml().