|
1 /* |
|
2 * Copyright (c) 2007-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 "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: oss search features implementation for XIMP Framework |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __COSSPROTOCOLSEARCHFEATURE_H__ |
|
20 #define __COSSPROTOCOLSEARCHFEATURE_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <protocolsearchfeature.h> |
|
25 #include <protocolsearch.h> |
|
26 #include "cossprotocolconnectionmanager.h" |
|
27 |
|
28 |
|
29 class COSSProtocolSearch; |
|
30 |
|
31 /** |
|
32 * COSSProtocolSearchFeature |
|
33 * Provides access to subinterface MProtocolSearch |
|
34 * and sets the search data host |
|
35 * |
|
36 */ |
|
37 |
|
38 class COSSProtocolSearchFeature : public CBase, |
|
39 public MProtocolSearchFeature |
|
40 |
|
41 { |
|
42 |
|
43 public: |
|
44 |
|
45 static COSSProtocolSearchFeature* NewL ( COSSProtocolConnectionManager& aConnMan ); |
|
46 |
|
47 |
|
48 ~COSSProtocolSearchFeature(); |
|
49 |
|
50 private: |
|
51 |
|
52 COSSProtocolSearchFeature(COSSProtocolConnectionManager& aConnMan ); |
|
53 |
|
54 |
|
55 void ConstructL ( COSSProtocolConnectionManager& aConnMan ); |
|
56 |
|
57 public: // from MXIMPBase |
|
58 |
|
59 TAny* GetInterface ( TInt32 aInterfaceId, |
|
60 TIfGetOps aOptions ); |
|
61 |
|
62 const TAny* GetInterface ( TInt32 aInterfaceId, |
|
63 TIfGetOps aOptions ) const; |
|
64 |
|
65 |
|
66 TInt32 GetInterfaceId() const; |
|
67 |
|
68 public : // From MProtocolSearchFeature.for comments,see MProtocolSearchFeature |
|
69 |
|
70 /** |
|
71 * @see MProtocolSearchFeature |
|
72 */ |
|
73 MProtocolSearch& Search(); |
|
74 /** |
|
75 * @see MProtocolSearchFeature |
|
76 */ |
|
77 void SetHost(MProtocolSearchDataHost& aSearchHost ); |
|
78 |
|
79 private : //data members |
|
80 /** |
|
81 * search |
|
82 * owned |
|
83 */ |
|
84 COSSProtocolSearch* iSearch; |
|
85 |
|
86 /** |
|
87 * connection manager |
|
88 * not owned |
|
89 */ |
|
90 COSSProtocolConnectionManager &iConnMan ; |
|
91 }; |
|
92 |
|
93 #endif //__COSSPROTOCOLSEARCHFEATURE_H__ |
|
94 |
|
95 // end of file |