--- a/qtmobility/src/contacts/requests/qcontactlocalidfetchrequest.cpp Fri Jun 11 14:26:25 2010 +0300
+++ b/qtmobility/src/contacts/requests/qcontactlocalidfetchrequest.cpp Wed Jun 23 19:08:38 2010 +0300
@@ -54,6 +54,9 @@
manager-local contact ids (which may be retrieved by calling ids()), 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 QContactLocalIdFetchRequest::setFilter(const QContactFilter& filter)
{
Q_D(QContactLocalIdFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
d->m_filter = filter;
}
@@ -75,6 +79,7 @@
void QContactLocalIdFetchRequest::setSorting(const QList<QContactSortOrder>& sorting)
{
Q_D(QContactLocalIdFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
d->m_sorting = sorting;
}
@@ -82,6 +87,7 @@
QContactFilter QContactLocalIdFetchRequest::filter() const
{
Q_D(const QContactLocalIdFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
return d->m_filter;
}
@@ -89,6 +95,7 @@
QList<QContactSortOrder> QContactLocalIdFetchRequest::sorting() const
{
Q_D(const QContactLocalIdFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
return d->m_sorting;
}
@@ -96,6 +103,7 @@
QList<QContactLocalId> QContactLocalIdFetchRequest::ids() const
{
Q_D(const QContactLocalIdFetchRequest);
+ QMutexLocker ml(&d->m_mutex);
return d->m_ids;
}