diff -r 06b8e2af4411 -r 6fbed849b4f4 qtmobility/src/contacts/requests/qcontactlocalidfetchrequest.cpp --- 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& 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 QContactLocalIdFetchRequest::sorting() const { Q_D(const QContactLocalIdFetchRequest); + QMutexLocker ml(&d->m_mutex); return d->m_sorting; } @@ -96,6 +103,7 @@ QList QContactLocalIdFetchRequest::ids() const { Q_D(const QContactLocalIdFetchRequest); + QMutexLocker ml(&d->m_mutex); return d->m_ids; }