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

📄 emailexamplewin.h

📁 基于symbian的收发SMS、MMS消息
💻 H
字号:
#ifndef __EMAILEXAMPLEWIN_H__
#define __EMAILEXAMPLEWIN_H__

#include <emailexampleengine.h>

#include <eikbctrl.h>

class CEikTextListBox;
class CEmailExampleAppUi;
class CEmailExampleEngine;

/*
* ============================================================================
*  Name     : CEmailMainWindow from EmailExampleWin.h
*  Part of  : EmailExample
*  Created  : 09/11/2003 by Forum Nokia
*  Implementation notes:
*		Application main window. doesn't display anything itself,
*		but holds a sub-control which displays remote emails.
*
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

class CEmailMainWindow : public CCoeControl, public MEmailExampleEngineObserver
	{
public:
// creational interface
	CEmailMainWindow(CEmailExampleAppUi& aOwner);
	~CEmailMainWindow();
	void ConstructL();
// interface
	void HandleCommandL(TInt aCommand);
	CEmailExampleEngine* Engine(){return iEngine;}
	void Reset();
	void SaveFileL(CStreamStore& aStore,CStreamDictionary& aStreamDic,CSecurityBase& aSecurity) const;
	void LoadFileL(const CStreamStore& aStore,const CStreamDictionary& aStreamDic,CSecurityBase& aSecurity,TInt aFileVersion);

// from CCoeControl
	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
	CCoeControl* ComponentControl(TInt aIndex) const;
	void SizeChanged();
	void Draw(const TRect& aRect) const;
	TInt CountComponentControls() const;
protected:
	CCoeControl* FocusedView() const;
// from MEmailExampleEngineObserver
	void HandleEngineChangedEventL(TEmailExampleEngineEvent aEvent);
// private data
private:
	CEmailExampleAppUi& iOwner;
	mutable RPointerArray<CCoeControl> iViews;
	TInt iCurrentView;
	CEmailExampleEngine* iEngine;
	};

#endif //__EMAILEXAMPLEWIN_H__

⌨️ 快捷键说明

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