7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
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)
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;}
40 virtual void setflags(Nullable<QString> s){mp_flags=s;}
47 QDomElement toXml(QDomDocument&doc,QString name=
"User");
49 void toXml(QDomDocument&,QDomElement&);
58 explicit MOUser(
const QDomElement&);
60 static MOUser fromXml(
const QDomElement&);
62 static MOUser fromString(
const QString&);
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