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

📄 testmtmsappview.h

📁 本例是SYMBIAN C++一个创建短信的例子
💻 H
字号:
/*
 ============================================================================
 Name		: TestMtmsAppView.h
 Author	  : Tomken
 Copyright   : (C) 2008-2009
 Description : Declares view class for application.
 ============================================================================
 */

#ifndef __TESTCONTACTAPPVIEW_h__
#define __TESTCONTACTAPPVIEW_h__

// INCLUDES
#include <coecntrl.h>
#include <eiklbo.h>

#include "NqMtmsEngine.h"
// CLASS DECLARATION

class CGulIcon;
class CAknDoubleStyleListBox;
class CTestMtmsAppView : public CCoeControl, public MEikListBoxObserver, public MNqMtmsEngineObserver
{
public:
	static CTestMtmsAppView* NewL(const TRect& aRect);
	static CTestMtmsAppView* NewLC(const TRect& aRect);
	virtual ~CTestMtmsAppView();
	
public:
	void HandleCommandL(TInt aCommand);

public:
	void Draw(const TRect& aRect) const;
	virtual void SizeChanged();
	TInt CountComponentControls() const;
	CCoeControl* ComponentControl(TInt aIndex) const;
	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
	
private:
	void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);
	
private:
	void HandleMtmsEngineInitialized();
	void HandleMtmsEngineSessionEventL(MMsvSessionObserver::TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3);
	void HandleMtmsEngineError(TInt aError);

private:
	void ConstructL(const TRect& aRect);
	CTestMtmsAppView();
	
	void CreateDoubleListL();
	CArrayPtr<CGulIcon>* CreateListIcons_Dm();
	void InitInboxList();
	void InitOutboxList();
	
	void TestNotepad();
	
private:
	CAknDoubleStyleListBox*    iDoubleGraphicListBox;
	CNqMtmsEngine*                    iMtmsEngine;
	CMsvEntrySelection*               iMsvArray;
	
};

#endif // __TESTCONTACTAPPVIEW_h__
// End of File

⌨️ 快捷键说明

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