MagicSmoke
$VERSION$
|
#include <srcMOCouponRule.h>
Public Member Functions | |
MOCouponRule () | |
default constructor: constructs an invalid instance of MOCouponRule More... | |
MOCouponRule (const MOCouponRule &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOCouponRule (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOCouponRule () |
destructor: deletes this copy of the object More... | |
virtual Nullable< QString > | couponid () const |
virtual Nullable< qint64 > | fromcategory () const |
virtual Nullable< qint64 > | maxuse () const |
virtual Nullable< qint64 > | needcategory () const |
virtual Nullable< qint64 > | needtickets () const |
MOCouponRule & | operator= (const MOCouponRule &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual Nullable< qint64 > | ruleid () const |
virtual void | setcouponid (Nullable< QString > s) |
virtual void | setfromcategory (Nullable< qint64 > s) |
virtual void | setmaxuse (Nullable< qint64 > s) |
virtual void | setneedcategory (Nullable< qint64 > s) |
virtual void | setneedtickets (Nullable< qint64 > s) |
virtual void | setruleid (Nullable< qint64 > s) |
virtual void | settocategory (Nullable< qint64 > s) |
virtual Nullable< qint64 > | tocategory () const |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="CouponRule") |
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 MOCouponRule | fromString (const QString &) |
create MOCouponRule from XML formatted string (inverse of toString) More... | |
static MOCouponRule | fromXml (const QDomElement &) |
create MOCouponRule from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< QString > | mp_couponid |
Nullable< qint64 > | mp_fromcategory |
Nullable< qint64 > | mp_maxuse |
Nullable< qint64 > | mp_needcategory |
Nullable< qint64 > | mp_needtickets |
Nullable< qint64 > | mp_ruleid |
Nullable< qint64 > | mp_tocategory |
|
inline |
default constructor: constructs an invalid instance of MOCouponRule
Referenced by fromString(), and fromXml().
MOCouponRule::MOCouponRule | ( | const MOCouponRule & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_couponid, mp_fromcategory, mp_maxuse, mp_needcategory, mp_needtickets, mp_ruleid, and mp_tocategory.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setcouponid(), setfromcategory(), setmaxuse(), setneedcategory(), setneedtickets(), setruleid(), and settocategory().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
|
inlinevirtual |
|
static |
create MOCouponRule from XML formatted string (inverse of toString)
References MOCouponRule().
|
static |
create MOCouponRule from XML (inverse of toXml)
References MOCouponRule().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
MOCouponRule & MOCouponRule::operator= | ( | const MOCouponRule & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_couponid, mp_fromcategory, mp_maxuse, mp_needcategory, mp_needtickets, mp_ruleid, and mp_tocategory.
|
inlinevirtual |
|
inlinevirtual |
Referenced by MOCouponRule().
|
inlinevirtual |
Referenced by MOCouponRule().
|
inlinevirtual |
Referenced by MOCouponRule().
|
inlinevirtual |
Referenced by MOCouponRule().
|
inlinevirtual |
Referenced by MOCouponRule().
|
inlinevirtual |
Referenced by MOCouponRule().
|
inlinevirtual |
Referenced by MOCouponRule().
|
inlinevirtual |
QString MOCouponRule::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOCouponRule::toXml | ( | QDomDocument & | doc, |
QString | name = "CouponRule" |
||
) |
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 "MOCouponRule" is used |
Referenced by toString().
void MOCouponRule::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_couponid, mp_fromcategory, mp_maxuse, mp_needcategory, mp_needtickets, mp_ruleid, and mp_tocategory.
|
protected |
Referenced by MOCouponRule(), operator=(), and toXml().
|
protected |
Referenced by MOCouponRule(), operator=(), and toXml().
|
protected |
Referenced by MOCouponRule(), operator=(), and toXml().
|
protected |
Referenced by MOCouponRule(), operator=(), and toXml().
|
protected |
Referenced by MOCouponRule(), operator=(), and toXml().
|
protected |
Referenced by MOCouponRule(), operator=(), and toXml().
|
protected |
Referenced by MOCouponRule(), operator=(), and toXml().