00001 /* 00002 * ============================================================================ 00003 * Name : AknVolumeSettingPage.h 00004 * Part of : Avkon 00005 * 00006 * Description: 00007 * Interface for Volume setting page 00008 * Version: 00009 * 00010 * Copyright © 2002 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. All rights are reserved. Copying, 00014 * including reproducing, storing, adapting or translating, any 00015 * or all of this material requires the prior written consent of 00016 * Nokia Corporation. This material also contains confidential 00017 * information which may not be disclosed to others without the 00018 * prior written consent of Nokia Corporation. 00019 * ============================================================================ 00020 */ 00021 00022 #ifndef __AKNVOLUMESETTINGPAGE_H__ 00023 #define __AKNVOLUMESETTINGPAGE_H__ 00024 00025 // For coecontrol 00026 #include <coecntrl.h> 00027 00028 // General eikon 00029 #include <eikdef.h> 00030 00031 // For CBA stuff 00032 #include <eikbtgpc.h> 00033 00034 // Avkon controls 00035 #include "aknvolumecontrol.h" 00036 #include "aknsettingpage.h" 00037 00038 00039 class CAknVolumeSettingPage : public CAknSettingPage 00040 { 00041 public: 00048 IMPORT_C CAknVolumeSettingPage(TInt aResourceID, TInt& aVolume); 00049 00083 IMPORT_C CAknVolumeSettingPage( const TDesC* aSettingTitleText, 00084 TInt aSettingNumber, 00085 TInt aControlType, 00086 TInt aEditorResourceId, 00087 TInt aSettingPageResourceId, 00088 TInt& aVolume ); 00089 00093 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 00094 00095 protected: 00096 00100 IMPORT_C virtual ~CAknVolumeSettingPage(); 00101 00108 IMPORT_C virtual void ConstructL(); 00115 IMPORT_C CAknVolumeControl* VolumeControl(); 00116 00117 // 00118 // CoeControl Framework methods 00119 // 00120 protected: 00121 00122 IMPORT_C virtual void SizeChanged(); 00123 IMPORT_C virtual void Draw(const TRect &aRect) const; 00131 IMPORT_C virtual void WriteInternalStateL(RWriteStream& aWriteStream) const; 00132 00133 private: 00137 IMPORT_C virtual void Reserved_2(); 00138 00139 private: 00143 IMPORT_C void* ExtensionInterface( TUid aInterface ); 00144 00145 // 00146 // Framework methods from CAknSettingPage 00147 // 00148 protected: 00149 00154 IMPORT_C virtual void UpdateSettingL(); 00155 00160 IMPORT_C virtual void AcceptSettingL(); 00161 00166 IMPORT_C virtual void RestoreOriginalSettingL(); 00167 00171 private: 00172 IMPORT_C virtual void CAknSettingPage_Reserved_1(); 00173 IMPORT_C virtual void CAknSettingPage_Reserved_2(); 00174 00175 private: 00176 TInt& iVolume; 00177 TInt iBackupVolume; 00178 }; 00179 00180 #endif