MagicSmoke
$VERSION$
|
used for basic info about items More...
#include <srcMOItemInfo.h>
Public Member Functions | |
MOItemInfo () | |
default constructor: constructs an invalid instance of MOItemInfo More... | |
MOItemInfo (const MOItemInfo &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOItemInfo (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOItemInfo () |
destructor: deletes this copy of the object More... | |
virtual Nullable< qint64 > | amount () const |
virtual Nullable< qint64 > | itemid () const |
MOItemInfo & | operator= (const MOItemInfo &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual Nullable< qint64 > | orderid () const |
virtual Nullable< qint64 > | productid () const |
virtual Nullable< QString > | productname () const |
virtual void | setamount (Nullable< qint64 > s) |
virtual void | setitemid (Nullable< qint64 > s) |
virtual void | setorderid (Nullable< qint64 > s) |
virtual void | setproductid (Nullable< qint64 > s) |
virtual void | setproductname (Nullable< QString > s) |
virtual void | settotalprice (Nullable< qint64 > s) |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
virtual Nullable< qint64 > | totalprice () const |
QDomElement | toXml (QDomDocument &doc, QString name="ItemInfo") |
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 MOItemInfo | fromString (const QString &) |
create MOItemInfo from XML formatted string (inverse of toString) More... | |
static MOItemInfo | fromXml (const QDomElement &) |
create MOItemInfo from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< qint64 > | mp_amount |
Nullable< qint64 > | mp_itemid |
Nullable< qint64 > | mp_orderid |
Nullable< qint64 > | mp_productid |
Nullable< QString > | mp_productname |
Nullable< qint64 > | mp_totalprice |
used for basic info about items
|
inline |
default constructor: constructs an invalid instance of MOItemInfo
Referenced by fromString(), and fromXml().
MOItemInfo::MOItemInfo | ( | const MOItemInfo & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_amount, mp_itemid, mp_orderid, mp_productid, mp_productname, and mp_totalprice.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setamount(), setitemid(), setorderid(), setproductid(), setproductname(), and settotalprice().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
|
static |
create MOItemInfo from XML formatted string (inverse of toString)
References MOItemInfo().
|
static |
create MOItemInfo from XML (inverse of toXml)
References MOItemInfo().
|
inlinevirtual |
MOItemInfo & MOItemInfo::operator= | ( | const MOItemInfo & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_amount, mp_itemid, mp_orderid, mp_productid, mp_productname, and mp_totalprice.
Referenced by MOItemAudit::operator=().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Referenced by MOItemInfo().
|
inlinevirtual |
Referenced by MOItemInfo().
|
inlinevirtual |
Referenced by MOItemInfo().
|
inlinevirtual |
Referenced by MOItemInfo().
|
inlinevirtual |
Referenced by MOItemInfo().
|
inlinevirtual |
Referenced by MOItemInfo().
QString MOItemInfo::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
|
inlinevirtual |
QDomElement MOItemInfo::toXml | ( | QDomDocument & | doc, |
QString | name = "ItemInfo" |
||
) |
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 "MOItemInfo" is used |
Referenced by toString(), and MOItemAudit::toXml().
void MOItemInfo::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_amount, mp_itemid, mp_orderid, mp_productid, mp_productname, and mp_totalprice.
|
protected |
Referenced by MOItemInfo(), operator=(), and toXml().
|
protected |
Referenced by MOItemInfo(), operator=(), and toXml().
|
protected |
Referenced by MOItemInfo(), operator=(), and toXml().
|
protected |
Referenced by MOItemInfo(), operator=(), and toXml().
|
protected |
Referenced by MOItemInfo(), operator=(), and toXml().
|
protected |
Referenced by MOItemInfo(), operator=(), and toXml().