57
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-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: Metadata engine client session implementation*
|
|
15 |
*/
|
|
16 |
|
|
17 |
#include <etel3rdparty.h>
|
|
18 |
#include <e32property.h>
|
|
19 |
|
|
20 |
#include "mdesession.h"
|
|
21 |
#include "mdesessionimpl.h"
|
|
22 |
|
|
23 |
|
|
24 |
#include "mdeobjectdef.h"
|
|
25 |
#include "mdeobjectquery.h"
|
|
26 |
#include "mderelationdef.h"
|
|
27 |
#include "mdeeventdef.h"
|
|
28 |
#include "mdeobject.h"
|
|
29 |
#include "mderelation.h"
|
|
30 |
#include "mdeevent.h"
|
|
31 |
|
|
32 |
#include "mdeobjectdef.h"
|
|
33 |
#include "mdenamespacedef.h"
|
|
34 |
#include "mdedatabuffer.h"
|
|
35 |
#include "mdelogiccondition.h"
|
|
36 |
#include "mdeobjectcondition.h"
|
|
37 |
|
|
38 |
#include "VcxMyVideosMdsDbTest.h"
|
|
39 |
|
|
40 |
|
|
41 |
// for CleanupResetAndDestroyPushL
|
|
42 |
#include <mmf/common/mmfcontrollerpluginresolver.h>
|
|
43 |
|
|
44 |
CMdeSessionStartTimer* CMdeSessionStartTimer::NewL(MMdESessionObserver& aObserver)
|
|
45 |
{
|
|
46 |
CMdeSessionStartTimer* self = new CMdeSessionStartTimer( aObserver );
|
|
47 |
CleanupStack::PushL(self);
|
|
48 |
self->ConstructL();
|
|
49 |
CleanupStack::Pop(self);
|
|
50 |
return self;
|
|
51 |
}
|
|
52 |
|
|
53 |
void CMdeSessionStartTimer::ConstructL()
|
|
54 |
{
|
|
55 |
CTimer::ConstructL();
|
|
56 |
}
|
|
57 |
|
|
58 |
CMdeSessionStartTimer::~CMdeSessionStartTimer()
|
|
59 |
{
|
|
60 |
Cancel();
|
|
61 |
}
|
|
62 |
|
|
63 |
void CMdeSessionStartTimer::RunL()
|
|
64 |
{
|
|
65 |
iObserver.HandleSessionOpened(*(CMdESession*) 0 ,test->mdssessionasyncerror);
|
|
66 |
}
|
|
67 |
|
|
68 |
CMdeSessionStartTimer::CMdeSessionStartTimer(MMdESessionObserver& aObserver)
|
|
69 |
: CTimer( CActive::EPriorityStandard ), iObserver( aObserver )
|
|
70 |
{
|
|
71 |
CActiveScheduler::Add(this);
|
|
72 |
}
|
|
73 |
|
|
74 |
CMdESessionImpl::CMdESessionImpl(MMdESessionObserver& aObserver)
|
|
75 |
: iSessionStartupAO( NULL ), iSessionObserver(&aObserver),
|
|
76 |
iSchemaBuffer( NULL ), iNextQueryId( 0 )
|
|
77 |
{
|
|
78 |
iTimer = CMdeSessionStartTimer::NewL( aObserver );
|
|
79 |
|
|
80 |
iTimer->After( 1000 );
|
|
81 |
}
|
|
82 |
|
|
83 |
CMdESessionImpl::~CMdESessionImpl()
|
|
84 |
{
|
|
85 |
delete iTimer;
|
|
86 |
// No session errors should be sent during deconstruction to avoid possible double deletion
|
|
87 |
iSessionObserver = NULL;
|
|
88 |
|
|
89 |
delete iSchemaBuffer;
|
|
90 |
|
|
91 |
iNotifiers.ResetAndDestroy();
|
|
92 |
iNotifiers.Close();
|
|
93 |
|
|
94 |
|
|
95 |
iSchemaChunk.Close();
|
|
96 |
|
|
97 |
iNamespaceDefs.ResetAndDestroy();
|
|
98 |
iNamespaceDefs.Close();
|
|
99 |
|
|
100 |
delete iSessionStartupAO;
|
|
101 |
}
|
|
102 |
|
|
103 |
void CMdESessionImpl::ConstructL()
|
|
104 |
{
|
|
105 |
}
|
|
106 |
|
|
107 |
void CMdESessionImpl::Close()
|
|
108 |
{
|
|
109 |
}
|
|
110 |
|
|
111 |
TInt CMdESessionImpl::NamespaceDefCount() const
|
|
112 |
{
|
|
113 |
return iNamespaceDefs.Count();
|
|
114 |
}
|
|
115 |
|
|
116 |
CMdENamespaceDef& CMdESessionImpl::NamespaceDefL( TInt aIndex )
|
|
117 |
{
|
|
118 |
return *iNamespaceDefs[aIndex];
|
|
119 |
}
|
|
120 |
|
|
121 |
CMdENamespaceDef& CMdESessionImpl::GetNamespaceDefL( const TDesC& aName )
|
|
122 |
{
|
|
123 |
const TInt KNamespaceCount = iNamespaceDefs.Count();
|
|
124 |
for ( TInt i = 0; i < KNamespaceCount; ++i )
|
|
125 |
{
|
|
126 |
if ( !aName.Compare( iNamespaceDefs[i]->Name() ) )
|
|
127 |
{
|
|
128 |
return NamespaceDefL( i );
|
|
129 |
}
|
|
130 |
}
|
|
131 |
|
|
132 |
User::Leave( KErrNotFound );
|
|
133 |
return NamespaceDefL( -1 ); // never reached
|
|
134 |
}
|
|
135 |
|
|
136 |
CMdENamespaceDef& CMdESessionImpl::GetNamespaceDefL(TDefId aId)
|
|
137 |
{
|
|
138 |
const TInt KNamespaceCount = iNamespaceDefs.Count();
|
|
139 |
for ( TInt i = 0; i < KNamespaceCount; ++i )
|
|
140 |
{
|
|
141 |
if ( iNamespaceDefs[i]->Id() == aId )
|
|
142 |
{
|
|
143 |
return NamespaceDefL( i );
|
|
144 |
}
|
|
145 |
}
|
|
146 |
|
|
147 |
User::Leave( KErrNotFound );
|
|
148 |
return NamespaceDefL( -1 ); // never reached
|
|
149 |
}
|
|
150 |
|
|
151 |
CMdENamespaceDef& CMdESessionImpl::GetDefaultNamespaceDefL()
|
|
152 |
{
|
|
153 |
}
|
|
154 |
|
|
155 |
CMdEObject* CMdESessionImpl::NewObjectL( CMdEObjectDef& aDef, const TDesC& aUri, TUint32 aMediaId )
|
|
156 |
{
|
|
157 |
CMdEObject* object = NewObjectLC( aDef, aUri, aMediaId );
|
|
158 |
CleanupStack::Pop(object);
|
|
159 |
return object;
|
|
160 |
}
|
|
161 |
|
|
162 |
CMdEObject* CMdESessionImpl::NewObjectLC( CMdEObjectDef& aDef, const TDesC& aUri, TUint32 aMediaId )
|
|
163 |
{
|
|
164 |
CMdEObject* object = CMdEObject::NewLC( aDef, aUri, aMediaId );
|
|
165 |
return object;
|
|
166 |
}
|
|
167 |
|
|
168 |
void CMdESessionImpl::CommitObjectL(CMdEObject& aObject)
|
|
169 |
{
|
|
170 |
}
|
|
171 |
|
|
172 |
void CMdESessionImpl::CommitObjectsL(RPointerArray<CMdEObject>& aObjects)
|
|
173 |
{
|
|
174 |
}
|
|
175 |
|
|
176 |
TItemId CMdESessionImpl::CancelObjectL(CMdEObject& aObject)
|
|
177 |
{
|
|
178 |
}
|
|
179 |
|
|
180 |
CMdERelation* CMdESessionImpl::NewRelationLC( CMdERelationDef& aDef, TItemId aLeftObjectId,
|
|
181 |
TItemId aRightObjectId, TInt32 aParameter )
|
|
182 |
{
|
|
183 |
}
|
|
184 |
|
|
185 |
CMdERelation* CMdESessionImpl::NewRelationL( CMdERelationDef& aDef, TItemId aLeftObjectId,
|
|
186 |
TItemId aRightObjectId, TInt32 aParameter )
|
|
187 |
{
|
|
188 |
}
|
|
189 |
|
|
190 |
|
|
191 |
CMdEEvent* CMdESessionImpl::NewEventLC(CMdEEventDef& aDef, TItemId aObjectId, TTime aTime, const TDesC* aSource, const TDesC* aParticipant)
|
|
192 |
{
|
|
193 |
}
|
|
194 |
|
|
195 |
CMdEEvent* CMdESessionImpl::NewEventL(CMdEEventDef& aDef, TItemId aObjectId, TTime aTime, const TDesC* aSource, const TDesC* aParticipant)
|
|
196 |
{
|
|
197 |
}
|
|
198 |
|
|
199 |
void CMdESessionImpl::AddSchemaObserverL(MMdESchemaObserver& aObserver)
|
|
200 |
{
|
|
201 |
}
|
|
202 |
|
|
203 |
|
|
204 |
void CMdESessionImpl::RemoveSchemaObserverL(MMdESchemaObserver& aObserver)
|
|
205 |
{
|
|
206 |
}
|
|
207 |
|
|
208 |
void CMdESessionImpl::NotifySessionOpened(TInt aError)
|
|
209 |
{
|
|
210 |
}
|
|
211 |
|
|
212 |
|
|
213 |
void CMdESessionImpl::NotifyError(TInt aError)
|
|
214 |
{
|
|
215 |
if(iSessionObserver)
|
|
216 |
{
|
|
217 |
iSessionObserver->HandleSessionError(*this, aError);
|
|
218 |
}
|
|
219 |
iSessionState = EMdESessionClosed;
|
|
220 |
}
|
|
221 |
|
|
222 |
void CMdESessionImpl::LoadSchemaL()
|
|
223 |
{
|
|
224 |
DoLoadSchemaL();
|
|
225 |
}
|
|
226 |
|
|
227 |
void CMdESessionImpl::DoLoadSchemaL()
|
|
228 |
{ }
|
|
229 |
|
|
230 |
void CMdESessionImpl::AddRelationDefL( const CMdENamespaceDef &aNamespaceDef, const TDesC &aName )
|
|
231 |
{
|
|
232 |
}
|
|
233 |
|
|
234 |
void CMdESessionImpl::AddEventDefL( const CMdENamespaceDef &aNamespaceDef, const TDesC &aName )
|
|
235 |
{
|
|
236 |
}
|
|
237 |
|
|
238 |
|
|
239 |
CMdEObject* CMdESessionImpl::GetObjectL( const TItemId aId, CMdENamespaceDef* aNamespaceDef )
|
|
240 |
{}
|
|
241 |
|
|
242 |
CMdEObject* CMdESessionImpl::GetFullObjectL( const TItemId aId, CMdENamespaceDef* aNamespaceDef )
|
|
243 |
{
|
|
244 |
}
|
|
245 |
|
|
246 |
CMdEObject* CMdESessionImpl::GetObjectL( const TItemId aId, CMdEObjectDef& aObjectDef )
|
|
247 |
{
|
|
248 |
if( test->mdsoperationleaves )
|
|
249 |
{
|
|
250 |
User::Leave( test->mdsoperationleaves );
|
|
251 |
}
|
|
252 |
if ( test->mdsoperationreturns )
|
|
253 |
{
|
|
254 |
return NULL;
|
|
255 |
}
|
|
256 |
else
|
|
257 |
{
|
|
258 |
CMdEObject* object = CMdEObject::NewL( aObjectDef, KNullDesC(), aId );
|
|
259 |
return object;
|
|
260 |
}
|
|
261 |
}
|
|
262 |
|
|
263 |
CMdEObject* CMdESessionImpl::GetObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdENamespaceDef* aNamespaceDef )
|
|
264 |
{}
|
|
265 |
|
|
266 |
CMdEObject* CMdESessionImpl::GetFullObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdENamespaceDef* aNamespaceDef )
|
|
267 |
{}
|
|
268 |
|
|
269 |
CMdEObject* CMdESessionImpl::GetObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdEObjectDef& aObjectDef )
|
|
270 |
{}
|
|
271 |
|
|
272 |
CMdEObject* CMdESessionImpl::OpenObjectL( const TItemId aId, CMdENamespaceDef* aNamespaceDef )
|
|
273 |
{}
|
|
274 |
|
|
275 |
CMdEObject* CMdESessionImpl::OpenFullObjectL( const TItemId aId, CMdENamespaceDef* aNamespaceDef )
|
|
276 |
{}
|
|
277 |
|
|
278 |
CMdEObject* CMdESessionImpl::OpenObjectL( const TItemId aId, CMdEObjectDef& aObjectDef )
|
|
279 |
{
|
|
280 |
if( test->mdsoperationleaves )
|
|
281 |
{
|
|
282 |
User::Leave( test->mdsoperationleaves );
|
|
283 |
}
|
|
284 |
if ( test->mdsoperationreturns )
|
|
285 |
{
|
|
286 |
return NULL;
|
|
287 |
}
|
|
288 |
else
|
|
289 |
{
|
|
290 |
CMdEObject* object = CMdEObject::NewL( aObjectDef, KNullDesC(), aId );
|
|
291 |
return object;
|
|
292 |
}
|
|
293 |
}
|
|
294 |
|
|
295 |
CMdEObject* CMdESessionImpl::OpenObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdENamespaceDef* aNamespaceDef )
|
|
296 |
{}
|
|
297 |
|
|
298 |
CMdEObject* CMdESessionImpl::OpenFullObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdENamespaceDef* aNamespaceDef )
|
|
299 |
{}
|
|
300 |
|
|
301 |
CMdEObject* CMdESessionImpl::OpenObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdEObjectDef& aObjectDef )
|
|
302 |
{ }
|
|
303 |
|
|
304 |
EXPORT_C CMdEObject* CMdESessionImpl::GetObjectL( const TDesC& aUri, CMdENamespaceDef* aNamespaceDef )
|
|
305 |
{}
|
|
306 |
|
|
307 |
CMdEObject* CMdESessionImpl::GetFullObjectL( const TDesC& aUri, CMdENamespaceDef* aNamespaceDef )
|
|
308 |
{}
|
|
309 |
|
|
310 |
CMdEObject* CMdESessionImpl::GetObjectL( const TDesC& aUri, CMdEObjectDef& aObjectDef )
|
|
311 |
{ }
|
|
312 |
|
|
313 |
|
|
314 |
CMdEObject* CMdESessionImpl::OpenObjectL( const TDesC& aUri, CMdENamespaceDef* aNamespaceDef )
|
|
315 |
{}
|
|
316 |
|
|
317 |
CMdEObject* CMdESessionImpl::OpenFullObjectL( const TDesC& aUri, CMdENamespaceDef* aNamespaceDef )
|
|
318 |
{}
|
|
319 |
|
|
320 |
CMdEObject* CMdESessionImpl::OpenObjectL( const TDesC& aUri, CMdEObjectDef& aObjectDef )
|
|
321 |
{
|
|
322 |
CMdEObject* object = CMdEObject::NewLC( aObjectDef, aUri, 0 );
|
|
323 |
return object;
|
|
324 |
}
|
|
325 |
|
|
326 |
void CMdESessionImpl::CheckObjectL( TMdEObject& aObject, const TDesC& aUri,
|
|
327 |
CMdENamespaceDef* aNamespaceDef )
|
|
328 |
{}
|
|
329 |
|
|
330 |
void CMdESessionImpl::CheckObjectL( TMdEObject& aObject, TItemId aId,
|
|
331 |
CMdENamespaceDef* aNamespaceDef )
|
|
332 |
{}
|
|
333 |
|
|
334 |
void CMdESessionImpl::CheckObjectL( RArray<TMdEObject>& aObjects,
|
|
335 |
const RArray<TItemId>& aIds, CMdENamespaceDef* aNamespaceDef )
|
|
336 |
{}
|
|
337 |
|
|
338 |
CMdERelation* CMdESessionImpl::GetRelationL(TItemId aId, CMdENamespaceDef* aNamespaceDef)
|
|
339 |
{ }
|
|
340 |
|
|
341 |
|
|
342 |
CMdEEvent* CMdESessionImpl::GetEventL(TItemId aId,
|
|
343 |
CMdENamespaceDef* aNamespaceDef)
|
|
344 |
{}
|
|
345 |
CMdCSerializationBuffer* CMdESessionImpl::RemoveCommonL(
|
|
346 |
CMdENamespaceDef& aNamespaceDef, const RArray<TItemId>* aObjects,
|
|
347 |
const RArray<TItemId>* aEvents, const RArray<TItemId>* aRelations )
|
|
348 |
{}
|
|
349 |
|
|
350 |
CMdCSerializationBuffer* CMdESessionImpl::RemoveCommonL(
|
|
351 |
CMdENamespaceDef& aNamespaceDef,
|
|
352 |
const RPointerArray<TDesC16>* aObjects,
|
|
353 |
const RArray<TItemId>* aEvents, const RArray<TItemId>* aRelations )
|
|
354 |
{
|
|
355 |
}
|
|
356 |
|
|
357 |
TInt CMdESessionImpl::DeserializeIdsL( RMdEDataBuffer& aSerializedItemIds,
|
|
358 |
RArray<TItemId>* aResultObjects, RArray<TItemId>* aResultEvents,
|
|
359 |
RArray<TItemId>* aResultRelations )
|
|
360 |
{}
|
|
361 |
|
|
362 |
TItemId CMdESessionImpl::RemoveObjectL( TItemId aId,
|
|
363 |
CMdENamespaceDef* aNamespaceDef )
|
|
364 |
{
|
|
365 |
if ( test->mdsoperationleaves )
|
|
366 |
{
|
|
367 |
User::Leave( test->mdsoperationleaves );
|
|
368 |
}
|
|
369 |
else if ( test->mdsoperationreturns )
|
|
370 |
{
|
|
371 |
return 0;
|
|
372 |
}
|
|
373 |
else
|
|
374 |
{
|
|
375 |
return 1;
|
|
376 |
}
|
|
377 |
}
|
|
378 |
|
|
379 |
TItemId CMdESessionImpl::RemoveObjectL( const TDesC& aUri,
|
|
380 |
CMdENamespaceDef* aNamespaceDef )
|
|
381 |
{ }
|
|
382 |
|
|
383 |
TInt CMdESessionImpl::RemoveObjectsL( const RArray<TItemId>& aId,
|
|
384 |
RArray<TItemId>& aResult, CMdENamespaceDef* aNamespaceDef )
|
|
385 |
{}
|
|
386 |
|
|
387 |
TInt CMdESessionImpl::RemoveObjectsL( const RPointerArray<TDesC>& aUri,
|
|
388 |
RArray<TItemId>& aResult, CMdENamespaceDef* aNamespaceDef )
|
|
389 |
{}
|
|
390 |
|
|
391 |
void CMdESessionImpl::RemoveObjectsAsyncL(
|
|
392 |
const RArray<TItemId>& aId, TRequestStatus& aStatus,
|
|
393 |
RMdEDataBuffer& aSerializedObjectIds,
|
|
394 |
CMdENamespaceDef* aNamespaceDef )
|
|
395 |
{}
|
|
396 |
|
|
397 |
void CMdESessionImpl::RemoveObjectsAsyncL(
|
|
398 |
const RPointerArray<TDesC>& aUri, TRequestStatus& aStatus,
|
|
399 |
RMdEDataBuffer& aSerializedObjectIds,
|
|
400 |
CMdENamespaceDef* aNamespaceDef )
|
|
401 |
{}
|
|
402 |
|
|
403 |
TItemId CMdESessionImpl::RemoveRelationL(TItemId aId,
|
|
404 |
CMdENamespaceDef* aNamespaceDef)
|
|
405 |
{}
|
|
406 |
|
|
407 |
TInt CMdESessionImpl::RemoveRelationsL(const RArray<TItemId>& aId,
|
|
408 |
RArray<TItemId>& aSuccessful, CMdENamespaceDef* aNamespaceDef)
|
|
409 |
{}
|
|
410 |
|
|
411 |
void CMdESessionImpl::RemoveRelationsAsyncL(
|
|
412 |
const RArray<TItemId>& aId, TRequestStatus& aStatus,
|
|
413 |
RMdEDataBuffer& aSerializedRelationIds,
|
|
414 |
CMdENamespaceDef* aNamespaceDef)
|
|
415 |
{}
|
|
416 |
|
|
417 |
/**
|
|
418 |
* Add methods
|
|
419 |
*/
|
|
420 |
TItemId CMdESessionImpl::AddItemL( CMdEInstanceItem& aItem )
|
|
421 |
{}
|
|
422 |
|
|
423 |
CMdCSerializationBuffer* CMdESessionImpl::SerializeItemsL(
|
|
424 |
RPointerArray<CMdEInstanceItem>& aItems )
|
|
425 |
{ }
|
|
426 |
|
|
427 |
void CMdESessionImpl::DeserializeQueryResultL(
|
|
428 |
CMdCSerializationBuffer& aBuffer,
|
|
429 |
RPointerArray<CMdEInstanceItem>& aItems )
|
|
430 |
{}
|
|
431 |
|
|
432 |
TItemId CMdESessionImpl::AddObjectL( CMdEObject& aObject )
|
|
433 |
{
|
|
434 |
if( test->mdsoperationleaves )
|
|
435 |
{
|
|
436 |
User::Leave( test->mdsoperationleaves );
|
|
437 |
}
|
|
438 |
if ( test->mdsoperationreturns )
|
|
439 |
{
|
|
440 |
return 0;
|
|
441 |
}
|
|
442 |
else
|
|
443 |
{
|
|
444 |
return 1;
|
|
445 |
}
|
|
446 |
}
|
|
447 |
|
|
448 |
TInt CMdESessionImpl::AddObjectsL( RPointerArray<CMdEObject>& aObjects )
|
|
449 |
{
|
|
450 |
}
|
|
451 |
|
|
452 |
TItemId CMdESessionImpl::AddRelationL( CMdERelation& aRelation )
|
|
453 |
{
|
|
454 |
}
|
|
455 |
|
|
456 |
TItemId CMdESessionImpl::UpdateRelationL( CMdERelation& aRelation )
|
|
457 |
{
|
|
458 |
}
|
|
459 |
|
|
460 |
TInt CMdESessionImpl::AddItemsL( RPointerArray<CMdEInstanceItem>& aItems )
|
|
461 |
{
|
|
462 |
}
|
|
463 |
|
|
464 |
void CMdESessionImpl::AddItemsAsyncL(
|
|
465 |
RPointerArray<CMdEInstanceItem>& aItems, TRequestStatus& aStatus,
|
|
466 |
RMdEDataBuffer& aSerializedItemIds )
|
|
467 |
{
|
|
468 |
}
|
|
469 |
|
|
470 |
TInt CMdESessionImpl::UpdateItemsL( RPointerArray<CMdEInstanceItem>& aItems )
|
|
471 |
{ }
|
|
472 |
void CMdESessionImpl::UpdateItemsAsyncL(
|
|
473 |
RPointerArray<CMdEInstanceItem>& aItems, TRequestStatus& aStatus,
|
|
474 |
RMdEDataBuffer& aSerializedItemIds )
|
|
475 |
{
|
|
476 |
|
|
477 |
}
|
|
478 |
|
|
479 |
TInt CMdESessionImpl::DeserializeItemsL( RMdEDataBuffer& aSerializedItems,
|
|
480 |
RPointerArray<CMdEInstanceItem>& aItems )
|
|
481 |
{
|
|
482 |
}
|
|
483 |
|
|
484 |
TItemId CMdESessionImpl::AddEventL( CMdEEvent& aEvent )
|
|
485 |
{
|
|
486 |
}
|
|
487 |
|
|
488 |
TItemId CMdESessionImpl::RemoveEventL( TItemId aId,
|
|
489 |
CMdENamespaceDef* aNamespaceDef )
|
|
490 |
{
|
|
491 |
}
|
|
492 |
|
|
493 |
TInt CMdESessionImpl::RemoveEventsL( const RArray<TItemId>& aId,
|
|
494 |
RArray<TItemId>& aSuccessful, CMdENamespaceDef* aNamespaceDef )
|
|
495 |
{
|
|
496 |
}
|
|
497 |
|
|
498 |
void CMdESessionImpl::RemoveEventsAsyncL(
|
|
499 |
const RArray<TItemId>& aId, TRequestStatus& aStatus,
|
|
500 |
RMdEDataBuffer& aSerializedEventIds,
|
|
501 |
CMdENamespaceDef* aNamespaceDef )
|
|
502 |
{
|
|
503 |
}
|
|
504 |
|
|
505 |
|
|
506 |
// Query
|
|
507 |
|
|
508 |
CMdEObjectQuery* CMdESessionImpl::NewObjectQueryL(
|
|
509 |
CMdENamespaceDef& aNamespaceDef, CMdEObjectDef& aObjectDef,
|
|
510 |
MMdEQueryObserver* aObserver)
|
|
511 |
{
|
|
512 |
return new CMdEObjectQuery();
|
|
513 |
}
|
|
514 |
|
|
515 |
CMdEObjectQuery* CMdESessionImpl::NewObjectQueryL(
|
|
516 |
CMdEObjectDef& aObjectDef, RPointerArray<CMdEObjectDef>* aObjectDefs,
|
|
517 |
MMdEQueryObserver* aObserver)
|
|
518 |
{
|
|
519 |
}
|
|
520 |
|
|
521 |
CMdERelationQuery* CMdESessionImpl::NewRelationQueryL(
|
|
522 |
CMdENamespaceDef& aNamespaceDef, MMdEQueryObserver* aObserver)
|
|
523 |
{}
|
|
524 |
CMdEEventQuery* CMdESessionImpl::NewEventQueryL(
|
|
525 |
CMdENamespaceDef& aNamespaceDef, MMdEQueryObserver* aObserver)
|
|
526 |
{}
|
|
527 |
void CMdESessionImpl::AddObjectObserverL( MMdEObjectObserver& aObserver,
|
|
528 |
CMdELogicCondition* aCondition,
|
|
529 |
TUint32 aNotificationType,
|
|
530 |
CMdENamespaceDef* aNamespaceDef )
|
|
531 |
{}
|
|
532 |
void CMdESessionImpl::AddObjectObserverWithUriL( MMdEObjectObserverWithUri& aObserver,
|
|
533 |
CMdELogicCondition* aCondition,
|
|
534 |
TUint32 aNotificationType,
|
|
535 |
CMdENamespaceDef* aNamespaceDef )
|
|
536 |
{}
|
|
537 |
void CMdESessionImpl::AddObjectPresentObserverL(
|
|
538 |
MMdEObjectPresentObserver& aObserver)
|
|
539 |
{}
|
|
540 |
void CMdESessionImpl::RemoveObjectObserverWithUriL(
|
|
541 |
MMdEObjectObserverWithUri& aObserver, CMdENamespaceDef* aNamespaceDef )
|
|
542 |
{}
|
|
543 |
void CMdESessionImpl::AddRelationObserverL( MMdERelationObserver& aObserver,
|
|
544 |
CMdECondition* aCondition,
|
|
545 |
TUint32 aNotificationType,
|
|
546 |
CMdENamespaceDef* aNamespaceDef )
|
|
547 |
{}
|
|
548 |
void CMdESessionImpl::AddRelationItemObserverL(
|
|
549 |
MMdERelationItemObserver& aObserver, CMdECondition* aCondition,
|
|
550 |
TUint32 aNotificationType, CMdENamespaceDef* aNamespaceDef )
|
|
551 |
{}
|
|
552 |
void CMdESessionImpl::AddRelationPresentObserverL(
|
|
553 |
MMdERelationPresentObserver& aObserver)
|
|
554 |
{}
|
|
555 |
void CMdESessionImpl::AddEventObserverL( MMdEEventObserver& aObserver,
|
|
556 |
CMdECondition* aCondition,
|
|
557 |
TUint32 aNotificationType,
|
|
558 |
CMdENamespaceDef* aNamespaceDef )
|
|
559 |
{}
|
|
560 |
void CMdESessionImpl::RemoveObjectObserverL(
|
|
561 |
MMdEObjectObserver& aObserver, CMdENamespaceDef* aNamespaceDef )
|
|
562 |
{}
|
|
563 |
void CMdESessionImpl::RemoveObjectPresentObserverL(
|
|
564 |
MMdEObjectPresentObserver& aObserver)
|
|
565 |
{}
|
|
566 |
void CMdESessionImpl::RemoveRelationObserverL(
|
|
567 |
MMdERelationObserver& aObserver, CMdENamespaceDef* aNamespaceDef )
|
|
568 |
{}
|
|
569 |
void CMdESessionImpl::RemoveRelationItemObserverL(
|
|
570 |
MMdERelationItemObserver& aObserver, CMdENamespaceDef* aNamespaceDef )
|
|
571 |
{}
|
|
572 |
void CMdESessionImpl::RemoveRelationPresentObserverL(
|
|
573 |
MMdERelationPresentObserver& aObserver)
|
|
574 |
{}
|
|
575 |
void CMdESessionImpl::RemoveEventObserverL(
|
|
576 |
MMdEEventObserver& aObserver, CMdENamespaceDef* aNamespaceDef )
|
|
577 |
{}
|
|
578 |
TInt CMdESessionImpl::FindNotifier( TUint32 aNotifyType, TAny* aObserver,
|
|
579 |
CMdENamespaceDef& aNamespaceDef )
|
|
580 |
{}
|
|
581 |
void CMdESessionImpl::NotifierInError( CMdENotifierAO* aNotifier )
|
|
582 |
{}
|
|
583 |
void CMdESessionImpl::ImportSchemaL( const TDesC& aFileName )
|
|
584 |
{}
|
|
585 |
TInt CMdESessionImpl::ImportMetadataL( const TDesC& aFileName )
|
|
586 |
{}
|
|
587 |
void CMdESessionImpl::ImportMetadata( const TDesC& aFileName,
|
|
588 |
TPckgBuf<TInt>& aResult, TRequestStatus& aStatus )
|
|
589 |
{}
|
|
590 |
CMdCSerializationBuffer* CMdESessionImpl::ExportCommonL(
|
|
591 |
const CMdENamespaceDef* aNamespaceDef,
|
|
592 |
const RPointerArray<CMdEObjectDef>* aObjectDefs,
|
|
593 |
const RPointerArray<CMdERelationDef>* aRelationDefs,
|
|
594 |
const RPointerArray<CMdEEventDef>* aEventDefs )
|
|
595 |
{}
|
|
596 |
void CMdESessionImpl::ExportMetadataL( const TDesC& aFileName,
|
|
597 |
const CMdENamespaceDef* aNamespaceDef,
|
|
598 |
const RPointerArray<CMdEObjectDef>* aObjectDefs,
|
|
599 |
const RPointerArray<CMdERelationDef>* aRelationDefs,
|
|
600 |
const RPointerArray<CMdEEventDef>* aEventDefs )
|
|
601 |
{}
|
|
602 |
|
|
603 |
void CMdESessionImpl::ExportMetadataL( const TDesC& aFileName,
|
|
604 |
TRequestStatus& aStatus, RMdEDataBuffer& aBuffer,
|
|
605 |
const CMdENamespaceDef* aNamespaceDef,
|
|
606 |
const RPointerArray<CMdEObjectDef>* aObjectDefs,
|
|
607 |
const RPointerArray<CMdERelationDef>* aRelationDefs,
|
|
608 |
const RPointerArray<CMdEEventDef>* aEventDefs )
|
|
609 |
{}
|
|
610 |
void CMdESessionImpl::GetSchemaVersionL(
|
|
611 |
TInt& aMajorVersion, TInt& aMinorVersion)
|
|
612 |
{}
|
|
613 |
void CMdESessionImpl::SetObjectToPresentByGuidL(
|
|
614 |
const TInt64& aGuidHigh, const TInt64& aGuidLow )
|
|
615 |
{}
|
|
616 |
void CMdESessionImpl::CheckOpened() const {}
|
|
617 |
void CMdESessionImpl::GetCountL( CMdCSerializationBuffer* aBuffer,
|
|
618 |
TUint32& aResult )
|
|
619 |
{}
|
|
620 |
void CMdESessionImpl::GetItemIdL( CMdCSerializationBuffer* aBuffer,
|
|
621 |
RArray<TItemId>& aIdArray )
|
|
622 |
{}
|
|
623 |
void CMdESessionImpl::GetDistinctValuesL( CMdCSerializationBuffer& aBuffer,
|
|
624 |
CDesCArray& aResults )
|
|
625 |
{}
|
|
626 |
CMdENamespaceDef* CMdESessionImpl::GetNamespaceDefL(
|
|
627 |
CMdENamespaceDef* aNamespaceDef )
|
|
628 |
{}
|