QContactRemoveRequest Class
The QContactRemoveRequest class allows a client to asynchronously request that certain contacts be removed from a contacts store. More...
Header: | #include <QContactRemoveRequest> |
Inherits: | QContactAbstractRequest |
Public Functions
QContactRemoveRequest(QObject *parent = 0) | |
~QContactRemoveRequest() | |
QList<QContactId> | contactIds() const |
QMap<int, QContactManager::Error> | errorMap() const |
void | setContactId(const QContactId &contactId) |
void | setContactIds(const QList<QContactId> &contactIds) |
- 9 public functions inherited from QContactAbstractRequest
Additional Inherited Members
- 3 public slots inherited from QContactAbstractRequest
- 2 signals inherited from QContactAbstractRequest
Detailed Description
The QContactRemoveRequest class allows a client to asynchronously request that certain contacts be removed from a contacts store.
For a QContactRemoveRequest, the resultsUpdated() signal will be emitted when the individual item errors (which may be retrieved by calling errorMap()) are updated, or 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
QContactRemoveRequest::QContactRemoveRequest(QObject *parent = 0)
Constructs a new contact remove request whose parent is the specified parent
QContactRemoveRequest::~QContactRemoveRequest()
Frees any memory used by this request
QList<QContactId> QContactRemoveRequest::contactIds() const
Returns the list of ids of contacts which will be removed
See also setContactIds().
QMap<int, QContactManager::Error> QContactRemoveRequest::errorMap() const
Returns the map of input contact list indices to errors which occurred
void QContactRemoveRequest::setContactId(const QContactId &contactId)
Sets the id of the contact which will be removed to contactId. Equivalent to calling:
setContactIds(QList<QContactId>() << contactIds);
void QContactRemoveRequest::setContactIds(const QList<QContactId> &contactIds)
Sets the list of ids of contacts which will be removed to contactIds
See also contactIds().