equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-2007 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef IRLANGUAGEMAPPER_H |
|
20 #define IRLANGUAGEMAPPER_H |
|
21 |
|
22 #include <e32cmn.h> |
|
23 |
|
24 const TInt KIRLanguageCodeLength = 2; |
|
25 |
|
26 /** |
|
27 * A utility class to translate TLanguage into a country code http headers |
|
28 * know something about |
|
29 * |
|
30 * @ingroup Utils |
|
31 */ |
|
32 NONSHARABLE_CLASS(IRLanguageMapper) |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Translate TLanguage into language code representation |
|
37 * (such as "en", "fi" etc). |
|
38 * @param aLanguage the language to be translated |
|
39 * @return Language code representation of the given input. |
|
40 */ |
|
41 static TBufC8<KIRLanguageCodeLength> MapLanguage(TLanguage aLanguage); |
|
42 }; |
|
43 |
|
44 #endif // IRLANGUAGEMAPPER_H |