|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef SYMBIAN_DEN_APIEXTENSION_H |
|
22 #define SYMBIAN_DEN_APIEXTENSION_H |
|
23 |
|
24 #include <ecom/ecom.h> |
|
25 #include <elements/interfacetable.h> |
|
26 #include <elements/responsemsg.h> |
|
27 #include <elements/sd_std.h> |
|
28 #include <elements/sd_apiextensionclient.h> |
|
29 |
|
30 namespace Den |
|
31 { |
|
32 |
|
33 /** |
|
34 @internalTechnology |
|
35 */ |
|
36 class CExtItfMsgPluginInfo : public CBase |
|
37 { |
|
38 public: |
|
39 IMPORT_C static CExtItfMsgPluginInfo* NewInstanceL(const Meta::STypeId& aTypeId); |
|
40 IMPORT_C ~CExtItfMsgPluginInfo(); |
|
41 |
|
42 virtual const TImplementationProxy* ImplementationProxy() const = 0; |
|
43 virtual TInt ImplementationProxyTableSize() const = 0; |
|
44 |
|
45 private: |
|
46 TUid iDestroyUid; |
|
47 }; |
|
48 |
|
49 |
|
50 /** |
|
51 @internalTechnology |
|
52 */ |
|
53 class MIpcExtensionInterface |
|
54 { |
|
55 public: |
|
56 virtual TInt Open(TUint aClientId) = 0; |
|
57 virtual void Close(TUint aClientId) = 0; |
|
58 virtual Meta::STypeId MsgImplTid() const = 0; |
|
59 }; |
|
60 |
|
61 /** |
|
62 @internalTechnology |
|
63 */ |
|
64 class AIpcExtensionInterfaceBase : public MIpcExtensionInterface |
|
65 { |
|
66 friend class TIpcExtensionRoutingMessageBase; |
|
67 |
|
68 protected: |
|
69 IMPORT_C AIpcExtensionInterfaceBase(); //sets iMsgPluginInfo to NULL |
|
70 virtual ~AIpcExtensionInterfaceBase() |
|
71 { |
|
72 } |
|
73 |
|
74 private: |
|
75 //Only used internally by TIpcExtensionRoutingMessageBase - don't export! |
|
76 void RegisterMessagesL(); |
|
77 void DeregisterMessages(); |
|
78 |
|
79 private: |
|
80 CExtItfMsgPluginInfo* iMsgPluginInfo; |
|
81 }; |
|
82 |
|
83 /** |
|
84 @internalTechnology |
|
85 */ |
|
86 template <TInt32 MSG_IMPL_UID, TInt32 MSG_IMPL_TYPEID = 0> |
|
87 class AIpcExtensionInterface : public AIpcExtensionInterfaceBase |
|
88 { |
|
89 public: |
|
90 enum {EUid = MSG_IMPL_UID}; |
|
91 enum {ETypeId = MSG_IMPL_TYPEID}; |
|
92 |
|
93 protected: |
|
94 inline Meta::STypeId MsgImplTid() const |
|
95 { |
|
96 return Meta::STypeId::CreateSTypeId(MSG_IMPL_UID, MSG_IMPL_TYPEID); |
|
97 } |
|
98 }; |
|
99 |
|
100 } //namespace Den |
|
101 |
|
102 #endif //SYMBIAN_DEN_APIEXTENSION_H |
|
103 |