⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmsengine.h

📁 Symbian c++ 的彩信发送接收实例
💻 H
字号:
 /*
============================================================================
 Name        : CMmsEngine.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : CMmsEngine declaration
============================================================================
*/

#ifndef __MMS_ENGINE_H__
#define __MMS_ENGINE_H__

#include <e32base.h>
#include <e32std.h>
#include <e32def.h>
#include <msvapi.h>

#include "MsvHandler.h"

class CMmsEngine : public CMsvHandler
	{
	public:
		void SendToL(const TDesC& aRecipient, const TDesC& aText );

	public: // from CMsvHandler
		TBool IsIdle();

	public:
		static CMmsEngine* NewL( MMsvObserver& aObserver );
		static CMmsEngine* NewLC( MMsvObserver& aObserver );
		~CMmsEngine();

	private: // From CActive
		void RunL();
	
	private:
		TBool SendMessageL();
		TBool CreateNewMessageL();

		CMmsEngine( MMsvObserver& aObserver );	
		void ConstructL();

	public: // from MMsvSessionObserver
		void HandleSessionEventL( TMsvSessionEvent aEvent, TAny* aArg1, 
			TAny* aArg2, TAny* aArg3);

	private:
		enum { EMaxTelephoneNumberLength = 30 };

		enum TPhase
			{
			EIdle
			};

		TPhase  iPhase;
		// CMsvSingleOpWatcherArray  iOperations;
		TBuf<EMaxTelephoneNumberLength> iRecipientsTelNum;
		TBuf<140>  iText;	// This is a fixed amount of message data
	};

#endif // __MMS_ENGINE_H__

⌨️ 快捷键说明

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