MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QOrganizerItemDetailDefinition Class Reference

The QOrganizerItemDetailDefinition class provides the specification for fields in a detail. More...

 #include <QOrganizerItemDetailDefinition>

This class was introduced in Qt Mobility 1.1.

Public Functions

QOrganizerItemDetailDefinition ()
QOrganizerItemDetailDefinition ( const QOrganizerItemDetailDefinition & other )
~QOrganizerItemDetailDefinition ()
QMap<QString, QOrganizerItemDetailFieldDefinition> fields () const
void insertField ( const QString & key, const QOrganizerItemDetailFieldDefinition & field )
bool isEmpty () const
bool isUnique () const
QString name () const
void removeField ( const QString & key )
void setFields ( const QMap<QString, QOrganizerItemDetailFieldDefinition> & fields )
void setName ( const QString & definitionName )
void setUnique ( bool unique )
bool operator!= ( const QOrganizerItemDetailDefinition & other ) const
QOrganizerItemDetailDefinition & operator= ( const QOrganizerItemDetailDefinition & other )
bool operator== ( const QOrganizerItemDetailDefinition & other ) const

Detailed Description

The QOrganizerItemDetailDefinition class provides the specification for fields in a detail.

The QOrganizerItemDetailDefinition class provides the specification for a detail that can be included in any particular QOrganizerItem. The definition does not include any data, but defines the semantics of the representation and use of data details that are stored in a QOrganizerItem.

Member Function Documentation

QOrganizerItemDetailDefinition::QOrganizerItemDetailDefinition ()

Construct a new, invalid QOrganizerItemDetailDefinition

QOrganizerItemDetailDefinition::QOrganizerItemDetailDefinition ( const QOrganizerItemDetailDefinition & other )

Constructs a new QOrganizerItemDetailDefinition from other

This function was introduced in Qt Mobility 1.1.

QOrganizerItemDetailDefinition::~QOrganizerItemDetailDefinition ()

Frees the memory used by this QOrganizerItemDetailDefinition

QMap<QString, QOrganizerItemDetailFieldDefinition> QOrganizerItemDetailDefinition::fields () const

Returns the map of keys to fields which are present in details of this definition

This function was introduced in Qt Mobility 1.1.

See also setFields().

void QOrganizerItemDetailDefinition::insertField ( const QString & key, const QOrganizerItemDetailFieldDefinition & field )

Inserts the field field into the map of fields which constitute the data of details of this definition for the given field key key. If another field for that key already exists in the definition, it will be overwritten.

This function was introduced in Qt Mobility 1.1.

bool QOrganizerItemDetailDefinition::isEmpty () const

Returns true if the id and fields of this definition are empty

This function was introduced in Qt Mobility 1.1.

bool QOrganizerItemDetailDefinition::isUnique () const

Returns the per-organizer item uniqueness of this definition

This function was introduced in Qt Mobility 1.1.

QString QOrganizerItemDetailDefinition::name () const

Returns the identifier of this detail definition

This function was introduced in Qt Mobility 1.1.

See also setName().

void QOrganizerItemDetailDefinition::removeField ( const QString & key )

Removes the field associated with the given field key key from the map of fields which constitute the data of details of this definition.

This function was introduced in Qt Mobility 1.1.

void QOrganizerItemDetailDefinition::setFields ( const QMap<QString, QOrganizerItemDetailFieldDefinition> & fields )

Sets the fields which constitute the data of details of this this definition to fields

This function was introduced in Qt Mobility 1.1.

See also fields().

void QOrganizerItemDetailDefinition::setName ( const QString & definitionName )

Sets the unique identifier of this detail type to definitionName.

This function was introduced in Qt Mobility 1.1.

See also name().

void QOrganizerItemDetailDefinition::setUnique ( bool unique )

Sets whether an organizer item can have more than one detail of this type. If unique is true, only one detail of this type can be added. Otherwise, any number can be added.

This function was introduced in Qt Mobility 1.1.

See also isUnique().

bool QOrganizerItemDetailDefinition::operator!= ( const QOrganizerItemDetailDefinition & other ) const

Returns true if this detail definition has different allowable field types or uniqueness to the other definition

This function was introduced in Qt Mobility 1.1.

QOrganizerItemDetailDefinition & QOrganizerItemDetailDefinition::operator= ( const QOrganizerItemDetailDefinition & other )

Assigns this QOrganizerItemDetailDefinition to other

This function was introduced in Qt Mobility 1.1.

bool QOrganizerItemDetailDefinition::operator== ( const QOrganizerItemDetailDefinition & other ) const

Returns true if the definition has the same type, uniqueness and allowable value datatypes as other

This function was introduced in Qt Mobility 1.1.