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