diff -r 000000000000 -r 5a93021fdf25 apengine/apsettingshandlerui/src/AccessPointTextSettingPage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apengine/apsettingshandlerui/src/AccessPointTextSettingPage.cpp Thu Dec 17 08:55:21 2009 +0200 @@ -0,0 +1,94 @@ +/* +* 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: Implementation of CAccessPointTextSettingPage. +* +*/ + + +// INCLUDE FILES + + +#include "AccessPointTextSettingPage.h" +#include + +#include // for AVKON ELAF +#include +#include "ApSettingsHandlerLogger.h" + +// ================= MEMBER FUNCTIONS ======================= + + +// --------------------------------------------------------- +// CAccessPointTextSettingPage::CAccessPointTextSettingPage +// --------------------------------------------------------- +// +CAccessPointTextSettingPage::CAccessPointTextSettingPage + ( TInt aResourceID, + TDes& aText, + TInt aTextSettingPageFlags, + TBool aIsLatin ) + :CAknTextSettingPage( aResourceID, aText, aTextSettingPageFlags ) + { + APSETUILOGGER_ENTERFN( EOther,"TxtSetPage::CAccessPointTextSettingPage<->") + iIsLatin = aIsLatin; + } + + + + +// --------------------------------------------------------- +// CAccessPointTextSettingPage::CAccessPointTextSettingPage +// --------------------------------------------------------- +// +CAccessPointTextSettingPage::CAccessPointTextSettingPage + ( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TDes& aText, + TInt aTextSettingPageFlags, + TBool aIsLatin ) + :CAknTextSettingPage( aSettingTitleText, aSettingNumber, aControlType, + aEditorResourceId, aSettingPageResourceId, aText, aTextSettingPageFlags ) + { + APSETUILOGGER_ENTERFN( EOther,"TxtSetPage::CAccessPointTextSettingPage<->") + iIsLatin = aIsLatin; + } + +// --------------------------------------------------------- +// CAccessPointTextSettingPage::ConstructL +// --------------------------------------------------------- +// +void CAccessPointTextSettingPage::ConstructL() + { + APSETUILOGGER_ENTERFN( EOther,"TxtSetPage::ConstructL") + + CAknTextSettingPage::ConstructL(); + FeatureManager::InitializeLibL(); + TBool avkonElaf = FeatureManager::FeatureSupported( KFeatureIdAvkonELaf ); + FeatureManager::UnInitializeLib(); + if ( avkonElaf && iIsLatin ) + { + CAknInputLanguageInfo* inputLangInfo = + AknInputLanguageInfoFactory::CreateInputLanguageInfoL(); + TextControl()->SetAknEditorLocalLanguage + ( inputLangInfo->UrlLanguage() ); + delete inputLangInfo; + } + + APSETUILOGGER_LEAVEFN( EOther,"TxtSetPage::ConstructL") + } + +// End of File