|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : ListboxSettingView.h 00004 * Part of : Listbox example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2007 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 #ifndef __LISTBOXSETTINGVIEW_H__ 00017 #define __LISTBOXSETTINGVIEW_H__ 00018 00019 00020 #include <aknview.h> 00021 00022 class CListboxSettingList; 00023 00024 00025 /** 00026 * CListBoxSettingView class 00027 * This class is a view class for setting list container (CListboxSettingList). 00028 */ 00029 class CListboxSettingView : public CAknView 00030 { 00031 00032 public: 00033 00034 /** 00035 * Two-phased constructor. 00036 */ 00037 static CListboxSettingView* NewL(); 00038 00039 public: //New functions 00040 00041 /** 00042 * Called by HandleResourceChangeL() from CListboxAppUi when layout 00043 * is changed. 00044 * 00045 * @param aType Type of resources that have changed 00046 */ 00047 void HandleSizeChange( TInt aType ); 00048 00049 private: 00050 00051 /** 00052 * From CAknView. 00053 * Returns views id. 00054 * 00055 * @return Id for this view. 00056 */ 00057 TUid Id() const; 00058 00059 /** 00060 * From CAknView. 00061 * Handles commands 00062 * 00063 * @param aCommand A command to be handled. 00064 */ 00065 void HandleCommandL( TInt aCommand ); 00066 00067 /** 00068 * From CAknView. 00069 * Activates view 00070 * 00071 * @param aPrevViewId Specifies the view previously active. 00072 * @param aCustomMessageId Specifies the message type. 00073 * @param aCustomMessage The activation message. 00074 */ 00075 void DoActivateL( const TVwsViewId& aPrevViewId, 00076 TUid aCustomMessageId, 00077 const TDesC8& aCustomMessage ); 00078 00079 /** 00080 * From CAknView. 00081 * Deactivates view. 00082 */ 00083 void DoDeactivate(); 00084 00085 /** 00086 * From MEikMenuObserver, DynInitMenuPaneL. 00087 * This function is called by the EIKON framework just before it 00088 * displays a menu pane. 00089 * @param aResourceId The ID of command which defined in resource file. 00090 * @param aMenuPane Pointer to menu-pane object. 00091 */ 00092 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); 00093 00094 private: 00095 00096 /** 00097 * By default Symbian 2nd phase constructor is private. 00098 */ 00099 void ConstructL(); 00100 00101 /** 00102 * C++ default constructor. 00103 */ 00104 CListboxSettingView(); 00105 00106 /** 00107 * Destructor. 00108 */ 00109 ~CListboxSettingView(); 00110 00111 private: //Data 00112 00113 /** 00114 * Container. 00115 * Own. 00116 */ 00117 CListboxSettingList* iContainer; 00118 00119 }; 00120 00121 #endif // __LISTBOXSETTINGVIEW_H__
|
© Nokia 2009 |