MagicSmoke  $VERSION$
MOArtist Class Reference

#include <srcMOArtist.h>

Inheritance diagram for MOArtist:

Public Member Functions

 MOArtist ()
 default constructor: constructs an invalid instance of MOArtist More...
 
 MOArtist (const MOArtist &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOArtist (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOArtist ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< bool > canuse () const
 
virtual Nullable< QString > comment () const
 
virtual Nullable< QString > description () const
 
virtual Nullable< QString > flags () const
 
virtual Nullable< qint64 > id () const
 
virtual Nullable< QString > name () const
 
MOArtistoperator= (const MOArtist &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setcanuse (Nullable< bool > s)
 
virtual void setcomment (Nullable< QString > s)
 
virtual void setdescription (Nullable< QString > s)
 
virtual void setflags (Nullable< QString > s)
 
virtual void setid (Nullable< qint64 > s)
 
virtual void setname (Nullable< QString > s)
 
virtual void settags (Nullable< QString > s)
 
virtual Nullable< QString > tags () const
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="Artist")
 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 MOArtist fromString (const QString &)
 create MOArtist from XML formatted string (inverse of toString) More...
 
static MOArtist fromXml (const QDomElement &)
 create MOArtist from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< bool > mp_canuse
 
Nullable< QString > mp_comment
 
Nullable< QString > mp_description
 
Nullable< QString > mp_flags
 
Nullable< qint64 > mp_id
 
Nullable< QString > mp_name
 
Nullable< QString > mp_tags
 

Constructor & Destructor Documentation

MOArtist::MOArtist ( )
inline

default constructor: constructs an invalid instance of MOArtist

Referenced by fromString(), and fromXml().

MOArtist::MOArtist ( const MOArtist o)

copy constructor: creates a (deep) copy of the object

References mp_canuse, mp_comment, mp_description, mp_flags, mp_id, mp_name, and mp_tags.

MOArtist::MOArtist ( const QDomElement &  root)
explicit

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

References setcanuse(), setcomment(), setdescription(), setflags(), setid(), setname(), and settags().

virtual MOArtist::~MOArtist ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<bool> MOArtist::canuse ( ) const
inlinevirtual
virtual Nullable<QString> MOArtist::comment ( ) const
inlinevirtual
virtual Nullable<QString> MOArtist::description ( ) const
inlinevirtual
virtual Nullable<QString> MOArtist::flags ( ) const
inlinevirtual
MOArtist MOArtist::fromString ( const QString &  txt)
static

create MOArtist from XML formatted string (inverse of toString)

References MOArtist().

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

create MOArtist from XML (inverse of toXml)

References MOArtist().

virtual Nullable<qint64> MOArtist::id ( ) const
inlinevirtual
virtual Nullable<QString> MOArtist::name ( ) const
inlinevirtual
MOArtist & MOArtist::operator= ( const MOArtist o)

copy assignment: creates a (deep) copy of the object

References mp_canuse, mp_comment, mp_description, mp_flags, mp_id, mp_name, and mp_tags.

virtual void MOArtist::setcanuse ( Nullable< bool >  s)
inlinevirtual

Referenced by MOArtist().

virtual void MOArtist::setcomment ( Nullable< QString >  s)
inlinevirtual

Referenced by MOArtist().

virtual void MOArtist::setdescription ( Nullable< QString >  s)
inlinevirtual

Referenced by MOArtist().

virtual void MOArtist::setflags ( Nullable< QString >  s)
inlinevirtual

Referenced by MOArtist().

virtual void MOArtist::setid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOArtist().

virtual void MOArtist::setname ( Nullable< QString >  s)
inlinevirtual

Referenced by MOArtist().

virtual void MOArtist::settags ( Nullable< QString >  s)
inlinevirtual

Referenced by MOArtist().

virtual Nullable<QString> MOArtist::tags ( ) const
inlinevirtual
QString MOArtist::toString ( )

Serializes the object to XML and returns the string representation of that XML.

References toXml().

QDomElement MOArtist::toXml ( QDomDocument &  doc,
QString  name = "Artist" 
)

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 "MOArtist" is used

Referenced by toString().

void MOArtist::toXml ( QDomDocument &  doc,
QDomElement &  r 
)

Serializes the object into the given element.

References mp_canuse, mp_comment, mp_description, mp_flags, mp_id, mp_name, and mp_tags.

Member Data Documentation

Nullable<bool> MOArtist::mp_canuse
protected

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

Nullable<QString> MOArtist::mp_comment
protected

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

Nullable<QString> MOArtist::mp_description
protected

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

Nullable<QString> MOArtist::mp_flags
protected

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

Nullable<qint64> MOArtist::mp_id
protected

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

Nullable<QString> MOArtist::mp_name
protected

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

Nullable<QString> MOArtist::mp_tags
protected

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


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