|
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 MSerach |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CSEARCHIMP_H |
|
19 #define CSEARCHIMP_H |
|
20 |
|
21 #include <search.h> |
|
22 #include <ximpobjectcollection.h> |
|
23 #include <ximpapiobjbase.h> |
|
24 |
|
25 #include "searchapiobjbase.h" |
|
26 #include "searchlogutils.h" |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class MXIMPContextInternal; |
|
31 class MSearchElement; |
|
32 |
|
33 /** |
|
34 * MSearch implementation. |
|
35 * |
|
36 * @lib searchmanager.dll |
|
37 */ |
|
38 NONSHARABLE_CLASS( CSearchImp ): public CXIMPApiObjBase,public MSearch |
|
39 { |
|
40 public: |
|
41 /** The class ID. */ |
|
42 enum { KClassId = IMP_CLSID_CSEARCHIMP }; |
|
43 |
|
44 public: |
|
45 /** |
|
46 * Construction :NewL |
|
47 */ |
|
48 static CSearchImp* NewL( MXIMPContextInternal& aContext ); |
|
49 |
|
50 /** |
|
51 * Destructor |
|
52 */ |
|
53 ~CSearchImp(); |
|
54 |
|
55 public: |
|
56 /** |
|
57 * constructor |
|
58 */ |
|
59 CSearchImp( MXIMPContextInternal& aContext ); |
|
60 |
|
61 |
|
62 public: // From MXIMPBase |
|
63 |
|
64 /** |
|
65 * Implementation of MXIMPBase interface methods |
|
66 * @see MXIMPBase |
|
67 */ |
|
68 XIMPIMP_DECLARE_IF_BASE_METHODS |
|
69 |
|
70 /** |
|
71 * |
|
72 * @see MSearch |
|
73 */ |
|
74 TXIMPRequestId SearchL( const MXIMPIdentity& aSearchId, |
|
75 const RPointerArray< MSearchElement >& aObjs, |
|
76 TInt aSearchLimit ) ; |
|
77 /** |
|
78 * |
|
79 * @see MSearch |
|
80 */ |
|
81 TXIMPRequestId GetSearchKeysL() ; |
|
82 |
|
83 private: // data |
|
84 |
|
85 /** |
|
86 * Context session proxy for accessing context server. |
|
87 * Ref. : not owned |
|
88 */ |
|
89 MXIMPContextInternal& iContext; |
|
90 |
|
91 |
|
92 }; |
|
93 |
|
94 |
|
95 #endif // CSEARCHIMP_H |