Home · All Classes · All Functions ·

QContactSaveRequest Class Reference

The QContactSaveRequest class allows a client to asynchronously request that certain contacts be saved to a contacts store. More...

    #include <QContactSaveRequest>

Inherits QContactAbstractRequest.


Public Functions

QContactSaveRequest ( QObject * parent = 0 )
QList<QContact> contacts () const
QMap<int, QContactManager::Error> errorMap () const
void setContact ( const QContact & contact )
void setContacts ( const QList<QContact> & contacts )

Additional Inherited Members


Detailed Description

The QContactSaveRequest class allows a client to asynchronously request that certain contacts be saved to a contacts store.

For a QContactSaveRequest, the resultsAvailable() signal will be emitted when either the individual item errors (which may be retrieved by calling errorMap()), or the resultant contacts (which may be retrieved by calling contacts()), 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

QContactSaveRequest::QContactSaveRequest ( QObject * parent = 0 )

Constructs a new contact save request whose parent is the specified parent

QList<QContact> QContactSaveRequest::contacts () const

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

See also setContacts().

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

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

void QContactSaveRequest::setContact ( const QContact & contact )

Sets the contact to be saved to contact. Equivalent to calling:

    setContacts(QList<QContact>() << contact);

void QContactSaveRequest::setContacts ( const QList<QContact> & contacts )

Sets the list of contacts to be saved to contacts

See also contacts().


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.2