![]() |
Home · All Classes · All Functions · | ![]() |
#include <QContactDetailDefinition>
QContactDetailDefinition () | |
QContactDetailDefinition ( const QContactDetailDefinition & other ) | |
~QContactDetailDefinition () | |
QMap<QString, QContactDetailFieldDefinition> | fields () const |
void | insertField ( const QString & key, const QContactDetailFieldDefinition & field ) |
bool | isEmpty () const |
bool | isUnique () const |
QString | name () const |
void | removeField ( const QString & key ) |
void | setFields ( const QMap<QString, QContactDetailFieldDefinition> & fields ) |
void | setName ( const QString & definitionName ) |
void | setUnique ( bool unique ) |
bool | operator!= ( const QContactDetailDefinition & other ) const |
QContactDetailDefinition & | operator= ( const QContactDetailDefinition & other ) |
bool | operator== ( const QContactDetailDefinition & other ) const |
The QContactDetailDefinition class provides the specification for a detail that can be included in any particular QContact. The definition does not include any data, but defines the semantics of the representation and use of data details that are stored in a QContact.
Construct a new, invalid QContactDetailDefinition
Constructs a new QContactDetailDefinition from other
Frees the memory used by this QContactDetailDefinition
Returns the map of keys to fields which are present in details of this definition
See also setFields().
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.
Returns true if the id and fields of this definition are empty
Returns the per-contact uniqueness of this definition
Returns the identifier of this detail definition
See also setName().
Removes the field associated with the given field key key from the map of fields which constitute the data of details of this definition.
Sets the fields which constitute the data of details of this this definition to fields
See also fields().
Sets the unique identifier of this detail type to definitionName.
See also name().
Sets whether a contact 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.
See also isUnique().
Returns true if this detail definition has different allowable field types or uniqueness to the other definition
Assigns this QContactDetailDefinition to other
Returns true if the definition has the same type, uniqueness and allowable value datatypes as other
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 |