searcher/tsrc/cpixsearchertest/inc/cpixsearchertester.h
changeset 14 8bd192d47aaa
parent 1 6f2c1c46032b
equal deleted inserted replaced
13:fcb2a58c181b 14:8bd192d47aaa
    58 public: // From MCPixOpenDatabaseRequestObserver
    58 public: // From MCPixOpenDatabaseRequestObserver
    59     void HandleOpenDatabaseResultL( TInt aError );
    59     void HandleOpenDatabaseResultL( TInt aError );
    60 
    60 
    61 public: // From MCPixNextDocumentRequestObserver
    61 public: // From MCPixNextDocumentRequestObserver
    62     void HandleDocumentL(TInt aError, CSearchDocument* aDocument);
    62     void HandleDocumentL(TInt aError, CSearchDocument* aDocument);
       
    63     void HandleBatchDocumentL(TInt aError, TInt aReturnCount, CSearchDocument** aDocument);
    63     
    64     
    64 public: // From MAOTestObserver
    65 public: // From MAOTestObserver
    65     void CallCompleted( int i );
    66     void CallCompleted( int i );
    66 
    67 
    67 public:
    68 public:
   114      *  search statemachine.
   115      *  search statemachine.
   115      */
   116      */
   116     void testGetInvalidDocumentAsync();
   117     void testGetInvalidDocumentAsync();
   117     
   118     
   118     TInt testEcerptLenth();
   119     TInt testEcerptLenth();
       
   120     
       
   121     void testgetbatchdoc();
       
   122     
       
   123     void testasyncgetbatchdoc();
       
   124     
   119 private:
   125 private:
   120     CCPixSearcher* iSearcher;
   126     CCPixSearcher* iSearcher;
   121     RSearchServerSession iSession;
   127     RSearchServerSession iSession;
   122     RFs iFs;
   128     RFs iFs;
   123     RFile iFile;
   129     RFile iFile;
   126     TInt iDocumentCount;
   132     TInt iDocumentCount;
   127     CAOTestClass* iMyAOClass;
   133     CAOTestClass* iMyAOClass;
   128     CSearchDocument* iDocument;
   134     CSearchDocument* iDocument;
   129     TBool iHandleDocumentLFunctionCalled; // ETrue if HandleDocumentL called
   135     TBool iHandleDocumentLFunctionCalled; // ETrue if HandleDocumentL called
   130     TBool iHandleSetAnalyzerCalled; // ETrue if HandleSetAnalyzerResultL called
   136     TBool iHandleSetAnalyzerCalled; // ETrue if HandleSetAnalyzerResultL called
       
   137     TInt iretcount;
   131     };
   138     };
   132 
   139 
   133 #endif /* CPIXSEARCHERTESTER_H_ */
   140 #endif /* CPIXSEARCHERTESTER_H_ */