profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfilePlayingVolumeSettingItem.cpp
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 // INCLUDES
       
    21 #include "CProfilePlayingVolumeSettingItem.h"
       
    22 #include "CProfilePlayingVolumeSettingPage.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CProfilePlayingVolumeSettingItem::CProfilePlayingVolumeSettingItem
       
    28 // C++ constructor can NOT contain any code, that might leave.
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 CProfilePlayingVolumeSettingItem::CProfilePlayingVolumeSettingItem(
       
    32 	TInt aIdentifier,
       
    33 	TInt& aRingingVolume,
       
    34 	const TDesC& aRingingTone,
       
    35 	const TInt& aRingingType,
       
    36 	const TBool& aVibratingAlert,
       
    37 	const TBool aDisplayQuery )
       
    38 	:	CAknVolumeSettingItem( aIdentifier, aRingingVolume ),
       
    39 		iRingingTone( aRingingTone ),
       
    40 		iRingingType( aRingingType ),
       
    41 		iVibratingAlert( aVibratingAlert ),
       
    42 		iDisplayQuery( aDisplayQuery )
       
    43 	{
       
    44 	}
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // CProfilePlayingVolumeSettingItem::EditItemL
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 void CProfilePlayingVolumeSettingItem::EditItemL( TBool /* aCalledFromMenu */ )
       
    51 	{
       
    52 	CProfilePlayingVolumeSettingPage* dlg = new( ELeave ) CProfilePlayingVolumeSettingPage(
       
    53 		SettingPageResourceId(),
       
    54 		InternalVolumeValue(),
       
    55 		iRingingTone,
       
    56 		iRingingType,
       
    57 		iVibratingAlert,
       
    58 		iDisplayQuery );
       
    59 	SetSettingPage( dlg );
       
    60 	SettingPage()->SetSettingPageObserver( this );
       
    61     SettingPage()->ExecuteLD();
       
    62 	SetSettingPage( NULL );
       
    63 	}
       
    64 
       
    65 // End of File