equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 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 |
19 #include "cmmmessagemanagerbase.h" |
25 #include "cmmmessagemanagerbase.h" |
20 #include <ctsy/tflogger.h> |
|
21 #include "ctsydelegates.h" |
26 #include "ctsydelegates.h" |
22 |
27 |
23 // ======== MEMBER FUNCTIONS ======== |
28 // ======== MEMBER FUNCTIONS ======== |
24 |
29 |
25 EXPORT_C CMmMessageManagerBase* CMmMessageManagerBase::NewL() |
30 EXPORT_C CMmMessageManagerBase* CMmMessageManagerBase::NewL() |
64 // Set phone Tsy object |
69 // Set phone Tsy object |
65 // (other items were commented in a header). |
70 // (other items were commented in a header). |
66 // --------------------------------------------------------------------------- |
71 // --------------------------------------------------------------------------- |
67 EXPORT_C void CMmMessageManagerBase::SetPhoneTsy( CMmPhoneTsy* aMmPhone ) |
72 EXPORT_C void CMmMessageManagerBase::SetPhoneTsy( CMmPhoneTsy* aMmPhone ) |
68 { |
73 { |
69 TFLOGSTRING2("TSY: CMmMessageManagerBase::SetPhoneTsy : Phone=0x%x", aMmPhone ); |
74 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CMMMESSAGEMANAGERBASE_SETPHONETSY_1, "TSY: CMmMessageManagerBase::SetPhoneTsy : Phone=0x%x", aMmPhone ); |
70 iMmPhone = aMmPhone; |
75 iMmPhone = aMmPhone; |
71 |
76 |
72 if( iMessageRouterProxy ) |
77 if( iMessageRouterProxy ) |
73 { |
78 { |
74 iMessageRouterProxy->SetPhoneTsy( iMmPhone ); |
79 iMessageRouterProxy->SetPhoneTsy( iMmPhone ); |
81 // --------------------------------------------------------------------------- |
86 // --------------------------------------------------------------------------- |
82 // |
87 // |
83 TInt CMmMessageManagerBase::HandleRequestL( |
88 TInt CMmMessageManagerBase::HandleRequestL( |
84 const TInt aIpc ) |
89 const TInt aIpc ) |
85 { |
90 { |
86 TFLOGSTRING2("TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
91 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMESSAGEMANAGERBASE_HANDLEREQUESTL_1, "TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
87 return HandleRequestL( |
92 return HandleRequestL( |
88 aIpc, REINTERPRET_CAST( const CMmDataPackage*, NULL ) ); |
93 aIpc, REINTERPRET_CAST( const CMmDataPackage*, NULL ) ); |
89 } |
94 } |
90 |
95 |
91 // --------------------------------------------------------------------------- |
96 // --------------------------------------------------------------------------- |
96 // |
101 // |
97 TInt CMmMessageManagerBase::HandleRequestL( |
102 TInt CMmMessageManagerBase::HandleRequestL( |
98 const TInt aIpc, |
103 const TInt aIpc, |
99 const CMmDataPackage* aDataPackage ) |
104 const CMmDataPackage* aDataPackage ) |
100 { |
105 { |
101 TFLOGSTRING2("TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
106 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMESSAGEMANAGERBASE_HANDLEREQUESTL1_1, "TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
102 |
107 |
103 return iMessageRouter->ExtFuncL( aIpc, aDataPackage ); |
108 return iMessageRouter->ExtFuncL( aIpc, aDataPackage ); |
104 } |
109 } |
105 |
110 |
106 // --------------------------------------------------------------------------- |
111 // --------------------------------------------------------------------------- |
111 // |
116 // |
112 TInt CMmMessageManagerBase::HandleRequestL( |
117 TInt CMmMessageManagerBase::HandleRequestL( |
113 const TInt aIpc, |
118 const TInt aIpc, |
114 const TDataPackage* aDataPackage ) |
119 const TDataPackage* aDataPackage ) |
115 { |
120 { |
116 TFLOGSTRING2("TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
121 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMESSAGEMANAGERBASE_HANDLEREQUESTL2_1, "TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc ); |
117 |
122 |
118 // map the TDataPackage into a CMmDataPackage |
123 // map the TDataPackage into a CMmDataPackage |
119 // Non-core Methods from the SOS layer using the DOS layer will perforn |
124 // Non-core Methods from the SOS layer using the DOS layer will perforn |
120 // always this mapping. |
125 // always this mapping. |
121 // TSY core methods will call directly the overloaded HandleRequest method |
126 // TSY core methods will call directly the overloaded HandleRequest method |
174 // --------------------------------------------------------------------------- |
179 // --------------------------------------------------------------------------- |
175 // |
180 // |
176 EXPORT_C void CMmMessageManagerBase::SetMessageRouter( |
181 EXPORT_C void CMmMessageManagerBase::SetMessageRouter( |
177 MMessageRouter* aMessageRouter ) |
182 MMessageRouter* aMessageRouter ) |
178 { |
183 { |
179 TFLOGSTRING2("TSY: CMmMessageManagerBase::SetMessageRouter : MessageRouter=0x%x", aMessageRouter ); |
184 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CMMMESSAGEMANAGERBASE_SETMESSAGEROUTER_1, "TSY: CMmMessageManagerBase::SetMessageRouter : MessageRouter=0x%08x", aMessageRouter ); |
180 iMessageRouter = aMessageRouter; |
185 iMessageRouter = aMessageRouter; |
181 } |
186 } |
182 |
187 |
183 |
188 |
184 // End of File |
189 // End of File |