|
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: Searchdatafeature datahost. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPROTOCOLSEARCHFEATUREDATAHOSTIMP_H |
|
19 #define CPROTOCOLSEARCHFEATUREDATAHOSTIMP_H |
|
20 |
|
21 #include <protocolsearchfeaturedatahost.h> |
|
22 |
|
23 #include "ximpapiobjbase.h" |
|
24 #include "searchapiobjbase.h" |
|
25 #include "searchtypehelpers.h" |
|
26 |
|
27 class MXIMPHost; |
|
28 class MXIMPObjectCollection; |
|
29 |
|
30 |
|
31 /** |
|
32 * Implementation for managing cached Invitation information |
|
33 * |
|
34 * @lib searchprocessor.dll |
|
35 */ |
|
36 class CProtocolSearchFeatureDataHostImp : public CXIMPApiObjBase, |
|
37 public MProtocolSearchFeatureDataHost |
|
38 { |
|
39 public: // Definitions |
|
40 |
|
41 /** The class ID. */ |
|
42 enum { KClassId = IMP_CLSID_CPROTOCOLSEARCHFEATUREDATAHOST }; |
|
43 |
|
44 public: // Construction and destruction |
|
45 |
|
46 /** |
|
47 * Construction :NewL |
|
48 */ |
|
49 IMPORT_C static CProtocolSearchFeatureDataHostImp* NewL( MXIMPHost& aHost ); |
|
50 |
|
51 /** |
|
52 * Destruction |
|
53 */ |
|
54 virtual ~CProtocolSearchFeatureDataHostImp(); |
|
55 |
|
56 private: |
|
57 /** |
|
58 * constructor |
|
59 */ |
|
60 CProtocolSearchFeatureDataHostImp( MXIMPHost& aHost ); |
|
61 /** |
|
62 * 2nd phase constructor |
|
63 */ |
|
64 void ConstructL(); |
|
65 |
|
66 |
|
67 public: // From MXIMPBase |
|
68 |
|
69 /** |
|
70 * Implementation of MXIMPBase interface methods |
|
71 * @see MXIMPBase |
|
72 */ |
|
73 XIMPIMP_DECLARE_IF_BASE_METHODS |
|
74 |
|
75 |
|
76 public: //From MProtocolSearchFeatureDataHost |
|
77 /** |
|
78 * |
|
79 * @see MProtocolSearchFeatureDataHost |
|
80 */ |
|
81 |
|
82 TXIMPRequestId HandleSearchResultsL( MXIMPIdentity* aSearchId, |
|
83 MXIMPObjectCollection* aSearchResults ); |
|
84 |
|
85 /** |
|
86 * |
|
87 * @see MProtocolSearchFeatureDataHost |
|
88 */ |
|
89 TXIMPRequestId HandleSearchKeysL( MXIMPObjectCollection* aSearchKeyInfos ) ; |
|
90 |
|
91 private: // Data |
|
92 |
|
93 /** |
|
94 * Access to host. Not owned |
|
95 */ |
|
96 MXIMPHost& iHost; |
|
97 }; |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 #endif // CPROTOCOLSEARCHFEATUREDATAHOSTIMP_H |
|
103 |