EmailExampleWin.h
上传用户:sempras
上传日期:2007-03-04
资源大小:821k
文件大小:2k
- #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__