diff -r 1abfa342db42 -r 367228f82b66 harvesterplugins/messaging/smsmms/src/cmessageharvester.cpp --- a/harvesterplugins/messaging/smsmms/src/cmessageharvester.cpp Tue Sep 28 11:50:55 2010 +0530 +++ b/harvesterplugins/messaging/smsmms/src/cmessageharvester.cpp Tue Oct 05 13:32:14 2010 +0530 @@ -30,6 +30,11 @@ #include #include #include "cmessageharvester.h" +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "cmessageharvesterTraces.h" +#endif + // ============================ MEMBER FUNCTIONS =============================== @@ -180,8 +185,8 @@ { if (iChildren && iChildren->Count() > 0) { - // Take first item from list of message items, and give it for indexing - iMessagePlugin.MessageItemL((*iChildren)[0], ECPixAddAction, iCurrentFolder); + // Take first item from list of message items, and give it for indexing + iMessagePlugin.MessageItemL((*iChildren)[0], ECPixAddAction, iCurrentFolder); // Delete the item from list iChildren->Delete( 0 ); @@ -276,13 +281,23 @@ // void CMessageHarvester::HandleNextRequest() { - if (!IsActive()) + OstTraceFunctionEntry0( CMESSAGEHARVESTER_HANDLENEXTREQUEST_ENTRY ); + if (!IsActive() && iMessagePlugin.GetHarvesterState()) { SetActive(); TRequestStatus* status = &iStatus; User::RequestComplete( status, KErrNone ); } + OstTraceFunctionExit0( CMESSAGEHARVESTER_HANDLENEXTREQUEST_EXIT ); } - +void CMessageHarvester::ResumeRequest() + { + OstTraceFunctionEntry0( CMESSAGEHARVESTER_RESUMEREQUEST_ENTRY ); + if(iState != EStateIdle) + { + HandleNextRequest(); + } + OstTraceFunctionExit0( CMESSAGEHARVESTER_RESUMEREQUEST_EXIT ); + } // End of File