--- a/qtmobility/src/contacts/requests/qcontactfetchrequest.cpp Fri Jun 11 14:26:25 2010 +0300
+++ b/qtmobility/src/contacts/requests/qcontactfetchrequest.cpp Wed Jun 23 19:08:38 2010 +0300
@@ -54,6 +54,9 @@
contacts (which may be retrieved by calling contacts()), 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
*/
@@ -67,6 +70,7 @@
void QContactFetchRequest::setFilter(const QContactFilter& filter)
{
Q_D(QContactFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
d->m_filter = filter;
}
@@ -74,6 +78,7 @@
void QContactFetchRequest::setSorting(const QList<QContactSortOrder>& sorting)
{
Q_D(QContactFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
d->m_sorting = sorting;
}
@@ -88,6 +93,7 @@
void QContactFetchRequest::setFetchHint(const QContactFetchHint &fetchHint)
{
Q_D(QContactFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
d->m_fetchHint = fetchHint;
}
@@ -95,6 +101,7 @@
QContactFilter QContactFetchRequest::filter() const
{
Q_D(const QContactFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
return d->m_filter;
}
@@ -102,6 +109,7 @@
QList<QContactSortOrder> QContactFetchRequest::sorting() const
{
Q_D(const QContactFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
return d->m_sorting;
}
@@ -116,6 +124,7 @@
QContactFetchHint QContactFetchRequest::fetchHint() const
{
Q_D(const QContactFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
return d->m_fetchHint;
}
@@ -123,6 +132,7 @@
QList<QContact> QContactFetchRequest::contacts() const
{
Q_D(const QContactFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
return d->m_contacts;
}