equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
14 // |
14 // |
15 |
15 |
16 |
16 |
17 |
17 |
18 // INCLUDE FILES |
18 // INCLUDE FILES |
19 |
|
20 #include "OstTraceDefinitions.h" |
|
21 #ifdef OST_TRACE_COMPILER_IN_USE |
|
22 #include "cmmmessagemanagerbaseTraces.h" |
|
23 #endif |
|
24 |
|
25 #include "cmmmessagemanagerbase.h" |
19 #include "cmmmessagemanagerbase.h" |
|
20 #include "tflogger.h" |
26 #include "ctsydelegates.h" |
21 #include "ctsydelegates.h" |
27 #include "csatmessagerouterproxy.h" |
22 #include "csatmessagerouterproxy.h" |
28 #include <ctsy/pluginapi/mmessagerouter.h> |
23 #include <ctsy/pluginapi/mmessagerouter.h> |
29 |
24 |
30 // ======== MEMBER FUNCTIONS ======== |
25 // ======== MEMBER FUNCTIONS ======== |
74 // --------------------------------------------------------------------------- |
69 // --------------------------------------------------------------------------- |
75 // |
70 // |
76 TInt CMmMessageManagerBase::HandleRequestL( |
71 TInt CMmMessageManagerBase::HandleRequestL( |
77 const TInt aIpc ) |
72 const TInt aIpc ) |
78 { |
73 { |
79 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMESSAGEMANAGERBASE_HANDLEREQUESTL_1, "TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
74 TFLOGSTRING2("TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
80 return HandleRequestL( |
75 return HandleRequestL( |
81 aIpc, REINTERPRET_CAST( const CMmDataPackage*, NULL ) ); |
76 aIpc, REINTERPRET_CAST( const CMmDataPackage*, NULL ) ); |
82 } |
77 } |
83 |
78 |
84 // --------------------------------------------------------------------------- |
79 // --------------------------------------------------------------------------- |
89 // |
84 // |
90 TInt CMmMessageManagerBase::HandleRequestL( |
85 TInt CMmMessageManagerBase::HandleRequestL( |
91 const TInt aIpc, |
86 const TInt aIpc, |
92 const CMmDataPackage* aDataPackage ) |
87 const CMmDataPackage* aDataPackage ) |
93 { |
88 { |
94 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMESSAGEMANAGERBASE_HANDLEREQUESTL1_1, "TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
89 TFLOGSTRING2("TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
95 |
90 |
96 return iMessageRouter.ExtFuncL( aIpc, aDataPackage ); |
91 return iMessageRouter.ExtFuncL( aIpc, aDataPackage ); |
97 } |
92 } |
98 |
93 |
99 // --------------------------------------------------------------------------- |
94 // --------------------------------------------------------------------------- |
104 // |
99 // |
105 TInt CMmMessageManagerBase::HandleRequestL( |
100 TInt CMmMessageManagerBase::HandleRequestL( |
106 const TInt aIpc, |
101 const TInt aIpc, |
107 const TDataPackage* aDataPackage ) |
102 const TDataPackage* aDataPackage ) |
108 { |
103 { |
109 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMESSAGEMANAGERBASE_HANDLEREQUESTL2_1, "TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
104 TFLOGSTRING2("TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
110 |
105 |
111 // map the TDataPackage into a CMmDataPackage |
106 // map the TDataPackage into a CMmDataPackage |
112 // Non-core Methods from the SOS layer using the DOS layer will perforn |
107 // Non-core Methods from the SOS layer using the DOS layer will perforn |
113 // always this mapping. |
108 // always this mapping. |
114 // TSY core methods will call directly the overloaded HandleRequest method |
109 // TSY core methods will call directly the overloaded HandleRequest method |