13
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef _CPIXSEARCHER_PVTIMPL_H
|
|
19 |
#define _CPIXSEARCHER_PVTIMPL_H
|
|
20 |
|
|
21 |
#include <e32base.h>
|
|
22 |
#include <QObject>
|
|
23 |
#include <MCPixDatabaseObserver.h>
|
|
24 |
#include <MCPixSearcherObserver.h>
|
|
25 |
#include <RSearchServerSession.h>
|
|
26 |
|
|
27 |
//forward Declarations
|
|
28 |
class CCPixSearcher;
|
|
29 |
class CDocument;
|
|
30 |
class RSearchServerSession;
|
|
31 |
class CpixSearcher;
|
|
32 |
|
|
33 |
class CpixSearcherPrivate : public CBase, //can this be made QObject?
|
|
34 |
public MCPixSearchRequestObserver ,
|
|
35 |
public MCPixNextDocumentRequestObserver,
|
|
36 |
public MCPixOpenDatabaseRequestObserver,
|
|
37 |
public MCPixSetAnalyzerRequestObserver
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
CpixSearcherPrivate(QObject* aParent);
|
|
41 |
void Construct( QString aDefaultSearchField );
|
|
42 |
~CpixSearcherPrivate();
|
|
43 |
|
|
44 |
public :
|
|
45 |
void HandleSearchResultsL(TInt aError, TInt aEstimatedResultCount); //from MCPixSearchRequestObserver
|
|
46 |
void HandleDocumentL(TInt aError, CSearchDocument* aDocument); // from MCPixNextDocumentRequestObserver
|
14
|
47 |
void HandleBatchDocumentL(TInt aError,TInt aRetCount, CSearchDocument** aDocument); // from MCPixNextDocumentRequestObserver
|
13
|
48 |
void HandleOpenDatabaseResultL( TInt aError ); //MCPixOpenDatabaseRequestObserver
|
|
49 |
void HandleSetAnalyzerResultL( TInt aError ); //MCPixSetAnalyzerRequestObserver
|
|
50 |
|
|
51 |
public: //Keep these to avoid wrapper functions.
|
|
52 |
RSearchServerSession iSearchSession; //owned
|
|
53 |
CCPixSearcher* iSearcher; //owned
|
|
54 |
CpixSearcher* iSearchParent; //not owned.
|
|
55 |
};
|
|
56 |
|
|
57 |
#endif //_CPIXSEARCHER_PVTIMPL_H
|