MagicSmoke
$VERSION$
|
This class represents a document stored for a specific order. More...
#include <srcMOOrderDocument.h>
Public Member Functions | |
MOOrderDocument () | |
default constructor: constructs an invalid instance of MOOrderDocument More... | |
MOOrderDocument (const MOOrderDocument &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOOrderDocument (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOOrderDocument () |
destructor: deletes this copy of the object More... | |
virtual Nullable< QByteArray > | content () const |
File Content. More... | |
virtual Nullable< qint64 > | fileid () const |
Informational: internal file ID. More... | |
virtual Nullable< QString > | filename () const |
The file name of the document. More... | |
virtual Nullable< qint64 > | mtime () const |
Modification Time. More... | |
MOOrderDocument & | operator= (const MOOrderDocument &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual Nullable< qint64 > | orderid () const |
The order it belongs to. More... | |
virtual Nullable< qint64 > | rtime () const |
Web Retrieval Time. More... | |
virtual void | setcontent (Nullable< QByteArray > s) |
File Content. More... | |
virtual void | setfileid (Nullable< qint64 > s) |
Informational: internal file ID. More... | |
virtual void | setfilename (Nullable< QString > s) |
The file name of the document. More... | |
virtual void | setmtime (Nullable< qint64 > s) |
Modification Time. More... | |
virtual void | setorderid (Nullable< qint64 > s) |
The order it belongs to. More... | |
virtual void | setrtime (Nullable< qint64 > s) |
Web Retrieval Time. More... | |
virtual void | setvisible (Nullable< bool > s) |
True if the file is visible for the customer. More... | |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="OrderDocument") |
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... | |
virtual Nullable< bool > | visible () const |
True if the file is visible for the customer. More... | |
Static Public Member Functions | |
static MOOrderDocument | fromString (const QString &) |
create MOOrderDocument from XML formatted string (inverse of toString) More... | |
static MOOrderDocument | fromXml (const QDomElement &) |
create MOOrderDocument from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< QByteArray > | mp_content |
Nullable< qint64 > | mp_fileid |
Nullable< QString > | mp_filename |
Nullable< qint64 > | mp_mtime |
Nullable< qint64 > | mp_orderid |
Nullable< qint64 > | mp_rtime |
Nullable< bool > | mp_visible |
This class represents a document stored for a specific order.
|
inline |
default constructor: constructs an invalid instance of MOOrderDocument
Referenced by fromString(), and fromXml().
MOOrderDocument::MOOrderDocument | ( | const MOOrderDocument & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_content, mp_fileid, mp_filename, mp_mtime, mp_orderid, mp_rtime, and mp_visible.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setcontent(), setfileid(), setfilename(), setmtime(), setorderid(), setrtime(), and setvisible().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
File Content.
|
inlinevirtual |
Informational: internal file ID.
|
inlinevirtual |
The file name of the document.
|
static |
create MOOrderDocument from XML formatted string (inverse of toString)
References MOOrderDocument().
|
static |
create MOOrderDocument from XML (inverse of toXml)
References MOOrderDocument().
|
inlinevirtual |
Modification Time.
MOOrderDocument & MOOrderDocument::operator= | ( | const MOOrderDocument & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_content, mp_fileid, mp_filename, mp_mtime, mp_orderid, mp_rtime, and mp_visible.
|
inlinevirtual |
The order it belongs to.
|
inlinevirtual |
Web Retrieval Time.
|
inlinevirtual |
File Content.
Referenced by MOOrderDocument().
|
inlinevirtual |
Informational: internal file ID.
Referenced by MOOrderDocument().
|
inlinevirtual |
The file name of the document.
Referenced by MOOrderDocument().
|
inlinevirtual |
Modification Time.
Referenced by MOOrderDocument().
|
inlinevirtual |
The order it belongs to.
Referenced by MOOrderDocument().
|
inlinevirtual |
Web Retrieval Time.
Referenced by MOOrderDocument().
|
inlinevirtual |
True if the file is visible for the customer.
Referenced by MOOrderDocument().
QString MOOrderDocument::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOOrderDocument::toXml | ( | QDomDocument & | doc, |
QString | name = "OrderDocument" |
||
) |
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 "MOOrderDocument" is used |
Referenced by toString().
void MOOrderDocument::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_content, mp_fileid, mp_filename, mp_mtime, mp_orderid, mp_rtime, and mp_visible.
|
inlinevirtual |
True if the file is visible for the customer.
|
protected |
Referenced by MOOrderDocument(), operator=(), and toXml().
|
protected |
Referenced by MOOrderDocument(), operator=(), and toXml().
|
protected |
Referenced by MOOrderDocument(), operator=(), and toXml().
|
protected |
Referenced by MOOrderDocument(), operator=(), and toXml().
|
protected |
Referenced by MOOrderDocument(), operator=(), and toXml().
|
protected |
Referenced by MOOrderDocument(), operator=(), and toXml().
|
protected |
Referenced by MOOrderDocument(), operator=(), and toXml().