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 _QCPIXSEARCHER_PVTIMPL_H |
|
19 #define _QCPIXSEARCHER_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 QCPixSearcher; |
|
32 |
|
33 class QCPixSearcherPrivate : public CBase, //can this be made QObject? |
|
34 public MCPixSearchRequestObserver , |
|
35 public MCPixNextDocumentRequestObserver, |
|
36 public MCPixOpenDatabaseRequestObserver, |
|
37 public MCPixSetAnalyzerRequestObserver |
|
38 { |
|
39 public: |
|
40 QCPixSearcherPrivate(QObject* aParent); |
|
41 void Construct( QString aDefaultSearchField ); |
|
42 ~QCPixSearcherPrivate(); |
|
43 |
|
44 public : |
|
45 void HandleSearchResultsL(TInt aError, TInt aEstimatedResultCount); //from MCPixSearchRequestObserver |
|
46 void HandleDocumentL(TInt aError, CSearchDocument* aDocument); // from MCPixNextDocumentRequestObserver |
|
47 void HandleOpenDatabaseResultL( TInt aError ); //MCPixOpenDatabaseRequestObserver |
|
48 void HandleSetAnalyzerResultL( TInt aError ); //MCPixSetAnalyzerRequestObserver |
|
49 |
|
50 public: //Keep these to avoid wrapper functions. |
|
51 RSearchServerSession iSearchSession; //owned |
|
52 CCPixSearcher* iSearcher; //owned |
|
53 QCPixSearcher* iSearchParent; //not owned. |
|
54 }; |
|
55 |
|
56 #endif //_QCPIXSEARCHER_PVTIMPL_H |
|