profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfileKeypadVolumeSettingPage.h
branchRCL_3
changeset 19 cd54903d48da
parent 0 ca436256272f
equal deleted inserted replaced
18:b7fa36b488f8 19:cd54903d48da
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Setting page class for keypad volume setting.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPROFILEKEYPADVOLUMESETTINGPAGE_H
       
    21 #define CPROFILEKEYPADVOLUMESETTINGPAGE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknpopupsettingpage.h>
       
    25 #include <mdaaudiotoneplayer.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CAknKeySoundSystem;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 *  Setting page class for keypad volume setting.
       
    33 *  CProfileKeypadVolumeSettingPage extends CAknPopupSettingPage in order to
       
    34 *  play a preview sound of the selected keypad volume when changing focus
       
    35 *  in the setting list.
       
    36 *
       
    37 *  @lib ProfileSettingsView.lib
       
    38 *  @since 1.2
       
    39 */
       
    40 class CProfileKeypadVolumeSettingPage : public CAknPopupSettingPage
       
    41 									  , public MMdaAudioToneObserver
       
    42 	{
       
    43 	public:		// Constructors and destructor
       
    44 
       
    45         /**
       
    46         * C++ constructor.
       
    47         * @param aResourceID Setting page resource id.
       
    48         * @param aQueryValue
       
    49         * @param aSoundSystem Pointer to AVKON key sound system.
       
    50         */
       
    51 		CProfileKeypadVolumeSettingPage(
       
    52 			TInt aResourceID,
       
    53 			MAknQueryValue& aQueryValue,
       
    54 			CAknKeySoundSystem* aSoundSystem );
       
    55 
       
    56 		/**
       
    57 		* Destructor.
       
    58 		*/
       
    59 		~CProfileKeypadVolumeSettingPage();
       
    60 
       
    61 		/**
       
    62 		* Symbian 2nd phase constructor.
       
    63 		*/
       
    64 		void ConstructL();
       
    65 
       
    66 	private:	// Function from base classes
       
    67 
       
    68         /**
       
    69         * From CCoeControl
       
    70         */
       
    71 		TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    72 
       
    73         /**
       
    74         * From CAknSettingPage
       
    75         */
       
    76 		TBool OkToExitL( TBool aAccept );
       
    77 
       
    78 		/**
       
    79         * From MMdaAudioToneObserver
       
    80         */
       
    81 		void MatoPrepareComplete( TInt aError );
       
    82 
       
    83         /**
       
    84         * From MMdaAudioToneObserver
       
    85         */
       
    86 		void MatoPlayComplete( TInt aError );
       
    87 
       
    88 	private:	// Data
       
    89 
       
    90 		// Ref: Pointer to AVKON key sound system.
       
    91 		CAknKeySoundSystem* iSoundSystem;
       
    92 
       
    93 		// Own: Media client to play audio.
       
    94 		CMdaAudioToneUtility* iAudioUtility;
       
    95 
       
    96 		// Original volume value.
       
    97 		TInt iOriginalVolume;
       
    98 
       
    99 	};
       
   100 
       
   101 #endif // CPROFILEKEYPADVOLUMESETTINGPAGE_H
       
   102 
       
   103 // End of File