diff -r d189ee25cf9d -r 3533d4323edc ipsservices/ipssosaoplugin/inc/IpsSosAOPopAgent.h --- a/ipsservices/ipssosaoplugin/inc/IpsSosAOPopAgent.h Tue Aug 31 15:04:17 2010 +0300 +++ b/ipsservices/ipssosaoplugin/inc/IpsSosAOPopAgent.h Wed Sep 01 12:28:57 2010 +0100 @@ -17,8 +17,8 @@ */ -#ifndef IPSSOSAOPOPAGENT_H -#define IPSSOSAOPOPAGENT_H +#ifndef IPSSOSAOPOPAGENT_H_ +#define IPSSOSAOPOPAGENT_H_ #include #include @@ -35,9 +35,7 @@ * implementations of base class pure virtual functions. * */ -// -NONSHARABLE_CLASS (CIpsSosAOPopAgent) : public CIpsSosAOBaseAgent -// +class CIpsSosAOPopAgent : public CIpsSosAOBaseAgent { public: @@ -56,77 +54,35 @@ 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: /** @@ -141,32 +97,17 @@ * 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: @@ -176,19 +117,17 @@ TBool iSyncStartedSignaled; TAgentState iState; TBool iDoNotDisconnect; - // - CImPop3Settings* iPopSettings;//owned - CMsvOperation* iOngoingOp;//owned + CImPop3Settings* iPopSettings; + CMsvOperation* iOngoingOp; TPckgBuf iProgressBuf; - CMsvEntrySelection* iSelection;//owned + CMsvEntrySelection* iSelection; TInt iError; - CPop3ClientMtm* iPopClientMtm;//owned - CClientMtmRegistry* iMtmReg;//owned - // + CPop3ClientMtm* iPopClientMtm; + CClientMtmRegistry* iMtmReg; TInt iPopulateLimit; }; -#endif /*IPSSOSAOPOPAGENT_H*/ +#endif /*IPSSOSAOPOPAGENT_H_*/