searcher/searchserver/inc/CCPixAbstractSearcher.h
changeset 15 cf5c74390b98
parent 10 afe194b6b1cd
child 16 2729d20a0010
equal deleted inserted replaced
10:afe194b6b1cd 15:cf5c74390b98
    66 	/**
    66 	/**
    67 	 * Complete the previous GetDocumentL
    67 	 * Complete the previous GetDocumentL
    68 	 * @return Document. Ownership is transferred to the caller of this function.
    68 	 * @return Document. Ownership is transferred to the caller of this function.
    69 	 */
    69 	 */
    70 	virtual CSearchDocument* GetDocumentCompleteL() = 0;
    70 	virtual CSearchDocument* GetDocumentCompleteL() = 0;
       
    71 	
       
    72 	/**
       
    73 	 * Gets list of documents from the current search results.
       
    74 	 * @param aObserver Observing object for this asyncronous call
       
    75 	 * @param aMessage The requesting message 
       
    76 	 * @parma aIndex index of the requested document 
       
    77 	 */
       
    78 	virtual void GetBatchDocumentL(TInt aIndex, MCPixAsyncronizerObserver* aObserver, const RMessage2& aMessage,  TInt count) = 0;
       
    79 	
       
    80 	/**
       
    81 	 * Complete the previous GetBatchDocumentL
       
    82 	 * @return array of Documents. Ownership is transferred to the caller of this function.
       
    83 	 */
       
    84 	virtual RPointerArray<CSearchDocument> GetBatchDocumentCompleteL() = 0;
    71 
    85 
    72 	/**
    86 	/**
    73 	 * Creates new database (and destroys existing) if path is given. Otherwise, opens existing database.
    87 	 * Creates new database (and destroys existing) if path is given. Otherwise, opens existing database.
    74 	 * @param aDefaultSearchField Default field to which query results are looked from.
    88 	 * @param aDefaultSearchField Default field to which query results are looked from.
    75 	 * @param aBaseAppClass Application class of this database handle.
    89 	 * @param aBaseAppClass Application class of this database handle.
    93 	 */
   107 	 */
    94 	virtual void SetAnalyzerL(const TDesC& aAnalyzer) = 0; 
   108 	virtual void SetAnalyzerL(const TDesC& aAnalyzer) = 0; 
    95 	
   109 	
    96 public: 
   110 public: 
    97 	
   111 	
    98 	static CSearchDocument* ConvertDocumentL( cpix_Document* aDocument ); 
   112 	static CSearchDocument* ConvertDocumentL( cpix_Document* aDocument );
       
   113 	
       
   114 	static RPointerArray<CSearchDocument> ConvertBatchDocumentL( cpix_Document** aDocument, TInt count ); 
       
   115 	
       
   116 	static RArray<TInt> docSizeArray;
    99 
   117 
   100 	};
   118 	};
   101 
   119 
   102 
   120 
   103 #endif /* CCPIXABSTRACTSEARCHER_H_ */
   121 #endif /* CCPIXABSTRACTSEARCHER_H_ */