equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 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". |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: Declaration of SsmLanguageLoader class. |
15 * Declaration of SsmLanguageLoader class. |
|
16 * |
15 * |
17 */ |
16 */ |
18 |
17 |
19 #ifndef SSMLANGUAGELOADER_H |
18 #ifndef SSMLANGUAGELOADER_H |
20 #define SSMLANGUAGELOADER_H |
19 #define SSMLANGUAGELOADER_H |
32 { |
31 { |
33 |
32 |
34 public: |
33 public: |
35 |
34 |
36 /** |
35 /** |
37 * Store language code to HAL and load corresponding locale DLL. |
36 * Store language code to HAL and load corresponding Language, Region and Collation DLLs. |
38 * |
37 * |
39 * @since S60 3.2 |
38 * @param aLanguage Language code identifying which language DLL to load. |
40 * @param aLanguage Language code identifying which locale DLL to load. |
39 * @param aRegion Region code identifying which region DLL to load. |
|
40 * @param aCollation Collation code identifying which collation DLL to load. |
41 * @return KErrNone if loading was successful, one of Symbian error codes |
41 * @return KErrNone if loading was successful, one of Symbian error codes |
42 * otherwise. |
42 * otherwise. |
43 */ |
43 */ |
44 static TInt LoadLanguage( const TInt aLanguage ); |
44 static TInt LoadLocale( const TInt aLanguage, const TInt aRegion, const TInt aCollation); |
45 |
|
46 private: |
45 private: |
47 |
46 |
48 /** |
47 /** |
49 * Store language code to HAL and load corresponding locale DLL. |
48 * Store language code to HAL and load corresponding locale DLL. |
50 * |
49 * |
53 * @return KErrNone if successful, one of Symbian error codes otherwise. |
52 * @return KErrNone if successful, one of Symbian error codes otherwise. |
54 */ |
53 */ |
55 static TInt StoreLanguageToHal( const TInt aLanguage ); |
54 static TInt StoreLanguageToHal( const TInt aLanguage ); |
56 |
55 |
57 /** |
56 /** |
58 * Find the correct locale DLL to use by language code and take it to |
57 * Loads the given Language, Region and Collation DLLs and saves the settings |
59 * use. |
|
60 * |
58 * |
61 * @param aLanguageCode The language code to find a locale dll for. |
59 * @param aLanguageDllName The name of the Language DLL to load. |
|
60 * @param aRegionDllName The name of the Region DLL to load. |
|
61 * @param aCollationDllName The name of the Collation DLL to load. |
62 * @return KErrNone if successful, one of Symbian error codes otherwise. |
62 * @return KErrNone if successful, one of Symbian error codes otherwise. |
63 */ |
63 */ |
64 static TInt LoadLocaleDll( const TInt aLanguage ); |
64 static TInt ChangeLocale( const TDesC& aLanguageDllName, const TDesC& aRegionDllName, const TDesC& aCollationDllName ); |
65 |
|
66 /** |
|
67 * Take a locale DLL to use by name. |
|
68 * |
|
69 * @param aLocaleDllName The name of the locale DLL to load. |
|
70 * @return KErrNone if successful, one of Symbian error codes otherwise. |
|
71 */ |
|
72 static TInt ChangeLocale( const TDesC& aLocaleDllName ); |
|
73 |
|
74 }; |
65 }; |
75 |
|
76 |
|
77 #endif // SSMLANGUAGELOADER_H |
66 #endif // SSMLANGUAGELOADER_H |