|
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_APIEXTENSIONROUTING_H |
|
22 #define SYMBIAN_DEN_APIEXTENSIONROUTING_H |
|
23 |
|
24 #include <ecom/ecom.h> |
|
25 #include <elements/nm_signals.h> |
|
26 #include <elements/vc.h> |
|
27 |
|
28 namespace Den |
|
29 { |
|
30 class CWorkerSession; |
|
31 class CWorkerSubSession; |
|
32 class AIpcExtensionInterfaceBase; |
|
33 class TApiExtIdentification; |
|
34 |
|
35 //Base routing message |
|
36 class TIpcExtensionRoutingMessageBase : public Messages::TSignalBase |
|
37 /** |
|
38 @internalTechnology |
|
39 */ |
|
40 { |
|
41 public: |
|
42 explicit TIpcExtensionRoutingMessageBase() {} |
|
43 IMPORT_C void RegisterMessagesAtDestinationL(AIpcExtensionInterfaceBase& aInterface); |
|
44 IMPORT_C void DeregisterMessagesAtDestination(AIpcExtensionInterfaceBase& aInterface); |
|
45 EXPORT_TYPEID_TABLE |
|
46 }; |
|
47 |
|
48 //Base routing message |
|
49 class TIpcExtensionRoutingMessageFromSession : public TIpcExtensionRoutingMessageBase |
|
50 /** |
|
51 @internalTechnology |
|
52 */ |
|
53 { |
|
54 public: |
|
55 explicit TIpcExtensionRoutingMessageFromSession() {} |
|
56 //[MZ]: talk to Denis May about the possibility to pass the aFunction |
|
57 //and aInterfaceId as they would be in the |
|
58 virtual void KickOffL(const RSafeMessage& aMessage, CWorkerSession& aSession, const TApiExtIdentification& aIdentification) = 0; |
|
59 EXPORT_TYPEID_TABLE |
|
60 }; |
|
61 |
|
62 //Base routing message |
|
63 class TIpcExtensionRoutingMessageFromSubSession : public TIpcExtensionRoutingMessageBase |
|
64 /** |
|
65 @internalTechnology |
|
66 */ |
|
67 { |
|
68 public: |
|
69 //Under this UID the host registers all routing messages that |
|
70 //kickoff from the subsession object. |
|
71 static const TUint32 KInPlaceConstructorTableUid = 0x12349999; //TODO: allocate an UID |
|
72 |
|
73 public: |
|
74 explicit TIpcExtensionRoutingMessageFromSubSession() {} |
|
75 virtual void KickOffL(const RSafeMessage& aMessage, CWorkerSubSession& aSubSession, const TApiExtIdentification& aIdentification) = 0; |
|
76 EXPORT_TYPEID_TABLE |
|
77 }; |
|
78 |
|
79 } //namespace Den |
|
80 |
|
81 #endif //SYMBIAN_DEN_APIEXTENSIONROUTING_H |
|
82 |