diff -r 139d4b7b2938 -r 99bcbff212ad emailservices/nmclientapi/src/nmapienvelopelisting.cpp --- a/emailservices/nmclientapi/src/nmapienvelopelisting.cpp Mon May 24 21:02:02 2010 +0300 +++ b/emailservices/nmclientapi/src/nmapienvelopelisting.cpp Fri May 28 13:56:43 2010 +0300 @@ -15,6 +15,7 @@ * */ +#include "emailtrace.h" #include #include "nmapienvelopelisting_p.h" @@ -36,6 +37,8 @@ const quint64 mailboxId) : NmApiMessageTask(parent) { + NM_FUNCTION; + mListingPrivate = new NmApiEnvelopeListingPrivate(this); mListingPrivate->mailboxId = mailboxId; mListingPrivate->folderId = folderId; @@ -47,6 +50,8 @@ */ NmApiEnvelopeListing::~NmApiEnvelopeListing() { + NM_FUNCTION; + if (mListingPrivate->mIsRunning) { mListingPrivate->releaseEngine(); } @@ -67,6 +72,8 @@ */ bool NmApiEnvelopeListing::start() { + NM_FUNCTION; + bool result = false; if (mListingPrivate->mIsRunning) { @@ -101,6 +108,8 @@ */ void NmApiEnvelopeListing::cancel() { + NM_FUNCTION; + if (mListingPrivate->mIsRunning) { mListingPrivate->mIsRunning = false; mListingPrivate->releaseEngine(); @@ -120,6 +129,8 @@ */ bool NmApiEnvelopeListing::getEnvelopes(QList &envelopes) { + NM_FUNCTION; + envelopes.clear(); bool result = false; @@ -140,6 +151,8 @@ */ bool NmApiEnvelopeListing::isRunning() const { + NM_FUNCTION; + return mListingPrivate->mIsRunning; }