equal
deleted
inserted
replaced
26 #include "cmmbroadmesshandler.h" |
26 #include "cmmbroadmesshandler.h" |
27 #include "cmmmessagerouter.h" |
27 #include "cmmmessagerouter.h" |
28 #include "tsylogger.h" |
28 #include "tsylogger.h" |
29 #include "cmmphonetsender.h" |
29 #include "cmmphonetsender.h" |
30 #include "cmmstaticutility.h" |
30 #include "cmmstaticutility.h" |
31 #include "osttracedefinitions.h" |
31 #include "OstTraceDefinitions.h" |
32 #ifdef OST_TRACE_COMPILER_IN_USE |
32 #ifdef OST_TRACE_COMPILER_IN_USE |
33 #include "cmmbroadmesshandlertraces.h" |
33 #include "cmmbroadmesshandlerTraces.h" |
34 #endif |
34 #endif |
35 |
35 |
36 |
36 |
37 // EXTERNAL DATA STRUCTURES |
37 // EXTERNAL DATA STRUCTURES |
38 //none |
38 //none |
82 { |
82 { |
83 TFLOGSTRING("TSY: CMmBroadMessHandler::ConstructL"); |
83 TFLOGSTRING("TSY: CMmBroadMessHandler::ConstructL"); |
84 OstTrace0( TRACE_NORMAL, CMMBROADMESSHANDLER_CONSTRUCTL, "CMmBroadMessHandler::ConstructL" ); |
84 OstTrace0( TRACE_NORMAL, CMMBROADMESSHANDLER_CONSTRUCTL, "CMmBroadMessHandler::ConstructL" ); |
85 // Initialise the array. Maximun of pages in a WCDMA CBS message is 15 |
85 // Initialise the array. Maximun of pages in a WCDMA CBS message is 15 |
86 iCbsMsg = new( ELeave ) CArrayPtrFlat< TWcdmaCbsMsg >( 10 ); |
86 iCbsMsg = new( ELeave ) CArrayPtrFlat< TWcdmaCbsMsg >( 10 ); |
|
87 |
|
88 // Cb subscription number. |
|
89 iCbSubscriptionNumber = SMS_NEW_SUBSCRIPTION; |
87 } |
90 } |
88 |
91 |
89 // ----------------------------------------------------------------------------- |
92 // ----------------------------------------------------------------------------- |
90 // CMmBroadMessHandler:: NewL |
93 // CMmBroadMessHandler:: NewL |
91 // Two-phased constructor. |
94 // Two-phased constructor. |
241 } |
244 } |
242 |
245 |
243 // Create a buffer to hold the request |
246 // Create a buffer to hold the request |
244 TBuf8<SIZE_SMS_CB_ROUTING_REQ> dataBuffer; |
247 TBuf8<SIZE_SMS_CB_ROUTING_REQ> dataBuffer; |
245 dataBuffer.Append( routingCommand ); // Routing command |
248 dataBuffer.Append( routingCommand ); // Routing command |
246 dataBuffer.Append( SMS_NEW_SUBSCRIPTION ); // Subscription number |
249 |
|
250 if ( SMS_ROUTING_RELEASE == routingCommand ) |
|
251 { |
|
252 // Subscription number |
|
253 dataBuffer.Append( iCbSubscriptionNumber ); |
|
254 } |
|
255 else if ( SMS_ROUTING_SET == routingCommand ) |
|
256 { |
|
257 // Subscription number |
|
258 dataBuffer.Append( SMS_NEW_SUBSCRIPTION ); |
|
259 } |
|
260 |
247 dataBuffer.Append( SMS_TYPE_DEFAULT ); // Subscription type |
261 dataBuffer.Append( SMS_TYPE_DEFAULT ); // Subscription type |
248 dataBuffer.Append( KBroadPadding ); // Filler |
262 dataBuffer.Append( KBroadPadding ); // Filler |
249 dataBuffer.Append( KBroadPadding ); // Filler |
263 dataBuffer.Append( KBroadPadding ); // Filler |
250 dataBuffer.Append( 0 ); // Number of subblocks |
264 dataBuffer.Append( 0 ); // Number of subblocks |
251 |
265 |
269 ) |
283 ) |
270 { |
284 { |
271 TFLOGSTRING("TSY: CMmBroadMessHandler::SmsCbRoutingResp"); |
285 TFLOGSTRING("TSY: CMmBroadMessHandler::SmsCbRoutingResp"); |
272 OstTrace0( TRACE_NORMAL, CMMBROADMESSHANDLER_SMSGSMCBROUTINGRESP, "CMmBroadMessHandler::SmsCbRoutingResp" ); |
286 OstTrace0( TRACE_NORMAL, CMMBROADMESSHANDLER_SMSGSMCBROUTINGRESP, "CMmBroadMessHandler::SmsCbRoutingResp" ); |
273 TInt ipc( 0 ); // Initialize to zero |
287 TInt ipc( 0 ); // Initialize to zero |
|
288 |
|
289 iCbSubscriptionNumber = aSmsCbRoutingResp.Get8bit( |
|
290 ISI_HEADER_SIZE + SMS_CB_ROUTING_RESP_OFFSET_SUBSCRIPTIONNUMBER ); |
274 |
291 |
275 TUint8 isiCause( aSmsCbRoutingResp.Get8bit( ISI_HEADER_SIZE |
292 TUint8 isiCause( aSmsCbRoutingResp.Get8bit( ISI_HEADER_SIZE |
276 + SMS_CB_ROUTING_RESP_OFFSET_SMSCAUSE ) ); |
293 + SMS_CB_ROUTING_RESP_OFFSET_SMSCAUSE ) ); |
277 |
294 |
278 TInt cause( CMmStaticUtility::CSCauseToEpocError( |
295 TInt cause( CMmStaticUtility::CSCauseToEpocError( |