MagicSmoke  $VERSION$
srcMOCustomerAbstract.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_MOCustomerAbstract
4 #define WOBGEN_MOCustomerAbstract
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 
14 #include "MOAddress"
15 #include "MOContact"
17 {
18  Q_GADGET
20  Q_PROPERTY(Nullable<qint64> id READ id WRITE setid)
22  Q_PROPERTY(Nullable<QString> title READ title WRITE settitle)
24  Q_PROPERTY(Nullable<QString> firstname READ firstname WRITE setfirstname)
26  Q_PROPERTY(Nullable<QString> name READ name WRITE setname)
28  Q_PROPERTY(Nullable<QString> comments READ comments WRITE setcomments)
30  Q_PROPERTY(Nullable<QString> cflags READ cflags WRITE setcflags)
32  Q_PROPERTY(Nullable<QString> tags READ tags WRITE settags)
34  Q_PROPERTY(Nullable<QString> email READ email WRITE setemail)
36  Q_PROPERTY(QList<MOAddress> addresses READ addresses WRITE setaddresses)
38  Q_PROPERTY(QList<MOContact> contacts READ contacts WRITE setcontacts)
39  protected:
40  Nullable<qint64> mp_id;
41  Nullable<QString> mp_title;
42  Nullable<QString> mp_firstname;
43  Nullable<QString> mp_name;
44  Nullable<QString> mp_comments;
45  Nullable<QString> mp_cflags;
46  Nullable<QString> mp_tags;
47  Nullable<QString> mp_email;
48  QList<MOAddress> mp_addresses;
49  QList<MOContact> mp_contacts;
50  public:
52  virtual Nullable<qint64> id()const{return mp_id;}
54  virtual Nullable<QString> title()const{return mp_title;}
56  virtual Nullable<QString> firstname()const{return mp_firstname;}
58  virtual Nullable<QString> name()const{return mp_name;}
60  virtual Nullable<QString> comments()const{return mp_comments;}
62  virtual Nullable<QString> cflags()const{return mp_cflags;}
64  virtual Nullable<QString> tags()const{return mp_tags;}
66  virtual Nullable<QString> email()const{return mp_email;}
68  virtual QList<MOAddress> addresses()const{return mp_addresses;}
70  virtual QList<MOContact> contacts()const{return mp_contacts;}
72  virtual void setid(Nullable<qint64> s){mp_id=s;}
74  virtual void settitle(Nullable<QString> s){mp_title=s;}
76  virtual void setfirstname(Nullable<QString> s){mp_firstname=s;}
78  virtual void setname(Nullable<QString> s){mp_name=s;}
80  virtual void setcomments(Nullable<QString> s){mp_comments=s;}
82  virtual void setcflags(Nullable<QString> s){mp_cflags=s;}
84  virtual void settags(Nullable<QString> s){mp_tags=s;}
86  virtual void setemail(Nullable<QString> s){mp_email=s;}
88  virtual void setaddresses(QList<MOAddress> s){mp_addresses=s;}
89  virtual void clearaddresses(){mp_addresses.clear();}
90  virtual void addaddresses(Nullable<MOAddress> a){mp_addresses.append(a);}
92  virtual void setcontacts(QList<MOContact> s){mp_contacts=s;}
93  virtual void clearcontacts(){mp_contacts.clear();}
94  virtual void addcontacts(Nullable<MOContact> a){mp_contacts.append(a);}
95  public:
97  QString toString();
101  QDomElement toXml(QDomDocument&doc,QString name="Customer");
103  void toXml(QDomDocument&,QDomElement&);
104  public:
106  MOCustomerAbstract():WObject(){}
110  MOCustomerAbstract& operator=(const MOCustomerAbstract&);
112  explicit MOCustomerAbstract(const QDomElement&);
114  static MOCustomerAbstract fromXml(const QDomElement&);
116  static MOCustomerAbstract fromString(const QString&);
119 
120 };
124 
125 //END OF AUTOMATICALLY GENERATED FILE
126 #endif
virtual void clearaddresses()
Definition: srcMOCustomerAbstract.h:89
virtual void setcflags(Nullable< QString > s)
Definition: srcMOCustomerAbstract.h:82
virtual Nullable< QString > firstname() const
Definition: srcMOCustomerAbstract.h:56
virtual QList< MOContact > contacts() const
Definition: srcMOCustomerAbstract.h:70
virtual void setaddresses(QList< MOAddress > s)
Definition: srcMOCustomerAbstract.h:88
virtual QList< MOAddress > addresses() const
Definition: srcMOCustomerAbstract.h:68
MOCustomerAbstract()
default constructor: constructs an invalid instance of MOCustomerAbstract
Definition: srcMOCustomerAbstract.h:106
virtual Nullable< QString > tags() const
Definition: srcMOCustomerAbstract.h:64
virtual void setcomments(Nullable< QString > s)
Definition: srcMOCustomerAbstract.h:80
virtual Nullable< QString > title() const
Definition: srcMOCustomerAbstract.h:54
virtual void setfirstname(Nullable< QString > s)
Definition: srcMOCustomerAbstract.h:76
virtual Nullable< QString > comments() const
Definition: srcMOCustomerAbstract.h:60
virtual void clearcontacts()
Definition: srcMOCustomerAbstract.h:93
Nullable< QString > mp_email
Definition: srcMOCustomerAbstract.h:47
Nullable< QString > mp_title
Definition: srcMOCustomerAbstract.h:41
Nullable< QString > mp_tags
Definition: srcMOCustomerAbstract.h:46
virtual void addaddresses(Nullable< MOAddress > a)
Definition: srcMOCustomerAbstract.h:90
Nullable< QString > mp_name
Definition: srcMOCustomerAbstract.h:43
virtual void addcontacts(Nullable< MOContact > a)
Definition: srcMOCustomerAbstract.h:94
QList< MOContact > mp_contacts
Definition: srcMOCustomerAbstract.h:49
QList< MOAddress > mp_addresses
Definition: srcMOCustomerAbstract.h:48
virtual void setid(Nullable< qint64 > s)
Definition: srcMOCustomerAbstract.h:72
virtual void setcontacts(QList< MOContact > s)
Definition: srcMOCustomerAbstract.h:92
virtual void settags(Nullable< QString > s)
Definition: srcMOCustomerAbstract.h:84
virtual Nullable< qint64 > id() const
Definition: srcMOCustomerAbstract.h:52
Nullable< QString > mp_comments
Definition: srcMOCustomerAbstract.h:44
virtual void setemail(Nullable< QString > s)
Definition: srcMOCustomerAbstract.h:86
Nullable< QString > mp_firstname
Definition: srcMOCustomerAbstract.h:42
virtual Nullable< QString > name() const
Definition: srcMOCustomerAbstract.h:58
Definition: srcMOCustomerAbstract.h:16
Q_DECLARE_METATYPE(QDomNode)
virtual void setname(Nullable< QString > s)
Definition: srcMOCustomerAbstract.h:78
virtual void settitle(Nullable< QString > s)
Definition: srcMOCustomerAbstract.h:74
virtual Nullable< QString > cflags() const
Definition: srcMOCustomerAbstract.h:62
Nullable< qint64 > mp_id
Definition: srcMOCustomerAbstract.h:40
virtual ~MOCustomerAbstract()
destructor: deletes this copy of the object
Definition: srcMOCustomerAbstract.h:118
virtual Nullable< QString > email() const
Definition: srcMOCustomerAbstract.h:66
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOCustomerAbstract.h:8
Nullable< QString > mp_cflags
Definition: srcMOCustomerAbstract.h:45