profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfileNameSettingItem.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 profile name setting.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDES
       
    21 #include "CProfileNameSettingItem.h"
       
    22 #include "CProfileNameSettingPage.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CProfileNameSettingItem::CProfileNameSettingItem
       
    28 // C++ constructor can NOT contain any code, that might leave.
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 CProfileNameSettingItem::CProfileNameSettingItem(
       
    32 	TInt aIdentifier,
       
    33 	TDes& aText,
       
    34 	CProfileEngineHandler& aEngineHandler )
       
    35 	:	CAknTextSettingItem( aIdentifier, aText ),
       
    36 		iEngineHandler( aEngineHandler )
       
    37 	{
       
    38 	}
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // CProfileNameSettingItem::EditItemL
       
    42 // We do not need to know if the setting page has been launched
       
    43 // with selection key or from Options menu.
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 void CProfileNameSettingItem::EditItemL( TBool /* aCalledFromMenu */ )
       
    47 	{
       
    48 	CProfileNameSettingPage* dlg = new( ELeave ) CProfileNameSettingPage(
       
    49 		SettingPageResourceId(),
       
    50 		InternalTextPtr(),
       
    51 		SettingPageFlags(),
       
    52         iEngineHandler );
       
    53 	SetSettingPage( dlg );
       
    54 	dlg->SetSettingPageObserver( this );
       
    55 	dlg->ExecuteLD( CAknSettingPage::EUpdateWhenChanged );
       
    56 	SetSettingPage( NULL ); // it is deleted now
       
    57 	}
       
    58 
       
    59 // End of File