MagicSmoke  $VERSION$
srcMOKeyValuePairAbstract.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_MOKeyValuePairAbstract
4 #define WOBGEN_MOKeyValuePairAbstract
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<QString> key READ key WRITE setkey)
20  Q_PROPERTY(Nullable<QString> value READ value WRITE setvalue)
22  Q_PROPERTY(Nullable<bool> isnull READ isnull WRITE setisnull)
23  protected:
24  Nullable<QString> mp_key;
25  Nullable<QString> mp_value;
26  Nullable<bool> mp_isnull;
27  public:
29  virtual Nullable<QString> key()const{return mp_key;}
31  virtual Nullable<QString> value()const{return mp_value;}
33  virtual Nullable<bool> isnull()const{return mp_isnull;}
35  virtual void setkey(Nullable<QString> s){mp_key=s;}
37  virtual void setvalue(Nullable<QString> s){mp_value=s;}
39  virtual void setisnull(Nullable<bool> s){mp_isnull=s;}
40  public:
42  QString toString();
46  QDomElement toXml(QDomDocument&doc,QString name="KeyValuePair");
48  void toXml(QDomDocument&,QDomElement&);
49  public:
51  MOKeyValuePairAbstract():WObject(){}
57  explicit MOKeyValuePairAbstract(const QDomElement&);
59  static MOKeyValuePairAbstract fromXml(const QDomElement&);
61  static MOKeyValuePairAbstract fromString(const QString&);
64 
65 };
69 
70 //END OF AUTOMATICALLY GENERATED FILE
71 #endif
virtual Nullable< QString > value() const
Definition: srcMOKeyValuePairAbstract.h:31
virtual Nullable< bool > isnull() const
Definition: srcMOKeyValuePairAbstract.h:33
virtual void setkey(Nullable< QString > s)
Definition: srcMOKeyValuePairAbstract.h:35
MOKeyValuePairAbstract()
default constructor: constructs an invalid instance of MOKeyValuePairAbstract
Definition: srcMOKeyValuePairAbstract.h:51
virtual void setvalue(Nullable< QString > s)
Definition: srcMOKeyValuePairAbstract.h:37
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOKeyValuePairAbstract.h:8
virtual ~MOKeyValuePairAbstract()
destructor: deletes this copy of the object
Definition: srcMOKeyValuePairAbstract.h:63
Nullable< QString > mp_key
Definition: srcMOKeyValuePairAbstract.h:24
Definition: srcMOKeyValuePairAbstract.h:14
virtual void setisnull(Nullable< bool > s)
Definition: srcMOKeyValuePairAbstract.h:39
virtual Nullable< QString > key() const
Definition: srcMOKeyValuePairAbstract.h:29
Q_DECLARE_METATYPE(QDomNode)
Nullable< bool > mp_isnull
Definition: srcMOKeyValuePairAbstract.h:26
Nullable< QString > mp_value
Definition: srcMOKeyValuePairAbstract.h:25