|
57
|
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: Query base class
|
|
|
15 |
*
|
|
|
16 |
*/
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
#include "mdequery.h"
|
|
|
20 |
#include "mdeorderrule.h"
|
|
|
21 |
#include "mdeinstanceitem.h"
|
|
|
22 |
#include "mdelogiccondition.h"
|
|
|
23 |
#include "mdenamespacedef.h"
|
|
|
24 |
|
|
|
25 |
#include "VcxMyVideosMdsDbTest.h"
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
CMdEQuery::CMdEQuery(TQueryType aType, CMdESession& aSession, CMdENamespaceDef& aNamespaceDef)
|
|
|
29 |
: iQueryId( 0 ), iSession(aSession), iNamespaceDef(aNamespaceDef), iType(aType),
|
|
|
30 |
iResultMode(EQueryResultModeItem), iState(EStateNew), iError(KErrNone),
|
|
|
31 |
iObjectResult(NULL), iCountResult(0), iDistinctResults(NULL), iDestroyed(EFalse)
|
|
|
32 |
{
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
CMdEQuery::CMdEQuery()
|
|
|
37 |
: iQueryId( 0 ), iSession(*(CMdESession*)0), iNamespaceDef(*(CMdENamespaceDef*)0), iType((TQueryType)0),
|
|
|
38 |
iResultMode(EQueryResultModeItem), iState(EStateNew), iError(KErrNone),
|
|
|
39 |
iObjectResult(NULL), iCountResult(0), iDistinctResults(NULL), iDestroyed(EFalse)
|
|
|
40 |
{
|
|
|
41 |
}
|
|
|
42 |
|
|
|
43 |
void CMdEQuery::QueryConstructL()
|
|
|
44 |
{
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
CMdEQuery::~CMdEQuery()
|
|
|
49 |
{
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
EXPORT_C TQueryType CMdEQuery::Type() const
|
|
|
54 |
{
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
EXPORT_C CMdENamespaceDef& CMdEQuery::NamespaceDef() const
|
|
|
58 |
{
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
EXPORT_C CMdESession& CMdEQuery::Session() const
|
|
|
62 |
{
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
EXPORT_C CMdELogicCondition& CMdEQuery::Conditions() const
|
|
|
67 |
{
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
EXPORT_C void CMdEQuery::AppendOrderRuleL(const TMdEOrderRule& aRule)
|
|
|
72 |
{
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
EXPORT_C void CMdEQuery::InsertOrderRuleL(const TMdEOrderRule& aRule, TInt aPos)
|
|
|
77 |
{
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
EXPORT_C TInt CMdEQuery::OrderRuleCount() const
|
|
|
82 |
{
|
|
|
83 |
}
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
EXPORT_C void CMdEQuery::RemoveOrderRule(TInt aIndex)
|
|
|
87 |
{
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
EXPORT_C TMdEOrderRule CMdEQuery::OrderRule(TInt aIndex) const
|
|
|
92 |
{
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
EXPORT_C void CMdEQuery::FindL(TUint aMaxCount, TUint aNotifyCount)
|
|
|
97 |
{
|
|
|
98 |
}
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
EXPORT_C void CMdEQuery::Cancel()
|
|
|
102 |
{
|
|
|
103 |
}
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
EXPORT_C TBool CMdEQuery::IsComplete() const
|
|
|
107 |
{
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
EXPORT_C TInt CMdEQuery::Error() const
|
|
|
112 |
{
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
EXPORT_C TInt CMdEQuery::Count() const
|
|
|
117 |
{
|
|
|
118 |
return test->querycountresult;
|
|
|
119 |
}
|
|
|
120 |
|
|
|
121 |
EXPORT_C CMdEItem& CMdEQuery::ResultItem(TInt aIndex) const
|
|
|
122 |
{
|
|
|
123 |
}
|
|
|
124 |
|
|
|
125 |
|
|
|
126 |
EXPORT_C TItemId CMdEQuery::ResultId(TInt aIndex) const
|
|
|
127 |
{
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
EXPORT_C const RArray<TItemId>& CMdEQuery::ResultIds() const
|
|
|
131 |
{
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
EXPORT_C CMdEItem* CMdEQuery::TakeOwnershipOfResult(TInt aIndex)
|
|
|
135 |
{
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
EXPORT_C TBool CMdEQuery::OwnsResult(TInt aIndex)
|
|
|
140 |
{
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
|
|
|
144 |
EXPORT_C CMdEQuery::TState CMdEQuery::State() const
|
|
|
145 |
{
|
|
|
146 |
}
|
|
|
147 |
|
|
|
148 |
void CMdEQuery::DoCancel()
|
|
|
149 |
{
|
|
|
150 |
}
|
|
|
151 |
|
|
|
152 |
void CMdEQuery::SetState(TState aState)
|
|
|
153 |
{
|
|
|
154 |
}
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
void CMdEQuery::AssertInState(TState aState)
|
|
|
158 |
{
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
void CMdEQuery::AssertNotInState(TState aState)
|
|
|
163 |
{
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
void CMdEQuery::NotifyNewResultsL(const RPointerArray<CMdEInstanceItem>& aNewResults)
|
|
|
168 |
{
|
|
|
169 |
}
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
void CMdEQuery::NotifyNewResultsL(const RArray<TItemId>& aNewResults)
|
|
|
173 |
{
|
|
|
174 |
}
|
|
|
175 |
|
|
|
176 |
void CMdEQuery::NotifyNewResultsL( const CDesCArray& aNewResults )
|
|
|
177 |
{
|
|
|
178 |
}
|
|
|
179 |
|
|
|
180 |
void CMdEQuery::NotifyNewResults(TUint32 aResult)
|
|
|
181 |
{
|
|
|
182 |
|
|
|
183 |
}
|
|
|
184 |
|
|
|
185 |
void CMdEQuery::AppendResultsL(const RPointerArray<CMdEInstanceItem>& aNewResults)
|
|
|
186 |
{
|
|
|
187 |
}
|
|
|
188 |
|
|
|
189 |
void CMdEQuery::AppendResultsL(const RArray<TItemId>& aNewResults)
|
|
|
190 |
{
|
|
|
191 |
}
|
|
|
192 |
|
|
|
193 |
void CMdEQuery::AppendResultsL( const CDesCArray& aNewResults )
|
|
|
194 |
{
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
void CMdEQuery::NotifyCompleted(TInt aError)
|
|
|
198 |
{
|
|
|
199 |
}
|
|
|
200 |
|
|
|
201 |
EXPORT_C void CMdEQuery::AddObserverL(MMdEQueryObserver& aObserver)
|
|
|
202 |
{
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
EXPORT_C void CMdEQuery::RemoveObserver(MMdEQueryObserver& aObserver)
|
|
|
206 |
{
|
|
|
207 |
}
|
|
|
208 |
|
|
|
209 |
EXPORT_C void CMdEQuery::SetResultMode( TQueryResultMode aMode )
|
|
|
210 |
{
|
|
|
211 |
}
|
|
|
212 |
|
|
|
213 |
EXPORT_C TQueryResultMode CMdEQuery::ResultMode() const
|
|
|
214 |
{
|
|
|
215 |
}
|
|
|
216 |
EXPORT_C CMdEItem& CMdEQuery::ResultObjectItem() const
|
|
|
217 |
{
|
|
|
218 |
}
|
|
|
219 |
|
|
|
220 |
EXPORT_C TPtrC16 CMdEQuery::ResultDistinctValue(TInt aIndex) const
|
|
|
221 |
{
|
|
|
222 |
}
|
|
|
223 |
|
|
|
224 |
RArray<TMdEOrderRule>& CMdEQuery::OrderRules()
|
|
|
225 |
{
|
|
|
226 |
}
|