|
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: Interface for object query |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "mdeobjectquery.h" |
|
20 #include "mdeobject.h" |
|
21 |
|
22 |
|
23 CMdEObjectQuery::CMdEObjectQuery(CMdESession& aSession, CMdENamespaceDef& aNamespaceDef, |
|
24 CMdEObjectDef& aObjectDef, RPointerArray<CMdEObjectDef>* aObjectDefs) |
|
25 : CMdEQuery(EQueryTypeObject, aSession, aNamespaceDef), |
|
26 iObjectDef(aObjectDef), iObjectDefs(aObjectDefs), |
|
27 iFreetextsInResult( ETrue ) |
|
28 { |
|
29 } |
|
30 CMdEObjectQuery::CMdEObjectQuery() |
|
31 : iObjectDef(*(CMdEObjectDef*)NULL), iObjectDefs((RPointerArray<CMdEObjectDef>*)NULL), |
|
32 iFreetextsInResult( ETrue ) |
|
33 { |
|
34 } |
|
35 |
|
36 void CMdEObjectQuery::ObjectQueryConstructL() |
|
37 { |
|
38 } |
|
39 |
|
40 CMdEObjectQuery::~CMdEObjectQuery() |
|
41 { |
|
42 delete iCMdEObject; |
|
43 } |
|
44 |
|
45 EXPORT_C CMdEObject& CMdEObjectQuery::Result(TInt aIndex) const |
|
46 { |
|
47 if ( !iCMdEObject ) |
|
48 { |
|
49 const TPtrC ptr = KNullDesC(); |
|
50 iCMdEObject = CMdEObject::NewL( * ( CMdEObjectDef* )NULL,ptr, 0 ); |
|
51 } |
|
52 |
|
53 return *iCMdEObject; |
|
54 } |
|
55 |
|
56 EXPORT_C CMdEObjectDef& CMdEObjectQuery::ObjectDef() const |
|
57 { |
|
58 } |
|
59 |
|
60 EXPORT_C void CMdEObjectQuery::AddPropertyFilterL(const CMdEPropertyDef* aProperty) |
|
61 { |
|
62 } |
|
63 |
|
64 EXPORT_C void CMdEObjectQuery::ResetPropertyFilter() |
|
65 { |
|
66 } |
|
67 |
|
68 RPointerArray<CMdEPropertyDef>& CMdEObjectQuery::PropertyFilter() |
|
69 { |
|
70 } |
|
71 |
|
72 RPointerArray<CMdEObjectDef>* CMdEObjectQuery::ObjectDefs() const |
|
73 { |
|
74 } |
|
75 |
|
76 void CMdEObjectQuery::DoCancel() |
|
77 { |
|
78 } |