QtMobility Reference Documentation

QContactDetailDefinitionSaveRequest Class Reference

The QContactDetailDefinitionSaveRequest class allows a client to asynchronously request that certain detail definitions be saved in a contacts store. More...

 #include <QContactDetailDefinitionSaveRequest>

Inherits: QContactAbstractRequest.

This class was introduced in Qt Mobility 1.0.

Public Functions

QContactDetailDefinitionSaveRequest ( QObject * parent = 0 )
~QContactDetailDefinitionSaveRequest ()
QString contactType () const
QList<QContactDetailDefinition> definitions () const
QMap<int, QContactManager::Error> errorMap () const
void setContactType ( const QString & contactType )
void setDefinition ( const QContactDetailDefinition & definition )
void setDefinitions ( const QList<QContactDetailDefinition> & definitions )

Additional Inherited Members

Detailed Description

The QContactDetailDefinitionSaveRequest class allows a client to asynchronously request that certain detail definitions be saved in a contacts store.

For a QContactDetailDefinitionSaveRequest, the resultsAvailable() signal will be emitted when either the individual item errors (which may be retrieved by calling errorMap()), or the resultant detail definitions (which may be retrieved by calling definitions()), are updated, as well as if the overall operation error (which may be retrieved by calling error()) is updated.

Please see the class documentation of QContactAbstractRequest for more information about the usage of request classes and ownership semantics.

Member Function Documentation

QContactDetailDefinitionSaveRequest::QContactDetailDefinitionSaveRequest ( QObject * parent = 0 )

Constructs a new detail definition save request whose parent is the specified parent

QContactDetailDefinitionSaveRequest::~QContactDetailDefinitionSaveRequest ()

Frees any memory used by this request

QString QContactDetailDefinitionSaveRequest::contactType () const

Returns the type of contact for which detail definitions will be saved

This function was introduced in Qt Mobility 1.0.

See also setContactType().

QList<QContactDetailDefinition> QContactDetailDefinitionSaveRequest::definitions () const

Returns the list of definitions that will be saved if called prior to calling start(), otherwise returns the list of detail definitions as they were saved in the contacts store

This function was introduced in Qt Mobility 1.0.

See also setDefinitions().

QMap<int, QContactManager::Error> QContactDetailDefinitionSaveRequest::errorMap () const

Returns the map of input definition list indices to errors which occurred

This function was introduced in Qt Mobility 1.0.

void QContactDetailDefinitionSaveRequest::setContactType ( const QString & contactType )

Sets the type of contact for which detail definitions should be saved to contactType

This function was introduced in Qt Mobility 1.0.

See also contactType().

void QContactDetailDefinitionSaveRequest::setDefinition ( const QContactDetailDefinition & definition )

Sets the definition to save to be the given definition. Equivalent to calling:

 setDefinitions(QList<QContactDetailDefinition>() << definition);

This function was introduced in Qt Mobility 1.0.

void QContactDetailDefinitionSaveRequest::setDefinitions ( const QList<QContactDetailDefinition> & definitions )

Sets the definitions to save to be definitions

This function was introduced in Qt Mobility 1.0.

See also definitions().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.