|
1 /* |
|
2 * Copyright (c) 2008 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 the License "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 |
|
19 |
|
20 |
|
21 #ifndef MVCXNSCONTENTSEARCHOBSERVER_H |
|
22 #define MVCXNSCONTENTSEARCHOBSERVER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include <e32base.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * MVcxNsContentSearchObserver |
|
32 * |
|
33 * @lib vcxnsuiengine.lib |
|
34 */ |
|
35 class MVcxNsContentSearchObserver |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Start search. |
|
42 * This informs that search can be started. |
|
43 * @param aUseCurrentQuery |
|
44 * ETrue, if IAP has been selected for search |
|
45 * and search can be started again with current query. |
|
46 * EFalse if new search query can be started. |
|
47 * Note: EFalse is always used when search category is opened from |
|
48 * category view and there's no previous search results available. |
|
49 * |
|
50 */ |
|
51 virtual void StartSearchL( TBool aUseCurrentQuery ) = 0; |
|
52 |
|
53 /** |
|
54 * New search started. |
|
55 * This informs that search string has been sent to server and |
|
56 * search prosess has started. |
|
57 * |
|
58 */ |
|
59 virtual void SearchStartedL() = 0; |
|
60 |
|
61 /** |
|
62 * Handle search result. |
|
63 * This informs that search has been finished. |
|
64 * |
|
65 * @param aSucceeded Informs the search result. |
|
66 * ETrue if search has been finished successfully. |
|
67 * EFalse if search has failed. |
|
68 * |
|
69 */ |
|
70 virtual void HandleSearchResultL( TBool aSucceeded ) = 0; |
|
71 |
|
72 }; |
|
73 |
|
74 #endif // MVCXNSCONTENTSEARCHOBSERVER_H |