textandlocutils/nearestlangutils/inc/LangUtil.h
changeset 59 7d891bb52a7d
equal deleted inserted replaced
53:11e2bb0d14ba 59:7d891bb52a7d
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 #ifndef __LANGUTIL_H__
       
    18 #define __LANGUTIL_H__
       
    19 
       
    20 #include <e32std.h>
       
    21 #include <bautils.h>
       
    22 
       
    23 
       
    24 
       
    25 class LangUtil
       
    26 {
       
    27 public:
       
    28      static void GetDowngradePathL(const RFs& aFs, const TLanguage aCurrentLanguage, RArray<TLanguage>& aLanguageArray );
       
    29      static void GetEquivalentLanguageList(TLanguage aLang, TLanguagePath& aEquivalents);
       
    30      static TLanguage IdealLanguage();
       
    31      static void NearestLanguageFile(const RFs& aFs, TFileName& aName);
       
    32      static void NearestLanguageFile(const RFs& aFs, TFileName& aName, TLanguage& aLanguage);
       
    33      static void NearestLanguageFileV2(const RFs& aFs, TFileName& aName, TLanguage& aLanguage);
       
    34      static void ReleaseIdealLanguage();
       
    35      static TInt SetIdealLanguage(TLanguage aLanguage);
       
    36 
       
    37 };
       
    38 #endif // end of __LANGUTIL_H