3 #ifndef WOBGEN_MOCouponRule
4 #define WOBGEN_MOCouponRule
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
18 Q_PROPERTY(Nullable<qint64> ruleid READ ruleid WRITE setruleid)
20 Q_PROPERTY(Nullable<QString> couponid READ couponid WRITE setcouponid)
22 Q_PROPERTY(Nullable<qint64> fromcategory READ fromcategory WRITE setfromcategory)
24 Q_PROPERTY(Nullable<qint64> tocategory READ tocategory WRITE settocategory)
26 Q_PROPERTY(Nullable<qint64> maxuse READ maxuse WRITE setmaxuse)
28 Q_PROPERTY(Nullable<qint64> needcategory READ needcategory WRITE setneedcategory)
30 Q_PROPERTY(Nullable<qint64> needtickets READ needtickets WRITE setneedtickets)
41 virtual Nullable<qint64>
ruleid()
const{
return mp_ruleid;}
43 virtual Nullable<QString>
couponid()
const{
return mp_couponid;}
45 virtual Nullable<qint64>
fromcategory()
const{
return mp_fromcategory;}
47 virtual Nullable<qint64>
tocategory()
const{
return mp_tocategory;}
49 virtual Nullable<qint64>
maxuse()
const{
return mp_maxuse;}
51 virtual Nullable<qint64>
needcategory()
const{
return mp_needcategory;}
53 virtual Nullable<qint64>
needtickets()
const{
return mp_needtickets;}
55 virtual void setruleid(Nullable<qint64> s){mp_ruleid=s;}
63 virtual void setmaxuse(Nullable<qint64> s){mp_maxuse=s;}
74 QDomElement toXml(QDomDocument&doc,QString name=
"CouponRule");
76 void toXml(QDomDocument&,QDomElement&);
Nullable< qint64 > mp_needtickets
Definition: srcMOCouponRule.h:38
virtual Nullable< qint64 > maxuse() const
Definition: srcMOCouponRule.h:49
virtual void setneedcategory(Nullable< qint64 > s)
Definition: srcMOCouponRule.h:65
virtual void settocategory(Nullable< qint64 > s)
Definition: srcMOCouponRule.h:61
Nullable< qint64 > mp_tocategory
Definition: srcMOCouponRule.h:35
MOCouponRule()
default constructor: constructs an invalid instance of MOCouponRule
Definition: srcMOCouponRule.h:79
virtual Nullable< qint64 > fromcategory() const
Definition: srcMOCouponRule.h:45
Definition: srcMOCouponRule.h:14
virtual ~MOCouponRule()
destructor: deletes this copy of the object
Definition: srcMOCouponRule.h:91
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOCouponRule.h:8
virtual Nullable< qint64 > needcategory() const
Definition: srcMOCouponRule.h:51
Nullable< qint64 > mp_maxuse
Definition: srcMOCouponRule.h:36
virtual void setneedtickets(Nullable< qint64 > s)
Definition: srcMOCouponRule.h:67
virtual Nullable< qint64 > needtickets() const
Definition: srcMOCouponRule.h:53
virtual Nullable< qint64 > ruleid() const
Definition: srcMOCouponRule.h:41
virtual void setcouponid(Nullable< QString > s)
Definition: srcMOCouponRule.h:57
Nullable< qint64 > mp_ruleid
Definition: srcMOCouponRule.h:32
Nullable< QString > mp_couponid
Definition: srcMOCouponRule.h:33
Nullable< qint64 > mp_needcategory
Definition: srcMOCouponRule.h:37
virtual void setmaxuse(Nullable< qint64 > s)
Definition: srcMOCouponRule.h:63
Q_DECLARE_METATYPE(QDomNode)
virtual Nullable< QString > couponid() const
Definition: srcMOCouponRule.h:43
virtual void setruleid(Nullable< qint64 > s)
Definition: srcMOCouponRule.h:55
virtual Nullable< qint64 > tocategory() const
Definition: srcMOCouponRule.h:47
Nullable< qint64 > mp_fromcategory
Definition: srcMOCouponRule.h:34
virtual void setfromcategory(Nullable< qint64 > s)
Definition: srcMOCouponRule.h:59