diff -r 139d4b7b2938 -r 99bcbff212ad emailservices/nmclientapi/src/nmapieventnotifier_p.cpp --- a/emailservices/nmclientapi/src/nmapieventnotifier_p.cpp Mon May 24 21:02:02 2010 +0300 +++ b/emailservices/nmclientapi/src/nmapieventnotifier_p.cpp Fri May 28 13:56:43 2010 +0300 @@ -15,6 +15,8 @@ * */ +#include "emailtrace.h" + #include "nmapiengine.h" #include "nmapieventnotifier_p.h" @@ -28,7 +30,7 @@ NmApiEventNotifierPrivate::NmApiEventNotifierPrivate(QObject *parent) : QObject(parent), mEmitSignals(NULL), mEngine(NULL), mIsRunning(false) { - + NM_FUNCTION; } /*! @@ -36,7 +38,7 @@ */ NmApiEventNotifierPrivate::~NmApiEventNotifierPrivate() { - + NM_FUNCTION; } /*! @@ -49,6 +51,8 @@ */ bool NmApiEventNotifierPrivate::initializeEngine() { + NM_FUNCTION; + if (!mEngine) { mEngine = NmApiEngine::instance(); } @@ -63,6 +67,8 @@ */ void NmApiEventNotifierPrivate::releaseEngine() { + NM_FUNCTION; + if (mIsRunning) { cancel(); } @@ -80,11 +86,15 @@ */ void NmApiEventNotifierPrivate::emailStoreEvent(const NmApiMessage &events) { + NM_FUNCTION; + mBufferOfEvents << events; } void NmApiEventNotifierPrivate::cancel() { + NM_FUNCTION; + if (!mIsRunning) { return; }