S60 5th Edition SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : cssyncappui.h 00004 * Part of : CSSync 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 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 __CSSYNCAPPUI_H__ 00018 #define __CSSYNCAPPUI_H__ 00019 00020 // INCLUDE FILES 00021 #include <aknappui.h> 00022 00023 // FORWARD DECLARATIONS 00024 class CCSSyncAppView; 00025 class CCSSyncDocument; 00026 00027 // CLASS DECLARATION 00028 /** 00029 * CCSSyncAppUi 00030 * An instance of class CCSSyncAppUi is the UserInterface part of the AVKON 00031 * application framework for the CSSync example application 00032 */ 00033 class CCSSyncAppUi : public CAknAppUi 00034 { 00035 public: // Constructors and destructors 00036 00037 /** 00038 * CCSSyncAppUi. 00039 * C++ default constructor. This needs to be public due to 00040 * the way the framework constructs the AppUi. 00041 */ 00042 CCSSyncAppUi(); 00043 00044 /** 00045 * ~CCSSyncAppUi. 00046 * Destructor. 00047 */ 00048 virtual ~CCSSyncAppUi(); 00049 00050 public: // Functions from base classes 00051 00052 /** 00053 * From CAknAppUi, HandleCommandL. 00054 * Handles user menu selections. 00055 * @param aCommand The enumerated code for the option selected. 00056 */ 00057 void HandleCommandL( TInt aCommand ); 00058 00059 /** 00060 * HandleResourceChangeL() 00061 * Called by framework when layout is changed. 00062 * @param aType The type of resources that have changed. 00063 */ 00064 virtual void HandleResourceChangeL( TInt aType ); 00065 00066 private: // Constructors and destructors 00067 00068 /** 00069 * ConstructL. 00070 * 2nd phase constructor. 00071 */ 00072 void ConstructL(); 00073 00074 private: // New functions 00075 00076 /** 00077 * SyncDocument. 00078 * Casts iDocument member from CAknAppUi to CCSSyncDocument. 00079 */ 00080 CCSSyncDocument* SyncDocument() const; 00081 00082 private: // Data 00083 00084 /** 00085 * iAppView, the application view. 00086 * Owned by CCSSyncAppUi object. 00087 */ 00088 CCSSyncAppView* iAppView; 00089 }; 00090 00091 00092 #endif // __CSSYNCAPPUI_H__ 00093 00094 00095 // End of File
© Nokia 2009 |