1 /* |
|
2 * Copyright (c) 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 protocol search |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef COSSPROTOCOLSEARCH_H__ |
|
19 #define COSSPROTOCOLSEARCH_H__ |
|
20 |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <protocolsearch.h> |
|
24 |
|
25 |
|
26 class MOSSProtocolConnectionManager; |
|
27 |
|
28 |
|
29 /** |
|
30 * COSSProtocolSearch |
|
31 * implementation of MProtocolSearch methods. |
|
32 * these methods will called by search feature plugin |
|
33 */ |
|
34 class COSSProtocolSearch : public CBase, |
|
35 public MProtocolSearch |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 static COSSProtocolSearch* NewL( MOSSProtocolConnectionManager& aConnManager ); |
|
41 |
|
42 ~COSSProtocolSearch(); |
|
43 |
|
44 |
|
45 private: |
|
46 |
|
47 COSSProtocolSearch( MOSSProtocolConnectionManager& aConnManager ); |
|
48 void ConstructL(); |
|
49 |
|
50 public: //from MXIMPBase |
|
51 |
|
52 /** |
|
53 * @see MXIMPBase |
|
54 */ |
|
55 TAny* GetInterface( TInt32 aInterfaceId, |
|
56 TIfGetOps aOptions ); |
|
57 /** |
|
58 * @see MXIMPBase |
|
59 */ |
|
60 const TAny* GetInterface( TInt32 aInterfaceId, |
|
61 TIfGetOps aOptions ) const; |
|
62 /** |
|
63 * @see MXIMPBase |
|
64 */ |
|
65 TInt32 GetInterfaceId() const; |
|
66 |
|
67 public: // From MProtocolSearch |
|
68 |
|
69 /** |
|
70 * @see MProtocolSearch |
|
71 */ |
|
72 void DoSearchL( const MXIMPIdentity& aSearchId, |
|
73 const RPointerArray< MSearchElement >& aObjs, |
|
74 TInt aSearchLimit, |
|
75 TXIMPRequestId aReqId ); |
|
76 /** |
|
77 * @see MProtocolSearch |
|
78 */ |
|
79 void DoGetSearchKeysL( TXIMPRequestId aReqId ); |
|
80 |
|
81 private: // data members |
|
82 /** |
|
83 * Oss Protocol Plugin Connection Manager |
|
84 * Not own. |
|
85 */ |
|
86 MOSSProtocolConnectionManager& iConnMan; |
|
87 |
|
88 }; |
|
89 |
|
90 #endif // COSSPROTOCOLSEARCH_H__ |
|