aknslidersettingpage.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name     : AknSliderSettingPage.h
00004 *  Part of  : Avkon
00005 *
00006 *  Description: Slider Setting Page
00007 *  Version:
00008 *
00009 *  Copyright © 2002 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation. All rights are reserved. Copying, 
00013 *  including reproducing, storing,  adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia Corporation. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia Corporation.
00018 * ============================================================================
00019 */
00020 
00021 #ifndef __AKNSLIDERSETTINGPAGE__
00022 #define __AKNSLIDERSETTINGPAGE__ 
00023 
00024 // For coecontrol
00025 #include <coecntrl.h>
00026 
00027 #include <eikdef.h>
00028 #include <eikbtgpc.h>
00029 #include <aknslider.h>
00030 #include <aknsettingpage.h>
00031 
00032 class CAknSliderSettingPage : public CAknSettingPage
00033 {
00034 public:
00042         IMPORT_C CAknSliderSettingPage(TInt aResourceID, TInt& aSliderValue);
00043 
00077         IMPORT_C CAknSliderSettingPage( const TDesC* aSettingTitleText, 
00078                                                                 TInt aSettingNumber, 
00079                                                                 TInt aControlType,
00080                                                                 TInt aEditorResourceId, 
00081                                                                 TInt aSettingPageResourceId,
00082                                                                 TInt& aSliderValue );
00088         IMPORT_C CAknSlider* SliderControl();
00089 
00090 //
00091 // From CAknSettingPage
00092 //
00093 
00098         IMPORT_C virtual void ConstructL();
00099 
00103     IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
00104 
00105 //
00106 // From CCoeControl
00107 //
00108 protected:
00109         IMPORT_C virtual void SizeChanged();
00110         IMPORT_C virtual void Draw(const TRect &aRect) const;
00111 
00119         IMPORT_C virtual void WriteInternalStateL(RWriteStream& aWriteStream) const;
00120 
00121 private: 
00125         IMPORT_C virtual void Reserved_2();
00126 
00127 private:
00131     IMPORT_C void* ExtensionInterface( TUid aInterface );
00132 
00133 // 
00134 // Framework methods derived from CAknSettingPage
00135 //
00136 protected:
00141         IMPORT_C virtual ~CAknSliderSettingPage();
00142 
00147         IMPORT_C virtual void UpdateSettingL();
00148 
00153         IMPORT_C virtual void AcceptSettingL();
00154 
00159         IMPORT_C virtual void RestoreOriginalSettingL();
00160 
00164 private: 
00165         IMPORT_C virtual void CAknSettingPage_Reserved_1();
00166         IMPORT_C virtual void CAknSettingPage_Reserved_2();
00167 
00168 private:
00169         TInt& iSliderValue;
00170         TInt iBackupSliderValue;
00171 };
00172 
00173 #endif 
00174 
00175 

Copyright © Nokia Corporation 2001-2008
Back to top