devicesrv_plat/syslangutil_api/inc/syslangutil.h
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
     1 /*
     1 /*
     2 * Copyright (c) 2000-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2000-2007 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    82     *           the errorcode.
    82     *           the errorcode.
    83     */
    83     */
    84     IMPORT_C static TInt RestoreSIMLanguage(
    84     IMPORT_C static TInt RestoreSIMLanguage(
    85         TInt &aLanguage,
    85         TInt &aLanguage,
    86         RFs* aFileServerSession = NULL );
    86         RFs* aFileServerSession = NULL );
    87 	
       
    88 	/**
       
    89     * Changes the Language to the one which is passed as an argument.
       
    90 	* @param aLanguageCode  Language to be set .
       
    91     * 
       
    92     * @return returns KErrNone if everything is OK, otherwise returns
       
    93     *           errorcode.
       
    94     */
       
    95 	IMPORT_C static TInt SysLangUtil::ChangeLanguage(const TInt aLanguageCode);
       
    96 	
       
    97 	/**
       
    98     * Changes the region to the one which is passed as an argument.
       
    99 	* @param aRegionCode  region code to be set .
       
   100     * 
       
   101     * @return returns KErrNone if everything is OK, otherwise returns
       
   102     *           errorcode.
       
   103     */
       
   104 	IMPORT_C static TInt SysLangUtil::ChangeRegion(const TInt aRegionCode);
       
   105 	
       
   106 	/**
       
   107     * Changes the collation to the one which is passed as an argument.
       
   108     * @param aCollationCode  collation to be set .
       
   109     * 
       
   110     * @return returns KErrNone if everything is OK, otherwise returns
       
   111     *           errorcode.
       
   112     */
       
   113 	
       
   114 	IMPORT_C static TInt SysLangUtil::ChangeCollation(const TInt aCollationCode);
       
   115 	
       
   116 	/**
       
   117     * Checks and returns installed regions in a param given.
       
   118     * @param aRegions  Symbian regions as a arrayfixflat<int>, ownership
       
   119     *           given to user, so user must take care of proper cleanup!
       
   120     * @param aFileServerSession Optional file server session handle. If
       
   121     *           omitted, new one will be created.
       
   122     * @return returns KErrNone if everything went OK, otherwise returns
       
   123     *           the errorcode.
       
   124     */
       
   125 	IMPORT_C static TInt SysLangUtil::GetInstalledRegions(CArrayFixFlat<TInt>*& aRegions,
       
   126 															RFs* aFileServerSession = NULL );
       
   127 	
       
   128 	/**
       
   129     * Checks and returns installed collations in a param given.
       
   130     * @param aRegions  Symbian collations as a arrayfixflat<int>, ownership
       
   131     *           given to user, so user must take care of proper cleanup!
       
   132     * @param aFileServerSession Optional file server session handle. If
       
   133     *           omitted, new one will be created.
       
   134     * @return returns KErrNone if everything went OK, otherwise returns
       
   135     *           the errorcode.
       
   136     */
       
   137 															
       
   138 	IMPORT_C static TInt SysLangUtil::GetInstalledCollations(CArrayFixFlat<TInt>*& aCollations,
       
   139 															RFs* aFileServerSession = NULL );													
       
   140 
    87 
   141 private:
    88 private:
   142 
    89 
   143     // Utility:
    90     // Utility:
   144 
    91 
   145     static RFs* CheckFS( RFs* aRFs, TBool &aExist, TInt &aErr );
    92     static RFs* CheckFS( RFs* aRFs, TBool &aExist, TInt &aErr );
   146 	static void LoadDllL( const TUint32 aCategory,const TInt aCode, const TDesC& aDllNameBase );
    93 
   147 	static void ReadFileL(CArrayFixFlat<TInt>*& aArray, const TDesC& aFilePath, RFs* aFileServerSession = NULL );
       
   148     };
    94     };
   149 
    95 
   150 #endif // SYSLANGUTIL_H
    96 #endif // SYSLANGUTIL_H