|
1 /* |
|
2 * Copyright (c) 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 "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 #include <mdeobject.h> |
|
20 |
|
21 #include <mdeproperty.h> |
|
22 #include <mdeobjectdef.h> |
|
23 #include <mdenamespacedef.h> |
|
24 #include <mdesession.h> |
|
25 |
|
26 #include "VcxMyVideosMdsDbTest.h" |
|
27 |
|
28 ////////////////////////////// |
|
29 // // |
|
30 // TMdEObject // |
|
31 // // |
|
32 ////////////////////////////// |
|
33 |
|
34 EXPORT_C TMdEObject::TMdEObject() : |
|
35 iDef( NULL ) |
|
36 { |
|
37 } |
|
38 |
|
39 EXPORT_C TItemId TMdEObject::Id() const |
|
40 { |
|
41 } |
|
42 |
|
43 EXPORT_C const CMdEObjectDef& TMdEObject::DefL() const |
|
44 { |
|
45 } |
|
46 |
|
47 EXPORT_C TBool TMdEObject::Confidential() const |
|
48 { |
|
49 } |
|
50 |
|
51 EXPORT_C TBool TMdEObject::Placeholder() const |
|
52 { |
|
53 } |
|
54 |
|
55 EXPORT_C TBool TMdEObject::Removed() const |
|
56 { |
|
57 } |
|
58 |
|
59 EXPORT_C TBool TMdEObject::NotPresent() const |
|
60 { |
|
61 } |
|
62 |
|
63 TUint32 TMdEObject::RequiredBufferSize() |
|
64 { |
|
65 } |
|
66 |
|
67 void TMdEObject::DeSerializeL(CMdCSerializationBuffer& aBuffer, |
|
68 CMdENamespaceDef& aNamespaceDef) |
|
69 { |
|
70 } |
|
71 |
|
72 ////////////////////////////// |
|
73 // // |
|
74 // CMdEObject // |
|
75 // // |
|
76 ////////////////////////////// |
|
77 |
|
78 CMdEObject* CMdEObject::NewL( CMdEObjectDef& aDef, const TDesC& aUri, TUint32 aMediaId ) |
|
79 { |
|
80 CMdEObject* nev = new CMdEObject(NULL,aMediaId,aDef); |
|
81 return nev; |
|
82 } |
|
83 |
|
84 CMdEObject* CMdEObject::NewLC( CMdEObjectDef& aDef, const TDesC& aUri, TUint32 aMediaId ) |
|
85 { |
|
86 CMdEObject* nev = new CMdEObject(NULL,aMediaId,aDef); |
|
87 CleanupStack::PushL( nev ); |
|
88 return nev; |
|
89 } |
|
90 |
|
91 CMdEObject::CMdEObject(CMdESession* aSession, TItemId aId, CMdEObjectDef& aDef) |
|
92 : CMdEInstanceItem( aSession, aId), iDef( &aDef ) |
|
93 { |
|
94 } |
|
95 |
|
96 void CMdEObject::ConstructL( const TDesC& aUri, TUint32 aMediaId ) |
|
97 { |
|
98 } |
|
99 |
|
100 CMdEObject::~CMdEObject() |
|
101 { |
|
102 delete iProperty; |
|
103 } |
|
104 |
|
105 EXPORT_C CMdEObjectDef& CMdEObject::Def() const |
|
106 { |
|
107 } |
|
108 |
|
109 EXPORT_C void CMdEObject::SetDefL(CMdEObjectDef& aDef) |
|
110 { |
|
111 } |
|
112 |
|
113 EXPORT_C const TDesC& CMdEObject::Uri() const |
|
114 { |
|
115 return KNullDesC(); |
|
116 } |
|
117 |
|
118 EXPORT_C void CMdEObject::SetUriL(const TDesC& aUri) |
|
119 { |
|
120 } |
|
121 |
|
122 EXPORT_C TUint32 CMdEObject::MediaId() const |
|
123 { |
|
124 } |
|
125 |
|
126 EXPORT_C void CMdEObject::SetMediaId(TUint32 aMediaId) |
|
127 { |
|
128 } |
|
129 |
|
130 EXPORT_C TUint32 CMdEObject::UsageCount() const |
|
131 { |
|
132 } |
|
133 |
|
134 EXPORT_C void CMdEObject::Guid( TInt64& aGuidHigh, TInt64& aGuidLow ) const |
|
135 { |
|
136 } |
|
137 |
|
138 EXPORT_C void CMdEObject::SetGuid( const TInt64& aGuidHigh, const TInt64& aGuidLow ) |
|
139 { |
|
140 } |
|
141 |
|
142 |
|
143 EXPORT_C TBool CMdEObject::Confidential() const |
|
144 { |
|
145 } |
|
146 |
|
147 EXPORT_C void CMdEObject::SetConfidential( TBool aValue ) |
|
148 { |
|
149 |
|
150 } |
|
151 |
|
152 EXPORT_C TBool CMdEObject::Placeholder() const |
|
153 { |
|
154 } |
|
155 |
|
156 EXPORT_C void CMdEObject::SetPlaceholder( TBool aValue ) |
|
157 { |
|
158 } |
|
159 |
|
160 void CMdEObject::DoSetUriL(const TDesC& aUri) |
|
161 { |
|
162 } |
|
163 |
|
164 EXPORT_C TInt CMdEObject::PropertyCount() const |
|
165 { |
|
166 } |
|
167 |
|
168 EXPORT_C CMdEProperty& CMdEObject::PropertyL(TInt aIndex) const |
|
169 { |
|
170 } |
|
171 |
|
172 EXPORT_C TInt CMdEObject::PropertyCount(const CMdEPropertyDef& aDef) const |
|
173 { |
|
174 } |
|
175 |
|
176 EXPORT_C TInt CMdEObject::Property(const CMdEPropertyDef& aDef, CMdEProperty*& aProperty, TInt aStartAt) const |
|
177 { |
|
178 if ( test->propertynotdefined ) |
|
179 { |
|
180 return KErrNotFound; |
|
181 } |
|
182 if( !iProperty ) |
|
183 { |
|
184 iProperty = new CMdEProperty(); |
|
185 } |
|
186 |
|
187 if ( test->propertyisnull ) |
|
188 { |
|
189 aProperty = NULL; |
|
190 } |
|
191 } |
|
192 |
|
193 EXPORT_C CMdEProperty& CMdEObject::AddBoolPropertyL(CMdEPropertyDef& aDef, TBool aValue) |
|
194 { |
|
195 |
|
196 } |
|
197 |
|
198 EXPORT_C CMdEProperty& CMdEObject::AddInt8PropertyL(CMdEPropertyDef& aDef, TInt8 aValue) |
|
199 { |
|
200 } |
|
201 |
|
202 EXPORT_C CMdEProperty& CMdEObject::AddUint8PropertyL(CMdEPropertyDef& aDef, TUint8 aValue) |
|
203 { |
|
204 } |
|
205 |
|
206 EXPORT_C CMdEProperty& CMdEObject::AddInt16PropertyL(CMdEPropertyDef& aDef, TInt16 aValue) |
|
207 { |
|
208 } |
|
209 |
|
210 EXPORT_C CMdEProperty& CMdEObject::AddUint16PropertyL(CMdEPropertyDef& aDef, TUint16 aValue) |
|
211 { |
|
212 } |
|
213 |
|
214 EXPORT_C CMdEProperty& CMdEObject::AddInt32PropertyL(CMdEPropertyDef& aDef, TInt32 aValue) |
|
215 { |
|
216 } |
|
217 |
|
218 EXPORT_C CMdEProperty& CMdEObject::AddUint32PropertyL(CMdEPropertyDef& aDef, TUint32 aValue) |
|
219 { |
|
220 } |
|
221 |
|
222 EXPORT_C CMdEProperty& CMdEObject::AddInt64PropertyL(CMdEPropertyDef& aDef, TInt64 aValue) |
|
223 { |
|
224 } |
|
225 |
|
226 EXPORT_C CMdEProperty& CMdEObject::AddReal32PropertyL(CMdEPropertyDef& aDef, TReal32 aValue) |
|
227 { |
|
228 } |
|
229 |
|
230 EXPORT_C CMdEProperty& CMdEObject::AddReal64PropertyL(CMdEPropertyDef& aDef, TReal64 aValue) |
|
231 { |
|
232 } |
|
233 |
|
234 EXPORT_C CMdEProperty& CMdEObject::AddTextPropertyL(CMdEPropertyDef& aDef, const TDesC& aValue) |
|
235 { |
|
236 } |
|
237 |
|
238 EXPORT_C CMdEProperty& CMdEObject::AddTimePropertyL(CMdEPropertyDef& aDef, TTime aValue) |
|
239 { |
|
240 |
|
241 } |
|
242 |
|
243 void CMdEObject::DoAddPropertyL(CMdEProperty& aProperty) |
|
244 { |
|
245 } |
|
246 |
|
247 EXPORT_C void CMdEObject::RemoveProperty(TInt aIndex) |
|
248 { |
|
249 } |
|
250 |
|
251 TInt CMdEObject::CompareProperties(const CMdEProperty& aFirst, const CMdEProperty& aSecond) |
|
252 { |
|
253 } |
|
254 |
|
255 EXPORT_C TInt CMdEObject::FreeTextCount() const |
|
256 { |
|
257 return iFreeTextArray.Count(); |
|
258 } |
|
259 |
|
260 EXPORT_C TPtrC CMdEObject::FreeText(TInt aIndex) const |
|
261 { |
|
262 return *iFreeTextArray[aIndex]; |
|
263 } |
|
264 |
|
265 EXPORT_C TInt CMdEObject::FreeTextIndex(const TDesC& aFreeText) const |
|
266 { |
|
267 } |
|
268 |
|
269 EXPORT_C void CMdEObject::AddFreeTextL(const TDesC& aFreeText) |
|
270 { |
|
271 } |
|
272 |
|
273 TInt CMdEObject::DoAddFreeTextL(const HBufC& aFreeText) |
|
274 { |
|
275 } |
|
276 |
|
277 EXPORT_C void CMdEObject::RemoveFreeText(TInt aIndex) |
|
278 { |
|
279 } |
|
280 |
|
281 TInt CMdEObject::CompareFreeTexts(const HBufC& aFirst, const HBufC& aSecond) |
|
282 { |
|
283 } |
|
284 |
|
285 EXPORT_C void CMdEObject::MovePropertiesL(CMdEObject& aObject) |
|
286 { |
|
287 } |
|
288 |
|
289 |
|
290 TBool CMdEObject::ObjectModified() const |
|
291 { |
|
292 } |
|
293 |
|
294 TBool CMdEObject::FreeTextModified() const |
|
295 { |
|
296 } |
|
297 |
|
298 TBool CMdEObject::PropertyModified() const |
|
299 { |
|
300 } |
|
301 |
|
302 void CMdEObject::AutoLockL() const |
|
303 { |
|
304 } |
|
305 |
|
306 EXPORT_C TBool CMdEObject::OpenForModifications() const |
|
307 { |
|
308 if ( test->mdeobjectopenresult ) |
|
309 { |
|
310 return EFalse; |
|
311 } |
|
312 else |
|
313 { |
|
314 return ETrue; |
|
315 } |
|
316 } |
|
317 |
|
318 void CMdEObject::ClearObject( TBool aClearFlags ) |
|
319 { |
|
320 } |
|
321 |
|
322 void CMdEObject::SetNotOpenForModifications() |
|
323 { |
|
324 } |
|
325 |
|
326 TUint32 CMdEObject::ModifiedPropertiesCount() const |
|
327 { |
|
328 } |
|
329 |
|
330 TUint32 CMdEObject::RequiredBufferSize() const |
|
331 { |
|
332 } |
|
333 |
|
334 TMdCOffset CMdEObject::SerializeL(CMdCSerializationBuffer& aBuffer, TMdCOffset aFreespaceOffset) const |
|
335 { |
|
336 } |
|
337 |
|
338 CMdEObject* CMdEObject::NewL( CMdESession* aSession, CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef ) |
|
339 { |
|
340 } |
|
341 |
|
342 |
|
343 CMdEObject* CMdEObject::NewLC( CMdESession* aSession, CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef ) |
|
344 { |
|
345 } |
|
346 |
|
347 TMdEInstanceType CMdEObject::InstanceType() const |
|
348 { |
|
349 } |
|
350 |