|
1 /* |
|
2 * Copyright (c) 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: Implementation of MsearchFeature |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CSEARCHFEATUREIMP_H |
|
19 #define CSEARCHFEATUREIMP_H |
|
20 |
|
21 #include <searchfeature.h> |
|
22 #include <ximpapiobjbase.h> |
|
23 #include "searchapiobjbase.h" |
|
24 |
|
25 |
|
26 class MXIMPContext; |
|
27 class MXIMPContextInternal; |
|
28 class CSearchObjectFactoryImp; |
|
29 class CSearchImp; |
|
30 |
|
31 /** |
|
32 * MSearchFeature implementation. |
|
33 * |
|
34 * @lib searchmanager.dll |
|
35 */ |
|
36 NONSHARABLE_CLASS( CSearchFeatureImp ):public MSearchFeature, |
|
37 public CXIMPApiObjBase |
|
38 |
|
39 |
|
40 { |
|
41 public: |
|
42 /** The class ID. */ |
|
43 enum { KClassId = IMP_CLSID_CSEARCHFEATUREIMP }; |
|
44 |
|
45 |
|
46 public: |
|
47 |
|
48 /** |
|
49 * Construction :NewL |
|
50 */ |
|
51 IMPORT_C static CSearchFeatureImp* NewL( MXIMPContext* aContext ); |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 virtual ~CSearchFeatureImp(); |
|
56 |
|
57 |
|
58 private: |
|
59 /** |
|
60 * Destructor |
|
61 */ |
|
62 CSearchFeatureImp(); |
|
63 /** |
|
64 * inertnal context setting |
|
65 */ |
|
66 void SetCtxL(MXIMPContext* aContext); |
|
67 /** |
|
68 * constructor |
|
69 */ |
|
70 void ConstructL(MXIMPContext* aContext); |
|
71 |
|
72 |
|
73 public: // From MXIMPBase |
|
74 |
|
75 /** |
|
76 * Implementation of MXIMPBase interface methods |
|
77 * @see MXIMPBase |
|
78 */ |
|
79 XIMPIMP_DECLARE_IF_BASE_METHODS |
|
80 |
|
81 |
|
82 public: //From MSearchFeature |
|
83 /** |
|
84 * |
|
85 * @see MSearchFeature |
|
86 */ |
|
87 |
|
88 MSearchObjectFactory& SearchObjectFactory() const; |
|
89 |
|
90 /** |
|
91 * |
|
92 * @see MSearchFeature |
|
93 */ |
|
94 MSearch& Search() const; |
|
95 |
|
96 |
|
97 |
|
98 private: // data |
|
99 |
|
100 /** |
|
101 * Context for having a connection context server. |
|
102 */ |
|
103 MXIMPContextInternal* iCtxInternal; |
|
104 |
|
105 |
|
106 /** |
|
107 * Object factory sub interface : OWNED |
|
108 */ |
|
109 CSearchObjectFactoryImp* iSearchObjFactory; |
|
110 |
|
111 /** |
|
112 * SERACH sub interface. : OWNED |
|
113 */ |
|
114 CSearchImp* iSearch; |
|
115 }; |
|
116 |
|
117 |
|
118 #endif // CSEARCHFEATUREIMP_H |