S60 5th Edition SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : csasyncappui.h 00004 * Part of : CSAsync 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004-2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 00017 #ifndef __CSASYNCAPPUI_H__ 00018 #define __CSASYNCAPPUI_H__ 00019 00020 // INCLUDE FILES 00021 #include <aknappui.h> 00022 #include "AsyncTimeObserver.h" 00023 00024 // FORWARD DECLARATIONS 00025 class CCSAsyncAppView; 00026 class CCSAsyncDocument; 00027 00028 // CLASS DECLARATION 00029 /** 00030 * CCSAsyncAppUi 00031 * An instance of class CCSAsyncAppUi is the UserInterface part of the AVKON 00032 * application framework for the CSAsync example application 00033 */ 00034 class CCSAsyncAppUi : public CAknAppUi, public MAsyncTimeObserver 00035 { 00036 public: // Constructors and destructors 00037 00038 /** 00039 * CCSAsyncAppUi. 00040 * C++ default constructor. This needs to be public due to 00041 * the way the framework constructs the AppUi. 00042 */ 00043 CCSAsyncAppUi(); 00044 00045 /** 00046 * ~CCSAsyncAppUi. 00047 * Destructor. 00048 * Destroys the object and release all memory objects. 00049 */ 00050 virtual ~CCSAsyncAppUi(); 00051 00052 public: // Functions from base classes 00053 00054 /** 00055 * From CAknAppUi, HandleCommandL. 00056 * Handles user menu selections. 00057 * @param aCommand The enumerated code for the option selected. 00058 */ 00059 void HandleCommandL( TInt aCommand ); 00060 00061 /** 00062 * From CAknAppUi, DynInitMenuPaneL. 00063 * Prepares the menu prior to display. 00064 * @param aResourceId The resource for the menu to be displayed. 00065 * @param aMenuPane The handle to the menu. 00066 */ 00067 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); 00068 00069 /** 00070 * From MAsyncTimeObserver, HandleTimeUpdate. 00071 * Handles updates to the time. 00072 */ 00073 void HandleTimeUpdate(); 00074 00075 /** 00076 * HandleResourceChangeL() 00077 * Called by framework when layout is changed. 00078 * @param aType The type of resources that have changed. 00079 */ 00080 virtual void HandleResourceChangeL( TInt aType ); 00081 00082 private: // Constructors and destructors 00083 00084 /** 00085 * ConstructL. 00086 * 2nd phase constructor. 00087 */ 00088 void ConstructL(); 00089 00090 private: // New functions 00091 /** 00092 * AsyncDocument. 00093 * Casts iDocument member from CAknAppUi to CCSAsyncDocument. 00094 */ 00095 CCSAsyncDocument* AsyncDocument() const; 00096 00097 private: // Data 00098 00099 /** 00100 * iAppView, the application view. 00101 * Owned by CCSAsyncAppUi object. 00102 */ 00103 CCSAsyncAppView* iAppView; 00104 }; 00105 00106 #endif // __CSASYNCAPPUI_H__ 00107 00108 // End of File
© Nokia 2009 |