diff -r 6fbed849b4f4 -r 1f895d8a5b2b qtmobility/src/contacts/qcontactabstractrequest_p.h --- a/qtmobility/src/contacts/qcontactabstractrequest_p.h Wed Jun 23 19:08:38 2010 +0300 +++ b/qtmobility/src/contacts/qcontactabstractrequest_p.h Tue Jul 06 15:12:50 2010 +0300 @@ -54,6 +54,7 @@ // #include "qcontactmanager.h" +#include "qcontactmanager_p.h" #include "qcontactabstractrequest.h" #include @@ -81,6 +82,20 @@ return QContactAbstractRequest::InvalidRequest; } + static void notifyEngine(QContactAbstractRequest* request) + { + Q_ASSERT(request); + QContactAbstractRequestPrivate* d = request->d_ptr; + if (d) { + QMutexLocker ml(&d->m_mutex); + QContactManagerEngine *engine = QContactManagerData::engine(d->m_manager); + ml.unlock(); + if (engine) { + engine->requestDestroyed(request); + } + } + } + QContactManager::Error m_error; QContactAbstractRequest::State m_state; QPointer m_manager;