diff -r ecc8def7944a -r 2dc6caa42ec3 ipsservices/ipssosaoplugin/src/IpsSosAOImapAgent.cpp --- a/ipsservices/ipssosaoplugin/src/IpsSosAOImapAgent.cpp Mon May 03 12:23:15 2010 +0300 +++ b/ipsservices/ipssosaoplugin/src/IpsSosAOImapAgent.cpp Fri May 14 15:41:10 2010 +0300 @@ -24,18 +24,16 @@ #include #include #include -// #include "CFSMailCommon.h" -// - #include "IpsSosAOImapAgent.h" #include "IpsSosAOImapPopLogic.h" -// from settings // +#include "IpsSosAOSettingsHandler.h" +const TInt KIpsSetDataHeadersOnly = -2; // // from ipsplugin @@ -187,7 +185,13 @@ break; case EStateRefreshFolderArray: // - //iDataApi->GetSubscribedImapFoldersL( iServiceId , iFoldersArray ); + { + CIpsSosAOSettingsHandler* settings = + CIpsSosAOSettingsHandler::NewL(iSession, iServiceId); + CleanupStack::PushL(settings); + settings->GetSubscribedImapFoldersL( iServiceId , iFoldersArray ); + CleanupStack::PopAndDestroy(settings); + } // iState = EStatePopulateAll; SetActiveAndCompleteThis(); @@ -475,8 +479,12 @@ { FUNC_LOG; TImImap4GetPartialMailInfo info; - // - //CIpsSetDataApi::ConstructImapPartialFetchInfo( info, *iImapSettings ); + // + CIpsSosAOSettingsHandler* settings = + CIpsSosAOSettingsHandler::NewL(iSession, iServiceId); + CleanupStack::PushL(settings); + settings->ConstructImapPartialFetchInfo( info, *iImapSettings ); + CleanupStack::PopAndDestroy(settings); // if ( !IsConnected() ) @@ -485,8 +493,8 @@ CancelAllAndDisconnectL(); } // - else if ( iFoldersArray.Count())// > 0 && info.iTotalSizeLimit - //!= KIpsSetDataHeadersOnly ) + else if ( iFoldersArray.Count() > 0 && info.iTotalSizeLimit + != KIpsSetDataHeadersOnly ) // { @@ -504,18 +512,19 @@ iImapClientMtm->SwitchCurrentEntryL( iServiceId ); TFSMailMsgId mbox( KIpsPlgImap4PluginUidValue, iServiceId ); iStatus = KRequestPending; + // iOngoingOp = CIpsPlgImap4PopulateOp::NewL( - iSession, - this->iStatus, - iServiceId, - *dummy, - info, - *sel, - mbox, - this, - 0, - NULL ); - + iSession, + this->iStatus, + iServiceId, + *dummy, + info, + *sel, + mbox, + this, + 0, + NULL ); + // iFoldersArray.Remove( 0 ); SetActive(); iState = EStatePopulateAll;