fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/inc/AknFepUIAvkonCtrlDualLanguageSettingModel.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 23:09:27 +0200
branchRCL_3
changeset 3 f5a1e66df979
parent 0 eb1f2e154e89
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2009 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:          
*
*/










#ifndef __AKNFEPDUALLANGUAGESETTINGMODEL_H_
#define __AKNFEPDUALLANGUAGESETTINGMODEL_H_

#include    <e32base.h>
#include <BADESCA.H> //CDesCArray
#include <coemain.h> //For CCoeEnv
#include <centralrepository.h>

class CAknFepDualLanguageSettingModel : public CBase
    {
public:
    static CAknFepDualLanguageSettingModel* NewL();
    enum TLanguageType
                {                
                // Writing language
                EAknFepDualLanguageSettingInputLanguage,
                // Secondary writing language
                EAknFepDualLanguageSettingInputLanguageSecondary
                };
    void GetSecondaryInputLanguagesL(
                  CArrayFix<TInt>* aSeedLanguages,
                  CDesCArray* aLanguageNames,
                  CCoeEnv* aCoeEnv);
    void ShowDualInputLanguageSettingListL(CCoeEnv* aCoeEnv);
    
    void GetLanguagesFromPtiL(
        CArrayFix<TInt>* aInstalledLangCodes,
        CArrayFix<TInt>* aSeedLanguages,
        CDesCArray* aLanguageNames );
    TInt LanguageL( TLanguageType aType );
    TBool SetLanguageL( TLanguageType aType, TInt aLanguage );
    
    /*
    * Returns Bool value according to predictive dictionary availability.
    * PTI Engine used for lang avaibility retrieving
    * @return ETrue: no errors
    *         EFalse: an error has occurred
    * @since 2.6
    */
    TBool CheckDictionaryFromPtiL(TInt aLangCode );
    ~CAknFepDualLanguageSettingModel();
private:
    CAknFepDualLanguageSettingModel(){};
    void ConstructL();
private:
    CRepository* iAknFepRepository;
    };
#endif //__AKNFEPDUALLANGUAGESETTINGMODEL_H_