profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfilePlayingVolumeSettingItem.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 item class for ringing volume setting.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPROFILEPLAYINGVOLUMESETTINGITEM_H
       
    21 #define CPROFILEPLAYINGVOLUMESETTINGITEM_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknsettingitemlist.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 *  Setting item class for ringing volume setting.
       
    31 *  CProfilePlayingVolumeSettingItem extends CAknVolumeSettingItem
       
    32 *  in order to launch CProfilePlayingVolumeSettingPage
       
    33 *  instead of CAknVolumeSettingPage.
       
    34 *
       
    35 *  @lib ProfileSettingsView.lib
       
    36 *  @since 1.2
       
    37 */
       
    38 NONSHARABLE_CLASS( CProfilePlayingVolumeSettingItem ) : public CAknVolumeSettingItem
       
    39 	{
       
    40 	public:		// Constructors and destructor
       
    41 
       
    42         /**
       
    43         * C++ constructor.
       
    44         * @param aIdentifier Setting item identifier.
       
    45         * @param aRingingVolume Ringing volume.
       
    46         * @param aRingingTone Ringing tone.
       
    47         * @param aRingingType Ringint type.
       
    48         * @param aVibratingAlert Vibrating alert.
       
    49         * @param aDisplayQuery Information of whether 
       
    50 		* CProfilePlayingVolumeSettingPage
       
    51 		* should display confirmation note
       
    52 		* when setting maximum volume
       
    53         */
       
    54 		CProfilePlayingVolumeSettingItem(
       
    55 			TInt aIdentifier,
       
    56 			TInt& aRingingVolume,
       
    57 			const TDesC& aRingingTone,
       
    58 			const TInt& aRingingType,
       
    59 			const TBool& aVibratingAlert,
       
    60 			const TBool aDisplayQuery );
       
    61 
       
    62 	private:	// Functions from base classes
       
    63 
       
    64         /**
       
    65         * From CAknVolumeSettingItem
       
    66         */
       
    67 		void EditItemL( TBool aCalledFromMenu );
       
    68 
       
    69 	private:	// Data
       
    70 
       
    71 		// Ringing tone.
       
    72 		const TDesC& iRingingTone;
       
    73 
       
    74 		// Ringing type.
       
    75 		const TInt& iRingingType;
       
    76 
       
    77 		// Vibrating alert.
       
    78 		const TBool& iVibratingAlert;
       
    79 		
       
    80 		// Display confirmation note.
       
    81 		const TBool iDisplayQuery;
       
    82 
       
    83 	};
       
    84 
       
    85 #endif // CPROFILEPLAYINGVOLUMESETTINGITEM_H
       
    86 
       
    87 // End of File