diff -r b7fa36b488f8 -r cd54903d48da profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfileKeypadVolumeSettingItem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfileKeypadVolumeSettingItem.h Wed Sep 01 12:30:29 2010 +0100 @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Setting item class for keypad volume setting. +* +*/ + + + +#ifndef CPROFILEKEYPADVOLUMESETTINGITEM_H +#define CPROFILEKEYPADVOLUMESETTINGITEM_H + +// INCLUDES +#include + +// FORWARD DECLARATIONS +class CAknSettingPage; +class CAknKeySoundSystem; + +// CLASS DECLARATION +/** +* Setting item class for keypad volume setting. +* CProfileKeypadVolumeSettingItem extends CAknEnumeratedTextPopupSettingItem +* in order to launch +* CProfileKeypadVolumeSettingPage instead of CAknPopupSettingPage. +* +* @lib ProfileSettingsView.lib +* @since 1.2 +*/ +NONSHARABLE_CLASS( CProfileKeypadVolumeSettingItem ) + : public CAknEnumeratedTextPopupSettingItem + { + public: // Constructor + + /** + * C++ constructor. + */ + CProfileKeypadVolumeSettingItem( + TInt aIdentifier, + TInt& aValue, + CAknKeySoundSystem* aSoundSystem ); + + private: // Functions from base classes + + /** + * From CAknEnumeratedTextPopupSettingItem + */ + void CompleteConstructionL(); + + /** + * From CAknEnumeratedTextPopupSettingItem + */ + CAknSettingPage* CreateSettingPageL(); + + private: // Data + + // Ref: Pointer to AVKON key sound system + CAknKeySoundSystem* iSoundSystem; + + }; + +#endif // CPROFILEKEYPADVOLUMESETTINGITEM_H + +// End of File