|
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 #ifndef ICPIXSEARCHEROBSERVER_ |
|
18 #define ICPIXSEARCHEROBSERVER_ |
|
19 |
|
20 #include "INPSearchDocument.h" |
|
21 |
|
22 |
|
23 struct NPSearchDocumentObject; |
|
24 struct NPSearchTermListObject; |
|
25 |
|
26 /** |
|
27 * MSearchObserver |
|
28 * Mixin class. |
|
29 * Observer which handles search results received from the server. |
|
30 * |
|
31 * This interface represents a JavaScript object provided |
|
32 * by a searcher client. Calling provided methods will invoke |
|
33 * corresponding methods in the JavaScript object. |
|
34 */ |
|
35 class MCPixNPSearcherObserver |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Callback method of ICPixNPSearcher::SearchL |
|
41 * @param aError Description of error, may be NULL |
|
42 */ |
|
43 virtual void HandleSearchResultsL(const TDesC8* aError, TInt aEstimatedResultCount) = 0; |
|
44 |
|
45 /** |
|
46 * Callback method of ICPixNPSearcher::GetDocumentL |
|
47 * @param aError Description of error, may be NULL |
|
48 * @param aDocument Next document, may be NULL |
|
49 */ |
|
50 virtual void HandleDocumentL(const TDesC8* aError, NPSearchDocumentObject* aDocument) = 0; |
|
51 }; |
|
52 |
|
53 #endif /*ICPIXSEARCHEROBSERVER_*/ |