searcher/searchserver/inc/CCPixAbstractSearcher.h
changeset 14 8bd192d47aaa
parent 8 6547bf8ca13a
child 16 2729d20a0010
--- a/searcher/searchserver/inc/CCPixAbstractSearcher.h	Mon Jul 26 12:27:31 2010 +0530
+++ b/searcher/searchserver/inc/CCPixAbstractSearcher.h	Mon Aug 09 10:51:30 2010 +0530
@@ -68,6 +68,20 @@
 	 * @return Document. Ownership is transferred to the caller of this function.
 	 */
 	virtual CSearchDocument* GetDocumentCompleteL() = 0;
+	
+	/**
+	 * Gets list of documents from the current search results.
+	 * @param aObserver Observing object for this asyncronous call
+	 * @param aMessage The requesting message 
+	 * @parma aIndex index of the requested document 
+	 */
+	virtual void GetBatchDocumentL(TInt aIndex, MCPixAsyncronizerObserver* aObserver, const RMessage2& aMessage,  TInt count) = 0;
+	
+	/**
+	 * Complete the previous GetBatchDocumentL
+	 * @return array of Documents. Ownership is transferred to the caller of this function.
+	 */
+	virtual RPointerArray<CSearchDocument> GetBatchDocumentCompleteL() = 0;
 
 	/**
 	 * Creates new database (and destroys existing) if path is given. Otherwise, opens existing database.
@@ -95,7 +109,11 @@
 	
 public: 
 	
-	static CSearchDocument* ConvertDocumentL( cpix_Document* aDocument ); 
+	static CSearchDocument* ConvertDocumentL( cpix_Document* aDocument );
+	
+	static RPointerArray<CSearchDocument> ConvertBatchDocumentL( cpix_Document** aDocument, TInt count ); 
+	
+	static RArray<TInt> docSizeArray;
 
 	};