MagicSmoke  $VERSION$
srcMOCouponRule.h
Go to the documentation of this file.
1 //BEGIN OF AUTOMATICALLY GENERATED FILE
2 //DO NOT EDIT THIS FILE DIRECTLY, USE THE XML SOURCE!
3 #ifndef WOBGEN_MOCouponRule
4 #define WOBGEN_MOCouponRule
5 
6 
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
9 #endif
10 
11 #include "WObject"
12 #include <QCoreApplication>
13 
15 {
16  Q_GADGET
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)
31  protected:
32  Nullable<qint64> mp_ruleid;
33  Nullable<QString> mp_couponid;
34  Nullable<qint64> mp_fromcategory;
35  Nullable<qint64> mp_tocategory;
36  Nullable<qint64> mp_maxuse;
37  Nullable<qint64> mp_needcategory;
38  Nullable<qint64> mp_needtickets;
39  public:
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;}
57  virtual void setcouponid(Nullable<QString> s){mp_couponid=s;}
59  virtual void setfromcategory(Nullable<qint64> s){mp_fromcategory=s;}
61  virtual void settocategory(Nullable<qint64> s){mp_tocategory=s;}
63  virtual void setmaxuse(Nullable<qint64> s){mp_maxuse=s;}
65  virtual void setneedcategory(Nullable<qint64> s){mp_needcategory=s;}
67  virtual void setneedtickets(Nullable<qint64> s){mp_needtickets=s;}
68  public:
70  QString toString();
74  QDomElement toXml(QDomDocument&doc,QString name="CouponRule");
76  void toXml(QDomDocument&,QDomElement&);
77  public:
79  MOCouponRule():WObject(){}
81  MOCouponRule(const MOCouponRule&);
83  MOCouponRule& operator=(const MOCouponRule&);
85  explicit MOCouponRule(const QDomElement&);
87  static MOCouponRule fromXml(const QDomElement&);
89  static MOCouponRule fromString(const QString&);
91  virtual ~MOCouponRule(){}
92 
93 };
97 
98 //END OF AUTOMATICALLY GENERATED FILE
99 #endif
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