MagicSmoke  $VERSION$
srcMOUser.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_MOUser
4 #define WOBGEN_MOUser
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 
16 {
17  Q_GADGET
19  Q_PROPERTY(Nullable<QString> name READ name WRITE setname)
21  Q_PROPERTY(Nullable<QString> description READ description WRITE setdescription)
23  Q_PROPERTY(Nullable<QString> flags READ flags WRITE setflags)
24  protected:
25  Nullable<QString> mp_name;
26  Nullable<QString> mp_description;
27  Nullable<QString> mp_flags;
28  public:
30  virtual Nullable<QString> name()const{return mp_name;}
32  virtual Nullable<QString> description()const{return mp_description;}
34  virtual Nullable<QString> flags()const{return mp_flags;}
36  virtual void setname(Nullable<QString> s){mp_name=s;}
38  virtual void setdescription(Nullable<QString> s){mp_description=s;}
40  virtual void setflags(Nullable<QString> s){mp_flags=s;}
41  public:
43  QString toString();
47  QDomElement toXml(QDomDocument&doc,QString name="User");
49  void toXml(QDomDocument&,QDomElement&);
50  public:
52  MOUser():WObject(){}
54  MOUser(const MOUser&);
56  MOUser& operator=(const MOUser&);
58  explicit MOUser(const QDomElement&);
60  static MOUser fromXml(const QDomElement&);
62  static MOUser fromString(const QString&);
64  virtual ~MOUser(){}
65 
66 };
69 Q_DECLARE_METATYPE(Nullable<MOUser>)
70 
71 //END OF AUTOMATICALLY GENERATED FILE
72 #endif
virtual void setflags(Nullable< QString > s)
Definition: srcMOUser.h:40
Nullable< QString > mp_name
Definition: srcMOUser.h:25
Nullable< QString > mp_description
Definition: srcMOUser.h:26
This class represents the main information about users: login name plus description. Passwords are never carried towards the client, more detailed info is contained in other classes.
Definition: srcMOUser.h:15
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOUser.h:8
MOUser()
default constructor: constructs an invalid instance of MOUser
Definition: srcMOUser.h:52
virtual void setdescription(Nullable< QString > s)
Definition: srcMOUser.h:38
Nullable< QString > mp_flags
Definition: srcMOUser.h:27
Q_DECLARE_METATYPE(QDomNode)
virtual Nullable< QString > flags() const
Definition: srcMOUser.h:34
virtual ~MOUser()
destructor: deletes this copy of the object
Definition: srcMOUser.h:64
virtual Nullable< QString > name() const
Definition: srcMOUser.h:30
virtual void setname(Nullable< QString > s)
Definition: srcMOUser.h:36
virtual Nullable< QString > description() const
Definition: srcMOUser.h:32