devicesrv_plat/syslangutil_api/inc/syslangutil.h
branchRCL_3
changeset 21 ccb4f6b3db21
parent 0 4e1aa6a622a0
child 22 8cb079868133
--- a/devicesrv_plat/syslangutil_api/inc/syslangutil.h	Thu Aug 19 11:09:10 2010 +0300
+++ b/devicesrv_plat/syslangutil_api/inc/syslangutil.h	Tue Aug 31 16:29:05 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2000-2007 Nokia Corporation and/or its subsidiary(-ies). 
+* Copyright (c) 2000-2010 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"
@@ -84,13 +84,67 @@
     IMPORT_C static TInt RestoreSIMLanguage(
         TInt &aLanguage,
         RFs* aFileServerSession = NULL );
+	
+	/**
+    * Changes the Language to the one which is passed as an argument.
+	* @param aLanguageCode  Language to be set .
+    * 
+    * @return returns KErrNone if everything is OK, otherwise returns
+    *           errorcode.
+    */
+	IMPORT_C static TInt SysLangUtil::ChangeLanguage(const TInt aLanguageCode);
+	
+	/**
+    * Changes the region to the one which is passed as an argument.
+	* @param aRegionCode  region code to be set .
+    * 
+    * @return returns KErrNone if everything is OK, otherwise returns
+    *           errorcode.
+    */
+	IMPORT_C static TInt SysLangUtil::ChangeRegion(const TInt aRegionCode);
+	
+	/**
+    * Changes the collation to the one which is passed as an argument.
+    * @param aCollationCode  collation to be set .
+    * 
+    * @return returns KErrNone if everything is OK, otherwise returns
+    *           errorcode.
+    */
+	
+	IMPORT_C static TInt SysLangUtil::ChangeCollation(const TInt aCollationCode);
+	
+	/**
+    * Checks and returns installed regions in a param given.
+    * @param aRegions  Symbian regions as a arrayfixflat<int>, ownership
+    *           given to user, so user must take care of proper cleanup!
+    * @param aFileServerSession Optional file server session handle. If
+    *           omitted, new one will be created.
+    * @return returns KErrNone if everything went OK, otherwise returns
+    *           the errorcode.
+    */
+	IMPORT_C static TInt SysLangUtil::GetInstalledRegions(CArrayFixFlat<TInt>*& aRegions,
+															RFs* aFileServerSession = NULL );
+	
+	/**
+    * Checks and returns installed collations in a param given.
+    * @param aRegions  Symbian collations as a arrayfixflat<int>, ownership
+    *           given to user, so user must take care of proper cleanup!
+    * @param aFileServerSession Optional file server session handle. If
+    *           omitted, new one will be created.
+    * @return returns KErrNone if everything went OK, otherwise returns
+    *           the errorcode.
+    */
+															
+	IMPORT_C static TInt SysLangUtil::GetInstalledCollations(CArrayFixFlat<TInt>*& aCollations,
+															RFs* aFileServerSession = NULL );													
 
 private:
 
     // Utility:
 
     static RFs* CheckFS( RFs* aRFs, TBool &aExist, TInt &aErr );
-
+	static void LoadDllL( const TUint32 aCategory,const TInt aCode, const TDesC& aDllNameBase );
+	static void ReadFileL(CArrayFixFlat<TInt>*& aArray, const TDesC& aFilePath, RFs* aFileServerSession = NULL );
     };
 
 #endif // SYSLANGUTIL_H