1 /* |
|
2 * Copyright (c) 2006-2006 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: writeablejavaregistryentry implementation |
|
15 * : (__JAVA_EXCLUDED VERSION) |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDES |
|
21 #include "writeablejavaregistryentry.h" |
|
22 |
|
23 using namespace Java; |
|
24 using namespace Java::Manager::Registry; |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS ============================= |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // CWriteableJavaRegistryEntry::~CWriteableJavaRegistryEntry |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 EXPORT_C CWriteableJavaRegistryEntry::~CWriteableJavaRegistryEntry() |
|
33 { |
|
34 } |
|
35 |
|
36 // --------------------------------------------------------------------------- |
|
37 // CWriteableJavaRegistryEntry::Uid |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 EXPORT_C TUid CWriteableJavaRegistryEntry::Uid() const |
|
41 { |
|
42 return TUid::Null(); |
|
43 } |
|
44 |
|
45 // --------------------------------------------------------------------------- |
|
46 // CWriteableJavaRegistryEntry::Name |
|
47 // --------------------------------------------------------------------------- |
|
48 // |
|
49 EXPORT_C const TDesC& CWriteableJavaRegistryEntry::Name() const |
|
50 { |
|
51 return KNullDesC; |
|
52 } |
|
53 |
|
54 // --------------------------------------------------------------------------- |
|
55 // CWriteableJavaRegistryEntry::Type |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 EXPORT_C Java::TJavaRegistryEntryType CWriteableJavaRegistryEntry:: |
|
59 Type() const |
|
60 { |
|
61 return Java::TJavaRegistryEntryType(); |
|
62 } |
|
63 |
|
64 // --------------------------------------------------------------------------- |
|
65 // CWriteableJavaRegistryEntry::Drive |
|
66 // --------------------------------------------------------------------------- |
|
67 // |
|
68 EXPORT_C TDriveNumber CWriteableJavaRegistryEntry::Drive() const |
|
69 { |
|
70 return EDriveC; |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------------------------- |
|
74 // CWriteableJavaRegistryEntry::NumberOfCertificateChains |
|
75 // --------------------------------------------------------------------------- |
|
76 // |
|
77 EXPORT_C TInt CWriteableJavaRegistryEntry::NumberOfCertificateChains() const |
|
78 { |
|
79 return 0; |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------------------------- |
|
83 // CWriteableJavaRegistryEntry::CertificateChain |
|
84 // --------------------------------------------------------------------------- |
|
85 // |
|
86 EXPORT_C const TDesC8& CWriteableJavaRegistryEntry:: |
|
87 CertificateChain(TInt /* aIndex */) const |
|
88 { |
|
89 return KNullDesC8; |
|
90 } |
|
91 |
|
92 // --------------------------------------------------------------------------- |
|
93 // CWriteableJavaRegistryEntry::DrmContentId |
|
94 // --------------------------------------------------------------------------- |
|
95 // |
|
96 EXPORT_C const TDesC& CWriteableJavaRegistryEntry::DrmContentId() const |
|
97 { |
|
98 return KNullDesC; |
|
99 } |
|
100 |
|
101 // --------------------------------------------------------------------------- |
|
102 // CWriteableJavaRegistryEntry::SetNameL |
|
103 // --------------------------------------------------------------------------- |
|
104 // |
|
105 EXPORT_C void CWriteableJavaRegistryEntry::SetNameL(const TDesC& /* aName */) |
|
106 { |
|
107 User::Leave(KErrNotSupported); |
|
108 } |
|
109 |
|
110 // --------------------------------------------------------------------------- |
|
111 // CWriteableJavaRegistryEntry::SetTypeL |
|
112 // --------------------------------------------------------------------------- |
|
113 // |
|
114 EXPORT_C void CWriteableJavaRegistryEntry:: |
|
115 SetTypeL(Java::TJavaRegistryEntryType /* aType */) |
|
116 { |
|
117 User::Leave(KErrNotSupported); |
|
118 } |
|
119 |
|
120 // --------------------------------------------------------------------------- |
|
121 // CWriteableJavaRegistryEntry::SetDriveL |
|
122 // --------------------------------------------------------------------------- |
|
123 // |
|
124 EXPORT_C void CWriteableJavaRegistryEntry:: |
|
125 SetDriveL(const TDriveNumber& /* aDrive */) |
|
126 { |
|
127 User::Leave(KErrNotSupported); |
|
128 } |
|
129 |
|
130 // --------------------------------------------------------------------------- |
|
131 // CWriteableJavaRegistryEntry::AddCertificateChainL |
|
132 // --------------------------------------------------------------------------- |
|
133 // |
|
134 EXPORT_C void CWriteableJavaRegistryEntry:: |
|
135 AddCertificateChainL(const TDesC8& /* aChain */) |
|
136 { |
|
137 User::Leave(KErrNotSupported); |
|
138 } |
|
139 |
|
140 // --------------------------------------------------------------------------- |
|
141 // CWriteableJavaRegistryEntry::SetDrmContentIdL |
|
142 // --------------------------------------------------------------------------- |
|
143 // |
|
144 EXPORT_C void CWriteableJavaRegistryEntry:: |
|
145 SetDrmContentIdL(const TDesC& /* aDrmConte ntId */) |
|
146 { |
|
147 User::Leave(KErrNotSupported); |
|
148 } |
|
149 |
|
150 // --------------------------------------------------------------------------- |
|
151 // CWriteableJavaRegistryEntry::Property |
|
152 // --------------------------------------------------------------------------- |
|
153 // |
|
154 EXPORT_C const CJavaProperty* CWriteableJavaRegistryEntry:: |
|
155 Property(TInt32 /* aId */) const |
|
156 { |
|
157 return NULL; |
|
158 } |
|
159 |
|
160 // --------------------------------------------------------------------------- |
|
161 // CWriteableJavaRegistryEntry::SetPropertyL |
|
162 // Takes ownership of aProperty |
|
163 // --------------------------------------------------------------------------- |
|
164 // |
|
165 EXPORT_C void CWriteableJavaRegistryEntry:: |
|
166 SetPropertyL(CJavaProperty* /* aProperty */) |
|
167 { |
|
168 User::Leave(KErrNotSupported); |
|
169 } |
|
170 |
|
171 // --------------------------------------------------------------------------- |
|
172 // CWriteableJavaRegistryEntry::SetPropertyL |
|
173 // --------------------------------------------------------------------------- |
|
174 // |
|
175 EXPORT_C void CWriteableJavaRegistryEntry:: |
|
176 SetPropertyL(TInt32 /* aId */, const TDesC& /* aValue */) |
|
177 { |
|
178 User::Leave(KErrNotSupported); |
|
179 } |
|
180 |
|
181 // --------------------------------------------------------------------------- |
|
182 // CWriteableJavaRegistryEntry::CWriteableJavaRegistryEntry |
|
183 // --------------------------------------------------------------------------- |
|
184 // |
|
185 EXPORT_C CWriteableJavaRegistryEntry:: |
|
186 CWriteableJavaRegistryEntry(const TUid& /* aUid */) |
|
187 { |
|
188 } |
|
189 |
|
190 // --------------------------------------------------------------------------- |
|
191 // CWriteableJavaRegistryEntry::ConstructL |
|
192 // --------------------------------------------------------------------------- |
|
193 // |
|
194 EXPORT_C void CWriteableJavaRegistryEntry:: |
|
195 ConstructL(Java::TJavaRegistryEntryType /* aType */) |
|
196 { |
|
197 User::Leave(KErrNotSupported); |
|
198 } |
|
199 |
|
200 |
|
201 // --------------------------------------------------------------------------- |
|
202 // CWriteableJavaRegistryEntry::IntegerProperty |
|
203 // --------------------------------------------------------------------------- |
|
204 // |
|
205 EXPORT_C TInt32 CWriteableJavaRegistryEntry:: |
|
206 IntegerProperty(TInt32 /* aId */, TInt32 /* aDefault */) const |
|
207 { |
|
208 return 0; |
|
209 } |
|
210 |
|
211 // --------------------------------------------------------------------------- |
|
212 // CWriteableJavaRegistryEntry::BooleanProperty |
|
213 // --------------------------------------------------------------------------- |
|
214 // |
|
215 EXPORT_C TBool CWriteableJavaRegistryEntry:: |
|
216 BooleanProperty(TInt32 /* aId */, TBool /* aDefault */) const |
|
217 { |
|
218 return EFalse; |
|
219 } |
|
220 |
|
221 |
|
222 // --------------------------------------------------------------------------- |
|
223 // CWriteableJavaRegistryEntry::SetBooleanPropertyL |
|
224 // --------------------------------------------------------------------------- |
|
225 // |
|
226 EXPORT_C void CWriteableJavaRegistryEntry:: |
|
227 SetBooleanPropertyL(TInt32 /* aId */, TBool /* aBoolValue */) |
|
228 { |
|
229 User::Leave(KErrNotSupported); |
|
230 } |
|
231 |
|
232 // --------------------------------------------------------------------------- |
|
233 // CWriteableJavaRegistryEntry::SetDescriptorPropertyL |
|
234 // --------------------------------------------------------------------------- |
|
235 // |
|
236 EXPORT_C void CWriteableJavaRegistryEntry:: |
|
237 SetDescriptorPropertyL(TInt32 /* aId */, const TDesC& /* aDescValue */) |
|
238 { |
|
239 User::Leave(KErrNotSupported); |
|
240 } |
|
241 |
|
242 // --------------------------------------------------------------------------- |
|
243 // CWriteableJavaRegistryEntry::SetIntegerPropertyL |
|
244 // --------------------------------------------------------------------------- |
|
245 // |
|
246 EXPORT_C void CWriteableJavaRegistryEntry:: |
|
247 SetIntegerPropertyL(TInt32 /* aId */, TInt32 /* aIntValue */) |
|
248 { |
|
249 User::Leave(KErrNotSupported); |
|
250 } |
|
251 |
|
252 // --------------------------------------------------------------------------- |
|
253 // CWriteableJavaRegistryEntry::DeleteProperty |
|
254 // --------------------------------------------------------------------------- |
|
255 // |
|
256 EXPORT_C void CWriteableJavaRegistryEntry::DeleteProperty(TInt /* aIndex */) |
|
257 { |
|
258 } |
|
259 |
|
260 // --------------------------------------------------------------------------- |
|
261 // CWriteableJavaRegistryEntry::GetPropertyIndex |
|
262 // --------------------------------------------------------------------------- |
|
263 // |
|
264 EXPORT_C TInt CWriteableJavaRegistryEntry:: |
|
265 GetPropertyIndex(TInt32 /* aId */) const |
|
266 { |
|
267 return -1; |
|
268 } |
|
269 |
|
270 // --------------------------------------------------------------------------- |
|
271 // CWriteableJavaRegistryEntry::AttributeL |
|
272 // --------------------------------------------------------------------------- |
|
273 // |
|
274 EXPORT_C const MJavaAttribute* CWriteableJavaRegistryEntry:: |
|
275 AttributeL(const TDesC& /* aName */) const |
|
276 { |
|
277 return NULL; |
|
278 } |
|
279 |
|
280 // --------------------------------------------------------------------------- |
|
281 // CWriteableJavaRegistryEntry::AttributesL |
|
282 // --------------------------------------------------------------------------- |
|
283 // |
|
284 EXPORT_C const RPointerArray<MJavaAttribute>& |
|
285 CWriteableJavaRegistryEntry::AttributesL() const |
|
286 { |
|
287 return iAttributes; |
|
288 } |
|
289 |
|
290 // --------------------------------------------------------------------------- |
|
291 // CWriteableJavaRegistryEntry::SerializeAttributesL |
|
292 // --------------------------------------------------------------------------- |
|
293 // |
|
294 EXPORT_C void CWriteableJavaRegistryEntry::SerializeAttributesL() |
|
295 { |
|
296 } |
|