diff -r ecc8def7944a -r 2dc6caa42ec3 ipsservices/ipssosaoplugin/inc/IpsSosAOPopAgent.h --- a/ipsservices/ipssosaoplugin/inc/IpsSosAOPopAgent.h Mon May 03 12:23:15 2010 +0300 +++ b/ipsservices/ipssosaoplugin/inc/IpsSosAOPopAgent.h Fri May 14 15:41:10 2010 +0300 @@ -17,8 +17,8 @@ */ -#ifndef IPSSOSAOPOPAGENT_H_ -#define IPSSOSAOPOPAGENT_H_ +#ifndef IPSSOSAOPOPAGENT_H +#define IPSSOSAOPOPAGENT_H #include #include @@ -35,7 +35,9 @@ * implementations of base class pure virtual functions. * */ +// NONSHARABLE_CLASS (CIpsSosAOPopAgent) : public CIpsSosAOBaseAgent +// { public: @@ -54,35 +56,77 @@ virtual ~CIpsSosAOPopAgent(); public: // from CIpsSosAOBaseAgent - + // + /** + * GetServerAddress + * @param a return parameter + */ virtual void GetServerAddress( TBuf& aIncomingServer ) const; + /** + * GetUsername + * @param a return parameter + */ virtual void GetUsername( TBuf8& aUsername ) const; + /** + * checks is does mailbox have connection open + * @return is connected or not + */ virtual TBool IsConnected() const; + /** + * Starts email sync + */ virtual void StartSyncL(); + /** + * starts fetching messages + */ virtual void StartFetchMessagesL( const RArray& aFetchMsgArray ); + /** + * cancels all ongoing suboperations and disconnects + */ virtual void CancelAllAndDisconnectL(); + /** + * cancels all suboperations + */ virtual void CancelAllAndDoNotDisconnect(); + /** + * sets iDoNotDisconnect as ETrue + */ virtual void DoNotDisconnect(); + /** + * sets iDoNotDisconnect as EFalse + */ virtual void ClearDoNotDisconnect(); + /** + * pauses ongoing operations + */ virtual void HoldOperations(); + /** + * resumes paused operations + */ virtual void ContinueHoldOperations(); + /** + * @return current iState + */ virtual CIpsSosAOBaseAgent::TAgentState GetState() const; + /** + * Loads CImPop3Settings object + */ virtual void LoadSettingsL(); - + // private: /** @@ -97,17 +141,32 @@ * Second phase constructor */ void ConstructL(); - + // + /** + * called when cancelled + */ virtual void DoCancel(); + /** + * from CActive + */ virtual void RunL(); + /** + * from CActive + */ virtual TInt RunError( TInt aError ); + /** + * fetches the content of all synced messages + */ void PopulateAllL(); + /** + * triggers async statemachine + */ inline void SetActiveAndCompleteThis(); - + // private: @@ -117,17 +176,19 @@ TBool iSyncStartedSignaled; TAgentState iState; TBool iDoNotDisconnect; - CImPop3Settings* iPopSettings; - CMsvOperation* iOngoingOp; + // + CImPop3Settings* iPopSettings;//owned + CMsvOperation* iOngoingOp;//owned TPckgBuf iProgressBuf; - CMsvEntrySelection* iSelection; + CMsvEntrySelection* iSelection;//owned TInt iError; - CPop3ClientMtm* iPopClientMtm; - CClientMtmRegistry* iMtmReg; + CPop3ClientMtm* iPopClientMtm;//owned + CClientMtmRegistry* iMtmReg;//owned + // TInt iPopulateLimit; }; -#endif /*IPSSOSAOPOPAGENT_H_*/ +#endif /*IPSSOSAOPOPAGENT_H*/