|
1 /* |
|
2 * Copyright (c) 2006-2007 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: This class is the interface class for Search Service Launcher. It launches InDevice Search with a |
|
15 * list of parameters, and goes to the main view or the result view, depending on the starting parameter. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef C_CSEARCHSERVICELAUNCHER_H |
|
25 #define C_CSEARCHSERVICELAUNCHER_H |
|
26 |
|
27 #include <apgtask.h> |
|
28 #include <eikdll.h> |
|
29 #include <w32std.h> |
|
30 #include <AknServerApp.h> |
|
31 |
|
32 // Forward Declarations |
|
33 class CAknLaunchAppService; |
|
34 class CGenericParamList; |
|
35 |
|
36 // |
|
37 const TUid KSrchAppUid={ 0x10282411 }; |
|
38 |
|
39 |
|
40 /** |
|
41 * This class is the interface class for the SearchService Launcher |
|
42 * |
|
43 * |
|
44 * @lib srchaiwprovider.lib |
|
45 */ |
|
46 class MSearchServiceLauncher |
|
47 { |
|
48 public: |
|
49 |
|
50 /** |
|
51 * Launch In-Device-Search with a list of parameters, |
|
52 * and goes to the main view or result view, depends on the starting parameter |
|
53 */ |
|
54 virtual void SearchL( TInt aFunction, const CAiwGenericParamList& aParamList ) = 0; |
|
55 }; |
|
56 |
|
57 |
|
58 /** |
|
59 * This class Launches the search application |
|
60 * The search application is launched embeddedly |
|
61 * |
|
62 * @lib srchaiwprovider.lib |
|
63 */ |
|
64 class CSearchServiceLauncher : public CBase, |
|
65 public MSearchServiceLauncher, |
|
66 public MAknServerAppExitObserver |
|
67 { |
|
68 public: |
|
69 |
|
70 /** |
|
71 * Symbian OS 2 phased constructor. |
|
72 * @param |
|
73 * @return A pointer to the created instance of CSearchServiceLauncher. |
|
74 */ |
|
75 static CSearchServiceLauncher* NewL(); |
|
76 |
|
77 /** |
|
78 * Symbian OS 2 phased constructor. |
|
79 * @param |
|
80 * @return A pointer to the created instance of CSearchServiceLauncher. |
|
81 */ |
|
82 static CSearchServiceLauncher* NewLC(); |
|
83 |
|
84 /** |
|
85 * Destructor |
|
86 */ |
|
87 ~CSearchServiceLauncher(); |
|
88 public: //from the class MSearchServiceLauncher |
|
89 |
|
90 /** |
|
91 * Launch In-Device-Search with a list of parameters, |
|
92 * and goes to the main view or result view, depends on the starting parameter |
|
93 * |
|
94 * @param aFunction |
|
95 * @param aParamList |
|
96 */ |
|
97 void SearchL( TInt aFunction, const CAiwGenericParamList& aParamList ); |
|
98 |
|
99 |
|
100 private: |
|
101 |
|
102 /** |
|
103 * Performs the first phase of two phase construction. |
|
104 */ |
|
105 void ConstructL(); |
|
106 |
|
107 /** |
|
108 * Performs the second phase of two phase construction. |
|
109 */ |
|
110 CSearchServiceLauncher(); |
|
111 |
|
112 private: //Data |
|
113 |
|
114 /** |
|
115 * Launch application service. |
|
116 * Not Own |
|
117 */ |
|
118 CAknLaunchAppService* iLaunchAppService; |
|
119 }; |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 #endif //C_CSEARCHSERVICELAUNCHER_H |