MagicSmoke
$VERSION$
|
This class encapsulates shipping types. More...
#include <srcMOShipping.h>
Public Member Functions | |
MOShipping () | |
default constructor: constructs an invalid instance of MOShipping More... | |
MOShipping (const MOShipping &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOShipping (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOShipping () |
destructor: deletes this copy of the object More... | |
virtual Nullable< bool > | canuse () const |
virtual Nullable< qint64 > | cost () const |
virtual Nullable< QString > | description () const |
virtual Nullable< QString > | flags () const |
MOShipping & | operator= (const MOShipping &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual void | setcanuse (Nullable< bool > s) |
virtual void | setcost (Nullable< qint64 > s) |
virtual void | setdescription (Nullable< QString > s) |
virtual void | setflags (Nullable< QString > s) |
virtual void | setshipid (Nullable< qint64 > s) |
virtual Nullable< qint64 > | shipid () const |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="Shipping") |
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 MOShipping | fromString (const QString &) |
create MOShipping from XML formatted string (inverse of toString) More... | |
static MOShipping | fromXml (const QDomElement &) |
create MOShipping from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< bool > | mp_canuse |
Nullable< qint64 > | mp_cost |
Nullable< QString > | mp_description |
Nullable< QString > | mp_flags |
Nullable< qint64 > | mp_shipid |
This class encapsulates shipping types.
|
inline |
default constructor: constructs an invalid instance of MOShipping
Referenced by fromString(), and fromXml().
MOShipping::MOShipping | ( | const MOShipping & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_canuse, mp_cost, mp_description, mp_flags, and mp_shipid.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setcanuse(), setcost(), setdescription(), setflags(), and setshipid().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
static |
create MOShipping from XML formatted string (inverse of toString)
References MOShipping().
|
static |
create MOShipping from XML (inverse of toXml)
References MOShipping().
MOShipping & MOShipping::operator= | ( | const MOShipping & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_canuse, mp_cost, mp_description, mp_flags, and mp_shipid.
|
inlinevirtual |
Referenced by MOShipping().
|
inlinevirtual |
Referenced by MOShipping(), and MShippingChange::selection().
|
inlinevirtual |
Referenced by MOShipping().
|
inlinevirtual |
Referenced by MOShipping().
|
inlinevirtual |
Referenced by MOShipping().
|
inlinevirtual |
QString MOShipping::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOShipping::toXml | ( | QDomDocument & | doc, |
QString | name = "Shipping" |
||
) |
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 "MOShipping" is used |
Referenced by toString().
void MOShipping::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_canuse, mp_cost, mp_description, mp_flags, and mp_shipid.
|
protected |
Referenced by MOShipping(), operator=(), and toXml().
|
protected |
Referenced by MOShipping(), operator=(), and toXml().
|
protected |
Referenced by MOShipping(), operator=(), and toXml().
|
protected |
Referenced by MOShipping(), operator=(), and toXml().
|
protected |
Referenced by MOShipping(), operator=(), and toXml().