|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================ 00003 * Name : CDynamicSettingListAppView from DynamicSettingListAppView.cpp 00004 * Part of : Dynamic Setting List 00005 * Created : 09/21/2005 by Forum Nokia 00006 * Version : 1.0 00007 * 00008 * Copyright (c) 2005 - 2007 Nokia Corporation. 00009 * This material, including documentation and any related 00010 * computer programs, is protected by copyright controlled by 00011 * Nokia Corporation. 00012 * ============================================================================ 00013 */ 00014 00015 #ifndef __DYNAMICSETTINGLIST_APPVIEW_H__ 00016 #define __DYNAMICSETTINGLIST_APPVIEW_H__ 00017 00018 // INCLUDE FILES 00019 #include "dynamicsettinglist.hrh" 00020 #include <coecntrl.h> 00021 #include <aknsettingitemlist.h> 00022 00023 // CLASS DECLARATION 00024 00025 /** 00026 * A view class for a dynamic setting list. 00027 */ 00028 class CDynamicSettingListAppView : public CCoeControl 00029 { 00030 public: // Constructor and destructor 00031 00032 /** 00033 * Symbian OS default constructor. 00034 */ 00035 void ConstructL(const TRect& aRect); 00036 00037 /** 00038 * Constructor 00039 */ 00040 CDynamicSettingListAppView(); 00041 00042 /** 00043 * Destructor 00044 */ 00045 ~CDynamicSettingListAppView(); 00046 00047 private: // Functions from base classes 00048 00049 /** 00050 * From CCoeControl,Draw. 00051 */ 00052 void Draw(const TRect& aRect) const; 00053 00054 /** 00055 * From CoeControl,CountComponentControls. 00056 */ 00057 TInt CountComponentControls() const; 00058 00059 /** 00060 * From CCoeControl,ComponentControl. 00061 */ 00062 CCoeControl* ComponentControl(TInt aIndex) const; 00063 00064 /** 00065 * From CCoeControl,OfferKeyEventL. 00066 */ 00067 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); 00068 00069 00070 private: // New Functions 00071 00072 /** 00073 * Loads the setting list dynamically. 00074 */ 00075 void LoadListL(); 00076 00077 /** 00078 * Stores the settings of the setting list. 00079 */ 00080 void StoreSettingsL(); 00081 00082 00083 private: // Data members 00084 00085 CAknSettingItemList* iItemList; 00086 00087 TBuf<KMaxTextLength> iText; 00088 TBuf<KMaxPasswordLength> iPassword; 00089 TInt iNumber; 00090 TInt iVolume; 00091 TInt iSlider; 00092 TTime iDate; 00093 TTimeIntervalSeconds iTime; 00094 TInetAddr iIp; 00095 TInt iEnumText; 00096 TBool iBinary; 00097 00098 }; 00099 00100 00101 #endif // __DYNAMICSETTINGLIST_APPVIEW_H__ 00102 00103 // End of file
|
© Nokia 2009 |