MagicSmoke
$VERSION$
|
Transport class for flags and their descriptions. They are actually stored in the config table. More...
#include <srcMOFlag.h>
Public Member Functions | |
MOFlag () | |
default constructor: constructs an invalid instance of MOFlag More... | |
MOFlag (const MOFlag &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOFlag (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOFlag () |
destructor: deletes this copy of the object More... | |
virtual Nullable< QString > | description () const |
virtual Nullable< QString > | flag () const |
MOFlag & | operator= (const MOFlag &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual void | setdescription (Nullable< QString > s) |
virtual void | setflag (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="Flag") |
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 MOFlag | fromString (const QString &) |
create MOFlag from XML formatted string (inverse of toString) More... | |
static MOFlag | fromXml (const QDomElement &) |
create MOFlag from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< QString > | mp_description |
Nullable< QString > | mp_flag |
Transport class for flags and their descriptions. They are actually stored in the config table.
|
inline |
default constructor: constructs an invalid instance of MOFlag
Referenced by fromString(), and fromXml().
MOFlag::MOFlag | ( | const MOFlag & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_description, and mp_flag.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setdescription(), and setflag().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
|
inlinevirtual |
|
static |
|
static |
copy assignment: creates a (deep) copy of the object
References mp_description, and mp_flag.
|
inlinevirtual |
Referenced by MFlagTab::changeFlag(), and MOFlag().
|
inlinevirtual |
Referenced by MFlagTab::addFlag(), MFlagTab::changeFlag(), and MOFlag().
QString MOFlag::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOFlag::toXml | ( | QDomDocument & | doc, |
QString | name = "Flag" |
||
) |
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 "MOFlag" is used |
Referenced by toString().
void MOFlag::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_description, and mp_flag.
|
protected |
Referenced by MOFlag(), operator=(), and toXml().
|
protected |
Referenced by MOFlag(), operator=(), and toXml().