|
1 /* |
|
2 * Copyright (c) 2010 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: Declaration of TLanguageRegion structure. |
|
15 * |
|
16 */ |
|
17 #ifndef __SSMCOMMONLOCALE_H__ |
|
18 #define __SSMCOMMONLOCALE_H__ |
|
19 #include <e32base.h> |
|
20 |
|
21 _LIT( KLanguageDllNameBase, "elocl_lan" ); |
|
22 _LIT( KRegionDllNameBase, "elocl_reg" ); |
|
23 _LIT( KCollationDllNameBase, "elocl_col" ); |
|
24 _LIT( KDllExtensionFormat, ".%u" ); |
|
25 _LIT( KDllExtensionPadding, "0" ); |
|
26 const TInt KMaxDllNameLength = 16; |
|
27 const TInt KMaxDllExtensionLength = 6; |
|
28 const TInt KMinDllExtensionLength = 4; |
|
29 const TInt KDllExtensionPaddingPosition = 1; |
|
30 |
|
31 /** |
|
32 * Used for mapping associated regions for the languages |
|
33 */ |
|
34 class TLanguageRegion |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Default constructor. |
|
40 */ |
|
41 TLanguageRegion () : iLanguage( 0 ), iRegion ( 0 ) |
|
42 { |
|
43 } |
|
44 |
|
45 /** |
|
46 * Overloaded constructor. |
|
47 */ |
|
48 TLanguageRegion ( const TInt aLanguage ) |
|
49 : iLanguage( aLanguage ), iRegion ( 0 ) |
|
50 { |
|
51 } |
|
52 |
|
53 /** |
|
54 * Overloaded constructor. |
|
55 */ |
|
56 TLanguageRegion (const TInt aLanguage, const TInt aRegion) |
|
57 : iLanguage( aLanguage ), iRegion ( aRegion ) |
|
58 { |
|
59 } |
|
60 |
|
61 public: |
|
62 /** Mapped language code */ |
|
63 TInt iLanguage; |
|
64 |
|
65 /** Mapped region code */ |
|
66 TInt iRegion; |
|
67 }; |
|
68 |
|
69 #endif // __SSMCOMMONLOCALE_H__ |