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: adaptation for open source |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __COSSPROTOCOLPLUGIN_H__ |
|
20 #define __COSSPROTOCOLPLUGIN_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <ximpprotocolpluginbase.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 class MXIMPServiceInfo; |
|
29 |
|
30 class MXIMPContextClientInfo; |
|
31 |
|
32 class COSSProtocolConnection; |
|
33 |
|
34 class CProcessLauncher; |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 /** |
|
40 * OSS protocol Plugin |
|
41 * |
|
42 * OSS plugin is ECOM plugin and shall be loaded by PrFw. |
|
43 * OSS has one or many connections. |
|
44 * @lib ?library |
|
45 * @since S60 v4.0 |
|
46 */ |
|
47 |
|
48 class COSSProtocolPlugin : public CXIMPProtocolPluginBase |
|
49 { |
|
50 |
|
51 public: |
|
52 |
|
53 static COSSProtocolPlugin* NewL(); |
|
54 static COSSProtocolPlugin* NewLC(); |
|
55 |
|
56 ~COSSProtocolPlugin(); |
|
57 |
|
58 private: |
|
59 |
|
60 COSSProtocolPlugin(); |
|
61 void ConstructL(); |
|
62 |
|
63 public: // From MXIMPProtocolPlugin |
|
64 // For comments,see MXIMPProtocolPlugin |
|
65 void PrimeHost ( MXIMPProtocolPluginHost& aHost ); |
|
66 |
|
67 MXIMPProtocolConnection& AcquireConnectionL ( |
|
68 const MXIMPServiceInfo& aServiceInfo, |
|
69 const MXIMPContextClientInfo& aClientCtxInfo ); |
|
70 void ReleaseConnection ( |
|
71 MXIMPProtocolConnection& aConnection ); |
|
72 |
|
73 public: // from MXIMPBase |
|
74 |
|
75 TAny* GetInterface ( |
|
76 TInt32 aInterfaceId, |
|
77 TIfGetOps aOptions ); |
|
78 |
|
79 const TAny* GetInterface ( |
|
80 TInt32 aInterfaceId, |
|
81 TIfGetOps aOptions ) const; |
|
82 |
|
83 TInt32 GetInterfaceId() const; |
|
84 |
|
85 private: // Data |
|
86 /** |
|
87 * Prime host |
|
88 * Not own. |
|
89 */ |
|
90 MXIMPProtocolPluginHost* iHost; |
|
91 /** |
|
92 * protocol connections |
|
93 * Own. |
|
94 */ |
|
95 RPointerArray< COSSProtocolConnection > iConnections; |
|
96 |
|
97 // owned pointer to imp |
|
98 CProcessLauncher *iIsoServerLauncher; |
|
99 |
|
100 |
|
101 }; |
|
102 |
|
103 #endif // __COSSPROTOCOLPLUGIN_H__ |
|