diff -r afe194b6b1cd -r cf5c74390b98 searcher/searchserver/inc/CCPixAbstractSearcher.h --- a/searcher/searchserver/inc/CCPixAbstractSearcher.h Tue Jul 06 15:30:04 2010 +0300 +++ b/searcher/searchserver/inc/CCPixAbstractSearcher.h Wed Aug 18 10:53:26 2010 +0300 @@ -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 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 ConvertBatchDocumentL( cpix_Document** aDocument, TInt count ); + + static RArray docSizeArray; };