MagicSmoke  $VERSION$
MOCouponRule Class Reference

#include <srcMOCouponRule.h>

Inheritance diagram for MOCouponRule:

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
 
MOCouponRuleoperator= (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
 

Constructor & Destructor Documentation

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

MOCouponRule::MOCouponRule ( const QDomElement &  root)
explicit

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

References setcouponid(), setfromcategory(), setmaxuse(), setneedcategory(), setneedtickets(), setruleid(), and settocategory().

virtual MOCouponRule::~MOCouponRule ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<QString> MOCouponRule::couponid ( ) const
inlinevirtual
virtual Nullable<qint64> MOCouponRule::fromcategory ( ) const
inlinevirtual
MOCouponRule MOCouponRule::fromString ( const QString &  txt)
static

create MOCouponRule from XML formatted string (inverse of toString)

References MOCouponRule().

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

create MOCouponRule from XML (inverse of toXml)

References MOCouponRule().

virtual Nullable<qint64> MOCouponRule::maxuse ( ) const
inlinevirtual
virtual Nullable<qint64> MOCouponRule::needcategory ( ) const
inlinevirtual
virtual Nullable<qint64> MOCouponRule::needtickets ( ) const
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.

virtual Nullable<qint64> MOCouponRule::ruleid ( ) const
inlinevirtual
virtual void MOCouponRule::setcouponid ( Nullable< QString >  s)
inlinevirtual

Referenced by MOCouponRule().

virtual void MOCouponRule::setfromcategory ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOCouponRule().

virtual void MOCouponRule::setmaxuse ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOCouponRule().

virtual void MOCouponRule::setneedcategory ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOCouponRule().

virtual void MOCouponRule::setneedtickets ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOCouponRule().

virtual void MOCouponRule::setruleid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOCouponRule().

virtual void MOCouponRule::settocategory ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOCouponRule().

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

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

Member Data Documentation

Nullable<QString> MOCouponRule::mp_couponid
protected

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

Nullable<qint64> MOCouponRule::mp_fromcategory
protected

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

Nullable<qint64> MOCouponRule::mp_maxuse
protected

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

Nullable<qint64> MOCouponRule::mp_needcategory
protected

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

Nullable<qint64> MOCouponRule::mp_needtickets
protected

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

Nullable<qint64> MOCouponRule::mp_ruleid
protected

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

Nullable<qint64> MOCouponRule::mp_tocategory
protected

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


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