MagicSmoke
$VERSION$
|
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. More...
#include <srcMOUser.h>
Public Member Functions | |
MOUser () | |
default constructor: constructs an invalid instance of MOUser More... | |
MOUser (const MOUser &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOUser (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOUser () |
destructor: deletes this copy of the object More... | |
virtual Nullable< QString > | description () const |
virtual Nullable< QString > | flags () const |
virtual Nullable< QString > | name () const |
MOUser & | operator= (const MOUser &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual void | setdescription (Nullable< QString > s) |
virtual void | setflags (Nullable< QString > s) |
virtual void | setname (Nullable< QString > s) |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="User") |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself. More... | |
void | toXml (QDomDocument &, QDomElement &) |
Serializes the object into the given element. More... | |
Static Public Member Functions | |
static MOUser | fromString (const QString &) |
create MOUser from XML formatted string (inverse of toString) More... | |
static MOUser | fromXml (const QDomElement &) |
create MOUser from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< QString > | mp_description |
Nullable< QString > | mp_flags |
Nullable< QString > | mp_name |
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.
|
inline |
default constructor: constructs an invalid instance of MOUser
Referenced by fromString(), and fromXml().
MOUser::MOUser | ( | const MOUser & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_description, mp_flags, and mp_name.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setdescription(), setflags(), and setname().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
|
inlinevirtual |
|
static |
|
static |
|
inlinevirtual |
copy assignment: creates a (deep) copy of the object
References mp_description, mp_flags, and mp_name.
|
inlinevirtual |
Referenced by MOUser().
|
inlinevirtual |
Referenced by MOUser().
|
inlinevirtual |
Referenced by MOUser().
QString MOUser::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOUser::toXml | ( | QDomDocument & | doc, |
QString | name = "User" |
||
) |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself.
doc | the DOM document node for which to generate the element |
name | the name to give the generated element, per default "MOUser" is used |
Referenced by toString().
void MOUser::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_description, mp_flags, and mp_name.
|
protected |
Referenced by MOUser(), operator=(), and toXml().
|
protected |
Referenced by MOUser(), operator=(), and toXml().
|
protected |
Referenced by MOUser(), operator=(), and toXml().