MagicSmoke  $VERSION$
MOOrderDocument Class Reference

This class represents a document stored for a specific order. More...

#include <srcMOOrderDocument.h>

Inheritance diagram for MOOrderDocument:

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...
 
MOOrderDocumentoperator= (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
 

Detailed Description

This class represents a document stored for a specific order.

Constructor & Destructor Documentation

MOOrderDocument::MOOrderDocument ( )
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.

MOOrderDocument::MOOrderDocument ( const QDomElement &  root)
explicit

special constructor: create from the XML representation, deserializing the object

References setcontent(), setfileid(), setfilename(), setmtime(), setorderid(), setrtime(), and setvisible().

virtual MOOrderDocument::~MOOrderDocument ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<QByteArray> MOOrderDocument::content ( ) const
inlinevirtual

File Content.

virtual Nullable<qint64> MOOrderDocument::fileid ( ) const
inlinevirtual

Informational: internal file ID.

virtual Nullable<QString> MOOrderDocument::filename ( ) const
inlinevirtual

The file name of the document.

MOOrderDocument MOOrderDocument::fromString ( const QString &  txt)
static

create MOOrderDocument from XML formatted string (inverse of toString)

References MOOrderDocument().

MOOrderDocument MOOrderDocument::fromXml ( const QDomElement &  root)
static

create MOOrderDocument from XML (inverse of toXml)

References MOOrderDocument().

virtual Nullable<qint64> MOOrderDocument::mtime ( ) const
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.

virtual Nullable<qint64> MOOrderDocument::orderid ( ) const
inlinevirtual

The order it belongs to.

virtual Nullable<qint64> MOOrderDocument::rtime ( ) const
inlinevirtual

Web Retrieval Time.

virtual void MOOrderDocument::setcontent ( Nullable< QByteArray >  s)
inlinevirtual

File Content.

Referenced by MOOrderDocument().

virtual void MOOrderDocument::setfileid ( Nullable< qint64 >  s)
inlinevirtual

Informational: internal file ID.

Referenced by MOOrderDocument().

virtual void MOOrderDocument::setfilename ( Nullable< QString >  s)
inlinevirtual

The file name of the document.

Referenced by MOOrderDocument().

virtual void MOOrderDocument::setmtime ( Nullable< qint64 >  s)
inlinevirtual

Modification Time.

Referenced by MOOrderDocument().

virtual void MOOrderDocument::setorderid ( Nullable< qint64 >  s)
inlinevirtual

The order it belongs to.

Referenced by MOOrderDocument().

virtual void MOOrderDocument::setrtime ( Nullable< qint64 >  s)
inlinevirtual

Web Retrieval Time.

Referenced by MOOrderDocument().

virtual void MOOrderDocument::setvisible ( Nullable< bool >  s)
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.

Parameters
docthe DOM document node for which to generate the element
namethe 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.

virtual Nullable<bool> MOOrderDocument::visible ( ) const
inlinevirtual

True if the file is visible for the customer.

Member Data Documentation

Nullable<QByteArray> MOOrderDocument::mp_content
protected

Referenced by MOOrderDocument(), operator=(), and toXml().

Nullable<qint64> MOOrderDocument::mp_fileid
protected

Referenced by MOOrderDocument(), operator=(), and toXml().

Nullable<QString> MOOrderDocument::mp_filename
protected

Referenced by MOOrderDocument(), operator=(), and toXml().

Nullable<qint64> MOOrderDocument::mp_mtime
protected

Referenced by MOOrderDocument(), operator=(), and toXml().

Nullable<qint64> MOOrderDocument::mp_orderid
protected

Referenced by MOOrderDocument(), operator=(), and toXml().

Nullable<qint64> MOOrderDocument::mp_rtime
protected

Referenced by MOOrderDocument(), operator=(), and toXml().

Nullable<bool> MOOrderDocument::mp_visible
protected

Referenced by MOOrderDocument(), operator=(), and toXml().


The documentation for this class was generated from the following files: