MagicSmoke  $VERSION$
MOUser Class Reference

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>

Inheritance diagram for MOUser:

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
 
MOUseroperator= (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
 

Detailed Description

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.

Constructor & Destructor Documentation

MOUser::MOUser ( )
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.

MOUser::MOUser ( const QDomElement &  root)
explicit

special constructor: create from the XML representation, deserializing the object

References setdescription(), setflags(), and setname().

virtual MOUser::~MOUser ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<QString> MOUser::description ( ) const
inlinevirtual
virtual Nullable<QString> MOUser::flags ( ) const
inlinevirtual
MOUser MOUser::fromString ( const QString &  txt)
static

create MOUser from XML formatted string (inverse of toString)

References MOUser().

MOUser MOUser::fromXml ( const QDomElement &  root)
static

create MOUser from XML (inverse of toXml)

References MOUser().

virtual Nullable<QString> MOUser::name ( ) const
inlinevirtual
MOUser & MOUser::operator= ( const MOUser o)

copy assignment: creates a (deep) copy of the object

References mp_description, mp_flags, and mp_name.

virtual void MOUser::setdescription ( Nullable< QString >  s)
inlinevirtual

Referenced by MOUser().

virtual void MOUser::setflags ( Nullable< QString >  s)
inlinevirtual

Referenced by MOUser().

virtual void MOUser::setname ( Nullable< QString >  s)
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.

Parameters
docthe DOM document node for which to generate the element
namethe 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.

Member Data Documentation

Nullable<QString> MOUser::mp_description
protected

Referenced by MOUser(), operator=(), and toXml().

Nullable<QString> MOUser::mp_flags
protected

Referenced by MOUser(), operator=(), and toXml().

Nullable<QString> MOUser::mp_name
protected

Referenced by MOUser(), operator=(), and toXml().


The documentation for this class was generated from the following files: