|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Language convertor definitions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef OCRLANGUAGECONVERTOR_H |
|
20 #define OCRLANGUAGECONVERTOR_H |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include <e32base.h> |
|
24 |
|
25 /** |
|
26 * Language utils |
|
27 * |
|
28 * Offering language utilities |
|
29 * |
|
30 * @lib ocrsrv.lib |
|
31 * @since S60 v3.1 |
|
32 */ |
|
33 class ConvertLanguage |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Convert vendor language defination to Symbian's language definitions |
|
39 * @since S60 v3.1 |
|
40 * @param aLanguage A language to be converted |
|
41 * @return The language converted |
|
42 */ |
|
43 static TLanguage ConvertToSymbian(const TInt aLanguage); |
|
44 |
|
45 /** |
|
46 * Convert Symbian language defination to Vendor's language definitions |
|
47 * @since S60 v3.1 |
|
48 * @param aLanguage A language to be converted |
|
49 * @return The language converted |
|
50 */ |
|
51 static TInt ConvertToVendor(const TLanguage aLanguage); |
|
52 |
|
53 /** |
|
54 * Test if the language refer to multiple symbian's language definitions |
|
55 * @since S60 v3.1 |
|
56 * @param aLanguage A language to be tested |
|
57 * @return ETrue if it is |
|
58 */ |
|
59 static TBool IsForMutiLanguage(const TInt aLanguage); |
|
60 |
|
61 /** |
|
62 * Get symbian's full language list for the language |
|
63 * @since S60 v3.1 |
|
64 * @param aLanguage A language to be specified |
|
65 * @param aArray Symbian's full language list |
|
66 * @return None |
|
67 */ |
|
68 static void GetMutiLanguage(const TInt aLanguage, RArray<TLanguage>& aArray); |
|
69 }; |
|
70 |
|
71 #endif // OCRLANGUAGECONVERTOR_H |
|
72 |
|
73 // End of file |