testmtmsappview.h

来自「本例是SYMBIAN C++一个创建短信的例子」· C头文件 代码 · 共 67 行

H
67
字号
/*
 ============================================================================
 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 + =
减小字号Ctrl + -
显示快捷键?