qtmobility/src/contacts/requests/qcontactrelationshipremoverequest.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    62 QContactRelationshipRemoveRequest::QContactRelationshipRemoveRequest()
    62 QContactRelationshipRemoveRequest::QContactRelationshipRemoveRequest()
    63     : QContactAbstractRequest(new QContactRelationshipRemoveRequestPrivate)
    63     : QContactAbstractRequest(new QContactRelationshipRemoveRequestPrivate)
    64 {
    64 {
    65 }
    65 }
    66 
    66 
    67 /*! Cleans up the memory in use by this relationship remove request */
       
    68 QContactRelationshipRemoveRequest::~QContactRelationshipRemoveRequest()
       
    69 {
       
    70 }
       
    71 
       
    72 /*!
       
    73   \internal
       
    74    Sets the first contact criterion of the remove request to \a firstId.
       
    75    If \a firstId is the default-constructed id, or the first contact is not set,
       
    76    the request will remove relationships involving any first contact.
       
    77 
       
    78    This function is obsolete; set the list of relationships to remove by calling setRelationships() instead.
       
    79  */
       
    80 void QContactRelationshipRemoveRequest::setFirst(const QContactId& firstId)
       
    81 {
       
    82     Q_D(QContactRelationshipRemoveRequest);
       
    83     d->m_first = firstId;
       
    84 }
       
    85 
       
    86 /*!
       
    87   \internal
       
    88   Returns the first contact criterion of the remove request.
       
    89   This function is obsolete; retrieve the lists of relationships that will be removed by calling relationships() instead.
       
    90  */
       
    91 QContactId QContactRelationshipRemoveRequest::first() const
       
    92 {
       
    93     Q_D(const QContactRelationshipRemoveRequest);
       
    94     return d->m_first;
       
    95 }
       
    96 
       
    97 /*!
       
    98   \internal
       
    99    Sets the relationship type criterion of the remove request to \a relationshipType.
       
   100    If \a relationshipType is empty, or the relationship type is not set,
       
   101    the request will remove relationships of any type.
       
   102 
       
   103    This function is obsolete; set the list of relationships to remove by calling setRelationships() instead.
       
   104  */
       
   105 void QContactRelationshipRemoveRequest::setRelationshipType(const QString& relationshipType)
       
   106 {
       
   107     Q_D(QContactRelationshipRemoveRequest);
       
   108     d->m_relationshipType = relationshipType;
       
   109 }
       
   110 
       
   111 /*!
       
   112   \internal
       
   113   Returns the relationship type criterion of the fetch request.
       
   114   This function is obsolete; retrieve the lists of relationships that will be removed by calling relationships() instead.
       
   115  */
       
   116 QString QContactRelationshipRemoveRequest::relationshipType() const
       
   117 {
       
   118     Q_D(const QContactRelationshipRemoveRequest);
       
   119     return d->m_relationshipType;
       
   120 }
       
   121 
       
   122 /*!
       
   123   \internal
       
   124   Sets the second contact criterion of the remove request to \a secondId.
       
   125   If \a secondId is the default-constructed id, or the second contact is not set,
       
   126   the request will remove relationships involving any second contact.
       
   127 
       
   128    This function is obsolete; set the list of relationships to remove by calling setRelationships() instead.
       
   129  */
       
   130 void QContactRelationshipRemoveRequest::setSecond(const QContactId& secondId)
       
   131 {
       
   132     Q_D(QContactRelationshipRemoveRequest);
       
   133     d->m_second = secondId;
       
   134 }
       
   135 
       
   136 /*!
       
   137   \internal
       
   138   Returns the second contact criterion of the remove request.
       
   139   This function is obsolete; retrieve the lists of relationships that will be removed by calling relationships() instead.
       
   140  */
       
   141 QContactId QContactRelationshipRemoveRequest::second() const
       
   142 {
       
   143     Q_D(const QContactRelationshipRemoveRequest);
       
   144     return d->m_second;
       
   145 }
       
   146 
       
   147 /*! Sets the list of relationships which will be removed to \a relationships */
    67 /*! Sets the list of relationships which will be removed to \a relationships */
   148 void QContactRelationshipRemoveRequest::setRelationships(const QList<QContactRelationship>& relationships)
    68 void QContactRelationshipRemoveRequest::setRelationships(const QList<QContactRelationship>& relationships)
   149 {
    69 {
   150     Q_D(QContactRelationshipRemoveRequest);
    70     Q_D(QContactRelationshipRemoveRequest);
   151     d->m_relationships = relationships;
    71     d->m_relationships = relationships;