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
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
See also setDefinitions().
QMap<int, QContactManager::Error> QContactDetailDefinitionSaveRequest::errorMap () const
Returns the map of input definition list indices to errors which occurred
void QContactDetailDefinitionSaveRequest::setContactType ( const QString & contactType )
Sets the type of contact for which detail definitions should be saved to contactType
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);
void QContactDetailDefinitionSaveRequest::setDefinitions ( const QList<QContactDetailDefinition> & definitions )
Sets the definitions to save to be definitions
See also definitions().