equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-2009 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 the License "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 @released |
|
23 */ |
|
24 |
|
25 #include "sissupportedlanguages.h" |
|
26 |
|
27 void CSISSupportedLanguages::MakeNeat () |
|
28 { |
|
29 CStructure <CSISFieldRoot::ESISSupportedLanguages>::MakeNeat (); |
|
30 if (iSupportedLanguage.size () == 0) |
|
31 { |
|
32 iSupportedLanguage.Push (CSISLanguage (CSISLanguage::ELangEnglish)); |
|
33 } |
|
34 } |
|
35 |
|
36 |
|
37 std::string CSISSupportedLanguages::Name () const |
|
38 { |
|
39 return "Supported Languages"; |
|
40 } |
|
41 |
|
42 void CSISSupportedLanguages::AddPackageEntry(std::wostream& aStream, bool aVerbose) const |
|
43 { |
|
44 TUint32 optionCount = iSupportedLanguage.size(); |
|
45 if (optionCount == 0) |
|
46 { |
|
47 return; |
|
48 } |
|
49 if (aVerbose) |
|
50 { |
|
51 aStream << L"; Languages" << std::endl; |
|
52 } |
|
53 aStream << L"&"; |
|
54 for (TUint32 i = 0; i < optionCount; ++i) |
|
55 { |
|
56 iSupportedLanguage[i].AddPackageEntry(aStream, aVerbose); |
|
57 if (i < (optionCount-1)) |
|
58 { |
|
59 aStream << L", "; |
|
60 } |
|
61 } |
|
62 aStream << std::endl << std::endl; |
|
63 } |
|
64 |