3 #ifndef WOBGEN_MOCartVoucher
4 #define WOBGEN_MOCartVoucher
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
30 static ValidationState str2ValidationState(QString,
bool*ok=0);
32 static QString ValidationState2str(ValidationState);
34 static ValidationState locstr2ValidationState(QString,
bool*ok=0);
36 static QString ValidationState2locstr(ValidationState);
38 Q_PROPERTY(Nullable<qint64> cartlineid READ cartlineid WRITE setcartlineid)
40 Q_PROPERTY(Nullable<qint64> amount READ amount WRITE setamount)
42 Q_PROPERTY(Nullable<qint64> value READ value WRITE setvalue)
44 Q_PROPERTY(Nullable<qint64> price READ price WRITE setprice)
48 Q_PROPERTY(Nullable<QString> cartid READ cartid WRITE setcartid)
50 Nullable<qint64> mp_cartlineid;
51 Nullable<qint64> mp_amount;
52 Nullable<qint64> mp_value;
53 Nullable<qint64> mp_price;
55 Nullable<QString> mp_cartid;
58 virtual Nullable<qint64> cartlineid()
const{
return mp_cartlineid;}
60 virtual Nullable<qint64>
amount()
const{
return mp_amount;}
62 virtual Nullable<qint64>
value()
const{
return mp_value;}
64 virtual Nullable<qint64>
price()
const{
return mp_price;}
66 virtual Nullable<ValidationState>
status()
const{
return mp_status;}
68 virtual Nullable<QString>
cartid()
const{
return mp_cartid;}
72 virtual void setamount(Nullable<qint64> s){mp_amount=s;}
74 virtual void setvalue(Nullable<qint64> s){mp_value=s;}
76 virtual void setprice(Nullable<qint64> s){mp_price=s;}
78 virtual void setstatus(Nullable<ValidationState> s){mp_status=s;}
80 virtual void setcartid(Nullable<QString> s){mp_cartid=s;}
87 QDomElement toXml(QDomDocument&doc,QString name=
"CartVoucher");
89 void toXml(QDomDocument&,QDomElement&);
virtual Nullable< qint64 > price() const
Definition: srcMOCartVoucher.h:64
virtual void setamount(Nullable< qint64 > s)
Definition: srcMOCartVoucher.h:72
virtual void setprice(Nullable< qint64 > s)
Definition: srcMOCartVoucher.h:76
virtual Nullable< QString > cartid() const
optional property that is used by the web user interface to identify the cart that is handled ...
Definition: srcMOCartVoucher.h:68
virtual void setcartlineid(Nullable< qint64 > s)
optional property that can be used by the calling process to distinguish lines in the cart...
Definition: srcMOCartVoucher.h:70
MOCartVoucher()
default constructor: constructs an invalid instance of MOCartVoucher
Definition: srcMOCartVoucher.h:92
virtual ~MOCartVoucher()
destructor: deletes this copy of the object
Definition: srcMOCartVoucher.h:104
virtual void setvalue(Nullable< qint64 > s)
Definition: srcMOCartVoucher.h:74
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOCartVoucher.h:8
virtual void setstatus(Nullable< ValidationState > s)
Definition: srcMOCartVoucher.h:78
Encapsulates vouchers as they are stored in the cart. Used by the client to tell the server about new...
Definition: srcMOCartVoucher.h:15
virtual Nullable< qint64 > amount() const
Definition: srcMOCartVoucher.h:60
virtual void setcartid(Nullable< QString > s)
optional property that is used by the web user interface to identify the cart that is handled ...
Definition: srcMOCartVoucher.h:80
virtual Nullable< ValidationState > status() const
Definition: srcMOCartVoucher.h:66
ValidationState
Definition: srcMOCartVoucher.h:21
Q_DECLARE_METATYPE(QDomNode)
virtual Nullable< qint64 > value() const
Definition: srcMOCartVoucher.h:62