201 * GetDocumentObjectL. |
201 * GetDocumentObjectL. |
202 * Get the actual document object prepared by the asynchronous GetDocument request. |
202 * Get the actual document object prepared by the asynchronous GetDocument request. |
203 * @return The document object. Ownership is transferred to the caller |
203 * @return The document object. Ownership is transferred to the caller |
204 */ |
204 */ |
205 IMPORT_C CSearchDocument* GetDocumentObjectL(); |
205 IMPORT_C CSearchDocument* GetDocumentObjectL(); |
|
206 |
|
207 /** |
|
208 * GetBatchDocument. Synchronous version. |
|
209 * Gets a list of document from the search results. |
|
210 */ |
|
211 IMPORT_C CSearchDocument** GetBatchDocumentL(TInt aIndex, TInt& aReturnDoc, TInt aCount); |
|
212 |
|
213 /** |
|
214 * GetBatchDocument. Asynchronous version. |
|
215 * Prepares a list of document from the search results. After this request |
|
216 * complets, document can be read by using GetBatchDocumentObjectL. |
|
217 * @param aStatus The TRequestStatus object to be used for async comms. |
|
218 */ |
|
219 IMPORT_C void GetBatchDocument(TInt aIndex, TRequestStatus& aStatus, TInt aCount); |
|
220 |
|
221 /** |
|
222 * GetBatchDocumentObjectL. |
|
223 * Get the actual Batch document object prepared by the asynchronous GetDocument request. |
|
224 * @return The document object. Ownership is transferred to the caller |
|
225 * Note: aRetCount will have the count of the documents returned |
|
226 */ |
|
227 IMPORT_C CSearchDocument** GetBatchDocumentObjectL( TInt& aRetCount); |
206 |
228 |
207 /** |
229 /** |
208 * AddL. Synchronous version |
230 * AddL. Synchronous version |
209 * Adds the serialized document to the index |
231 * Adds the serialized document to the index |
210 */ |
232 */ |
284 |
306 |
285 /** |
307 /** |
286 * iDocumentSize, bytes needed for the next document |
308 * iDocumentSize, bytes needed for the next document |
287 */ |
309 */ |
288 TInt iDocumentSize; |
310 TInt iDocumentSize; |
|
311 /** |
|
312 * iDocSizeArray, array of docs sizes |
|
313 */ |
|
314 RArray<TInt> iDocSizeArray; |
289 |
315 |
290 /** |
316 /** |
291 * Package for document size. |
317 * Package for document size. |
292 */ |
318 */ |
293 TPckg<TInt> iDocumentSizePckg; |
319 TPckg<TInt> iDocumentSizePckg; |
|
320 |
|
321 TInt* iSizeList; |
|
322 |
|
323 TInt iReqCount; |
294 |
324 |
295 }; |
325 }; |
296 |
326 |
297 |
327 |
298 #endif // __SEARCHSERVERSESSION_H__ |
328 #endif // __SEARCHSERVERSESSION_H__ |