msvhandler.h

来自「Symbian c++ 的彩信发送接收实例」· C头文件 代码 · 共 51 行

H
51
字号

#ifndef __MSV_HANDLER_H__
#define __MSV_HANDLER_H__

#include <e32base.h>

class CClientMtmRegistry;
class MMsvObserver;

const TInt KNcnMaxTries = 20;
const TInt KNcnTryInterval = 500000;

#define KMsvMyFolderIndexEntryId 0x1008

class CMsvHandler : public CActive, public MMsvSessionObserver
    {
	public:
		void SetEntriesAttributesL(const CMsvEntrySelection& aSelection, 
			TUint aSetAttributes, TUint aClearAttributes );
		void CreateRightMtmL( TUid aMtm );

		inline TBool IsSesssionReady() { return iIsSessionReady; }

		// void DeleteEntryL( TMsvId aMsvId );

		virtual ~CMsvHandler();
		virtual TBool IsIdle();

	protected: // from CActive
		void DoCancel();
		protected:
		void ConstructL();
		CMsvHandler( MMsvObserver& aObserver );
		virtual void CompleteConstructL();
		virtual void SetMtmEntryL(TMsvId aEntryId);
		virtual void DeleteEntryL(TMsvEntry& aMsvEntry);

	protected:
		CMsvOperation*  iOperation;
		CMsvSession*    iSession;
		CBaseMtm*       iMtm;

		CClientMtmRegistry* iMtmRegistry;

		MMsvObserver&   iObserver;
		TBool			iIsSessionReady;
		};

#endif // __MSV_HANDLER_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?