--- a/qtmobility/src/contacts/requests/qcontactremoverequest.cpp Mon May 03 13:18:40 2010 +0300
+++ b/qtmobility/src/contacts/requests/qcontactremoverequest.cpp Fri May 14 16:41:33 2010 +0300
@@ -56,12 +56,26 @@
\ingroup contacts-requests
*/
-/*! Constructs a new contact remove request */
-QContactRemoveRequest::QContactRemoveRequest()
- : QContactAbstractRequest(new QContactRemoveRequestPrivate)
+/*! Constructs a new contact remove request whose parent is the specified \a parent */
+QContactRemoveRequest::QContactRemoveRequest(QObject* parent)
+ : QContactAbstractRequest(new QContactRemoveRequestPrivate, parent)
{
}
+/*!
+ Sets the id of the contact which will be removed to \a contactId.
+ Equivalent to calling:
+ \code
+ setContactIds(QList<QContactLocalId>() << contactIds);
+ \endcode
+ */
+void QContactRemoveRequest::setContactId(const QContactLocalId& contactId)
+{
+ Q_D(QContactRemoveRequest);
+ d->m_contactIds.clear();
+ d->m_contactIds.append(contactId);
+}
+
/*! Sets the list of ids of contacts which will be removed to \a contactIds */
void QContactRemoveRequest::setContactIds(const QList<QContactLocalId>& contactIds)
{