qtmobility/src/contacts/requests/qcontactrelationshipfetchrequest.cpp
changeset 14 6fbed849b4f4
parent 11 06b8e2af4411
child 15 1f895d8a5b2b
--- a/qtmobility/src/contacts/requests/qcontactrelationshipfetchrequest.cpp	Fri Jun 11 14:26:25 2010 +0300
+++ b/qtmobility/src/contacts/requests/qcontactrelationshipfetchrequest.cpp	Wed Jun 23 19:08:38 2010 +0300
@@ -56,6 +56,9 @@
   relationships (which may be retrieved by calling relationships()), 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.
+
   \ingroup contacts-requests
  */
 
@@ -73,6 +76,7 @@
 void QContactRelationshipFetchRequest::setFirst(const QContactId& firstId)
 {
     Q_D(QContactRelationshipFetchRequest);
+    QMutexLocker ml(&d->m_mutex);
     d->m_first = firstId;
 }
 
@@ -81,6 +85,7 @@
 QContactId QContactRelationshipFetchRequest::first() const
 {
     Q_D(const QContactRelationshipFetchRequest);
+    QMutexLocker ml(&d->m_mutex);
     return d->m_first;
 }
 
@@ -91,6 +96,7 @@
 void QContactRelationshipFetchRequest::setRelationshipType(const QString& relationshipType)
 {
     Q_D(QContactRelationshipFetchRequest);
+    QMutexLocker ml(&d->m_mutex);
     d->m_relationshipType = relationshipType;
 }
 
@@ -99,6 +105,7 @@
 QString QContactRelationshipFetchRequest::relationshipType() const
 {
     Q_D(const QContactRelationshipFetchRequest);
+    QMutexLocker ml(&d->m_mutex);
     return d->m_relationshipType;
 }
 
@@ -109,6 +116,7 @@
 void QContactRelationshipFetchRequest::setSecond(const QContactId& secondId)
 {
     Q_D(QContactRelationshipFetchRequest);
+    QMutexLocker ml(&d->m_mutex);
     d->m_second = secondId;
 }
 
@@ -117,6 +125,7 @@
 QContactId QContactRelationshipFetchRequest::second() const
 {
     Q_D(const QContactRelationshipFetchRequest);
+    QMutexLocker ml(&d->m_mutex);
     return d->m_second;
 }
 
@@ -125,6 +134,7 @@
 QList<QContactRelationship> QContactRelationshipFetchRequest::relationships() const
 {
     Q_D(const QContactRelationshipFetchRequest);
+    QMutexLocker ml(&d->m_mutex);
     return d->m_relationships;
 }