examples/ForumNokia/InternetEmail/inc/InternetEmailAppUi.h

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 #ifndef INTERNETEMAILAPPUI_H
00006 #define INTERNETEMAILAPPUI_H
00007 
00008 // INCLUDES
00009 #include <eikapp.h>
00010 #include <eikdoc.h>
00011 #include <e32std.h>
00012 #include <coeccntx.h>
00013 #include <aknappui.h>
00014 
00015 #include <aknnotewrappers.h> // for notes
00016 #include <aknwaitdialog.h>  //for progress dialog
00017 #include "internetemailengine.h"
00018 
00019 // FORWARD DECLARATIONS
00020 class CInternetEmailContainer;
00021 class CInternetEmailDocument;
00022 class CInternetEmailEngine;
00023 
00024 
00025 // CONSTANTS
00026 //const ?type ?constant_var = ?constant;
00027 
00028 
00029 // CLASS DECLARATION
00030 
00037 class CInternetEmailAppUi : public CAknAppUi, public MInternetEmailEngineObserver, public MProgressDialogCallback
00038     {
00039     public: // // Constructors and destructor
00040 
00044         void ConstructL();
00045 
00049         ~CInternetEmailAppUi();
00050         
00051     public: // New functions
00052         CInternetEmailEngine* Model();
00053 
00054     public: // Functions from base classes
00055 
00056         // From MInternetEmailEngineObserver
00057         void HandleEngineChangedEventL(TInternetEmailEngineEvent aEvent);
00058 
00059         // From MProgressDialogCallback
00060         void DialogDismissedL(TInt aButtonId);
00061 
00062     private:
00063         // From MEikMenuObserver
00064         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
00065         CInternetEmailDocument* Document();
00066         void ShowNoteL( const TInt &aResId ) const;
00067 
00068     private:
00073         void HandleCommandL(TInt aCommand);
00074 
00081         virtual TKeyResponse HandleKeyEventL(
00082             const TKeyEvent& aKeyEvent,TEventCode aType);
00083 
00084     private: //Data
00085         CInternetEmailContainer* iAppContainer; //to handle our main listbox based view
00086         CInternetEmailEngine* iModel; //to call main engine and initiate action
00087         CAknWaitDialog *iWaitDialog;  //for better user experience
00088     };
00089 
00090 #endif
00091 
00092 // End of File

Generated by  doxygen 1.6.2