|
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 * Note: This file may contain code to generate corrupt files for test purposes. |
|
16 * Such code is excluded from production builds by use of compiler defines; |
|
17 * it is recommended that such code should be removed if this code is ever published publicly. |
|
18 * As specified in SGL.GT0188.251 |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 /** |
|
24 @file |
|
25 @internalComponent |
|
26 @released |
|
27 */ |
|
28 |
|
29 #ifndef __SISSUPPORTEDOPTIONS_H__ |
|
30 #define __SISSUPPORTEDOPTIONS_H__ |
|
31 |
|
32 |
|
33 #include "sissupportedoption.h" |
|
34 #include "sisarray.h" |
|
35 |
|
36 class CSISSupportedOptions : public CStructure <CSISFieldRoot::ESISSupportedOptions> |
|
37 |
|
38 { |
|
39 public: |
|
40 CSISSupportedOptions (); |
|
41 CSISSupportedOptions (const CSISSupportedOptions& aInitialiser); |
|
42 |
|
43 virtual std::string Name () const; |
|
44 |
|
45 void AddOption (); |
|
46 void AddOptionName (const std::wstring& aName); |
|
47 void AddPackageEntry(std::wostream& aStream, bool aVerbose) const; |
|
48 inline TUint32 SupportedOptionCount() const; |
|
49 |
|
50 private: |
|
51 CSISArray <CSISSupportedOption, CSISFieldRoot::ESISSupportedOption> iSupportedOption; |
|
52 }; |
|
53 |
|
54 |
|
55 |
|
56 inline CSISSupportedOptions::CSISSupportedOptions () |
|
57 { |
|
58 InsertMember (iSupportedOption); |
|
59 } |
|
60 |
|
61 |
|
62 inline CSISSupportedOptions::CSISSupportedOptions (const CSISSupportedOptions& aInitialiser) : |
|
63 CStructure <CSISFieldRoot::ESISSupportedOptions> (aInitialiser), |
|
64 iSupportedOption (aInitialiser.iSupportedOption) |
|
65 { |
|
66 InsertMember (iSupportedOption); |
|
67 } |
|
68 |
|
69 |
|
70 inline void CSISSupportedOptions::AddOption () |
|
71 { |
|
72 iSupportedOption.Push (CSISSupportedOption ()); |
|
73 } |
|
74 |
|
75 inline void CSISSupportedOptions::AddOptionName (const std::wstring& aName) |
|
76 { |
|
77 assert (iSupportedOption.size () > 0); |
|
78 iSupportedOption.Last ().AddOptionName (aName); |
|
79 } |
|
80 |
|
81 inline std::string CSISSupportedOptions::Name () const |
|
82 { |
|
83 return "Supported Options"; |
|
84 } |
|
85 |
|
86 inline TUint32 CSISSupportedOptions::SupportedOptionCount() const |
|
87 { |
|
88 return iSupportedOption.size(); |
|
89 } |
|
90 |
|
91 #endif // __SISSUPPORTEDOPTIONS_H__ |
|
92 |