qtmobility/src/contacts/requests/qcontactremoverequest.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    60 QContactRemoveRequest::QContactRemoveRequest()
    60 QContactRemoveRequest::QContactRemoveRequest()
    61     : QContactAbstractRequest(new QContactRemoveRequestPrivate)
    61     : QContactAbstractRequest(new QContactRemoveRequestPrivate)
    62 {
    62 {
    63 }
    63 }
    64 
    64 
    65 /*! Cleans up the memory in use by the contact remove request */
       
    66 QContactRemoveRequest::~QContactRemoveRequest()
       
    67 {
       
    68 }
       
    69 
       
    70 /*!
       
    71   \internal
       
    72   Sets the filter which will be used to select the contacts to remove to \a filter.
       
    73   This function is obsolete; set the list of contacts that will be removed by calling setContactIds().
       
    74  */
       
    75 void QContactRemoveRequest::setFilter(const QContactFilter& filter)
       
    76 {
       
    77     Q_D(QContactRemoveRequest);
       
    78     d->m_filter = filter;
       
    79 }
       
    80 
       
    81 /*!
       
    82   \internal
       
    83   Returns the filter which will be used to select the contacts to remove.
       
    84   This function is obsolete; retrieve the list of contacts that will be removed by calling contactIds().
       
    85  */
       
    86 QContactFilter QContactRemoveRequest::filter() const
       
    87 {
       
    88     Q_D(const QContactRemoveRequest);
       
    89     return d->m_filter;
       
    90 }
       
    91 
       
    92 
       
    93 /*! Sets the list of ids of contacts which will be removed to \a contactIds */
    65 /*! Sets the list of ids of contacts which will be removed to \a contactIds */
    94 void QContactRemoveRequest::setContactIds(const QList<QContactLocalId>& contactIds)
    66 void QContactRemoveRequest::setContactIds(const QList<QContactLocalId>& contactIds)
    95 {
    67 {
    96     Q_D(QContactRemoveRequest);
    68     Q_D(QContactRemoveRequest);
    97     d->m_contactIds = contactIds;
    69     d->m_contactIds = contactIds;