101 iPnSend( aPnSend ), |
101 iPnSend( aPnSend ), |
102 iPnReceive( aPnReceive ), |
102 iPnReceive( aPnReceive ), |
103 iSatAppName( aName ), |
103 iSatAppName( aName ), |
104 iSendSmsTsyReqHandle( NULL ) |
104 iSendSmsTsyReqHandle( NULL ) |
105 { |
105 { |
106 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_CTSYSATMESSAGING, "CTsySatMessaging::CTsySatMessaging" ); |
106 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_CTSYSATMESSAGING_TD, "CTsySatMessaging::CTsySatMessaging" ); |
107 TFLOGSTRING("TSY: CTsySatMessaging::CTsySatMessaging"); |
107 TFLOGSTRING("TSY: CTsySatMessaging::CTsySatMessaging"); |
108 /* None */ |
108 /* None */ |
109 } |
109 } |
110 #else |
110 #else |
111 CTsySatMessaging::CTsySatMessaging |
111 CTsySatMessaging::CTsySatMessaging |
134 // Symbian 2nd phase constructor can leave. |
134 // Symbian 2nd phase constructor can leave. |
135 // ----------------------------------------------------------------------------- |
135 // ----------------------------------------------------------------------------- |
136 // |
136 // |
137 void CTsySatMessaging::ConstructL() |
137 void CTsySatMessaging::ConstructL() |
138 { |
138 { |
139 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_CONSTRUCTL, "CTsySatMessaging::ConstructL" ); |
139 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_CONSTRUCTL_TD, "CTsySatMessaging::ConstructL" ); |
140 TFLOGSTRING("TSY: CTsySatMessaging::ConstructL"); |
140 TFLOGSTRING("TSY: CTsySatMessaging::ConstructL"); |
141 |
141 |
142 // Create message handler object, to receive ISI messages from ISA CellMo |
142 // Create message handler object, to receive ISI messages from ISA CellMo |
143 iSatMessHandler = CSatMessHandler::NewL( this, iPnSend ); |
143 iSatMessHandler = CSatMessHandler::NewL( this, iPnSend ); |
144 |
144 |
228 |
228 |
229 // Initialize SAT icon support implementation |
229 // Initialize SAT icon support implementation |
230 iSatIcon = CSatIcon::NewL( iSatMessHandler, this ); |
230 iSatIcon = CSatIcon::NewL( iSatMessHandler, this ); |
231 |
231 |
232 // Request IMEI code. Needed in provide local info proactive command. |
232 // Request IMEI code. Needed in provide local info proactive command. |
233 iSatMessHandler->InfoSerialNumberReadReq( |
233 /*iSatMessHandler->InfoSerialNumberReadReq( |
234 GetTransactionId(), INFO_SB_SN_IMEI_PLAIN ); |
234 GetTransactionId(), INFO_SB_SN_IMEI_PLAIN );*/ |
235 |
235 |
236 // Request IMEI-SV code. Needed in provide local info proactive command. |
236 // Request IMEI-SV code. Needed in provide local info proactive command. |
237 iSatMessHandler->InfoSerialNumberReadReq( |
237 /*iSatMessHandler->InfoSerialNumberReadReq( |
238 GetTransactionId(), INFO_SN_IMEI_SV_TO_NET ); |
238 GetTransactionId(), INFO_SN_IMEI_SV_TO_NET );*/ |
239 |
239 |
240 // Request Network status |
240 // Request Network status |
241 iSatMessHandler->NetCellInfoGetReq( |
241 iSatMessHandler->NetCellInfoGetReq( |
242 GetTransactionId() ); |
242 GetTransactionId() ); |
243 |
243 |
244 //Initalize flag, this is used to check if proactiveCommand is ongoing |
244 //Initalize flag, this is used to check if proactiveCommand is ongoing |
245 iSatTimer->SetProactiveCommandOnGoingStatus( EFalse ); |
245 iSatTimer->SetProactiveCommandOnGoingStatus( EFalse ); |
246 |
246 |
247 |
247 |
248 |
248 |
249 #ifdef INFO_PP_SIM_OLD_POLL_INTERVAL |
249 /*#ifdef INFO_PP_SIM_OLD_POLL_INTERVAL |
250 // Check old poll interval is supported by ME's Product Profile |
250 // Check old poll interval is supported by ME's Product Profile |
251 iSatMessHandler->InfoPpReadReq( INFO_PP_SIM_OLD_POLL_INTERVAL ); |
251 iSatMessHandler->InfoPpReadReq( INFO_PP_SIM_OLD_POLL_INTERVAL ); |
252 #endif |
252 #endif |
253 |
253 |
254 #ifdef INFO_PP_ENHANCED_NETWORK_SELECTION |
254 #ifdef INFO_PP_ENHANCED_NETWORK_SELECTION |
255 // Check INFO_PP_ENHANCED_NETWORK_SELECTION status in product profile |
255 // Check INFO_PP_ENHANCED_NETWORK_SELECTION status in product profile |
256 iSatMessHandler->InfoPpReadReq( INFO_PP_ENHANCED_NETWORK_SELECTION ); |
256 iSatMessHandler->InfoPpReadReq( INFO_PP_ENHANCED_NETWORK_SELECTION ); |
257 #endif |
257 #endif*/ |
258 } |
258 } |
259 |
259 |
260 // ----------------------------------------------------------------------------- |
260 // ----------------------------------------------------------------------------- |
261 // CTsySatMessaging::NewL |
261 // CTsySatMessaging::NewL |
262 // Two-phased constructor. |
262 // Two-phased constructor. |
268 CMmPhoneTsy* aMmPhone, |
268 CMmPhoneTsy* aMmPhone, |
269 CMmMessageRouterBase* aRouter, |
269 CMmMessageRouterBase* aRouter, |
270 TName aName |
270 TName aName |
271 ) |
271 ) |
272 { |
272 { |
273 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NEWL, "CTsySatMessaging::NewL" ); |
273 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NEWL_TD, "CTsySatMessaging::NewL" ); |
274 |
274 |
275 TFLOGSTRING("TSY: CTsySatMessaging::NewL"); |
275 TFLOGSTRING("TSY: CTsySatMessaging::NewL"); |
276 // First check that given arguments are not NULL pointers |
276 // First check that given arguments are not NULL pointers |
277 if ( ( NULL == aMmPhone ) || ( NULL == aRouter ) ) |
277 if ( ( NULL == aMmPhone ) || ( NULL == aRouter ) ) |
278 { |
278 { |
279 TFLOGSTRING("TSY: CTsySatMessaging::NewL, NULL pointers were given \ |
279 TFLOGSTRING("TSY: CTsySatMessaging::NewL, NULL pointers were given \ |
280 leaving!"); |
280 leaving!"); |
281 OstTrace0( TRACE_NORMAL, DUP2_CTSYSATMESSAGING_NEWL, "CTsySatMessaging::NewL, NULL pointers were given leaving!" ); |
281 OstTrace0( TRACE_NORMAL, DUP2_CTSYSATMESSAGING_NEWL_TD, "CTsySatMessaging::NewL, NULL pointers were given leaving!" ); |
282 |
282 |
283 User::Leave( KErrArgument ); |
283 User::Leave( KErrArgument ); |
284 } |
284 } |
285 CMmPhoNetSender* pnSend = NULL; |
285 CMmPhoNetSender* pnSend = NULL; |
286 CMmPhoNetReceiver* pnReceive = NULL; |
286 CMmPhoNetReceiver* pnReceive = NULL; |
296 { |
296 { |
297 // PhoNet is not correctly initialized. No conditions to survive. |
297 // PhoNet is not correctly initialized. No conditions to survive. |
298 // This may happen if LicenseeTSY stub is used with real SIM_ATK_TSY |
298 // This may happen if LicenseeTSY stub is used with real SIM_ATK_TSY |
299 TFLOGSTRING("TSY: CTsySatMessaging::NewL, Construction failed \ |
299 TFLOGSTRING("TSY: CTsySatMessaging::NewL, Construction failed \ |
300 PhoNet is not initialized, leaving!"); |
300 PhoNet is not initialized, leaving!"); |
301 OstTrace0( TRACE_NORMAL, DUP5_CTSYSATMESSAGING_NEWL, "CTsySatMessaging::NewL, Construction failed PhoNet is not initialized, leaving!" ); |
301 OstTrace0( TRACE_NORMAL, DUP5_CTSYSATMESSAGING_NEWL_TD, "CTsySatMessaging::NewL, Construction failed PhoNet is not initialized, leaving!" ); |
302 |
302 |
303 User::Leave( KErrArgument ); |
303 User::Leave( KErrArgument ); |
304 } |
304 } |
305 // Create a SatMessaging session |
305 // Create a SatMessaging session |
306 CTsySatMessaging* subsession = new (ELeave) CTsySatMessaging( aMmPhone, |
306 CTsySatMessaging* subsession = new (ELeave) CTsySatMessaging( aMmPhone, |
314 EXPORT_C CTsySatMessaging* CTsySatMessaging::NewL |
314 EXPORT_C CTsySatMessaging* CTsySatMessaging::NewL |
315 ( |
315 ( |
316 CMmMessageRouter* aRouter |
316 CMmMessageRouter* aRouter |
317 ) |
317 ) |
318 { |
318 { |
319 OstTrace0( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_NEWL, "CTsySatMessaging::NewL" ); |
319 OstTrace0( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_NEWL_TD, "CTsySatMessaging::NewL" ); |
320 |
320 |
321 TFLOGSTRING("TSY: CTsySatMessaging::NewL"); |
321 TFLOGSTRING("TSY: CTsySatMessaging::NewL"); |
322 // First check that given arguments are not NULL pointers |
322 // First check that given arguments are not NULL pointers |
323 if ( NULL == aRouter ) |
323 if ( NULL == aRouter ) |
324 { |
324 { |
325 TFLOGSTRING("TSY: CTsySatMessaging::NewL, NULL pointers were given \ |
325 TFLOGSTRING("TSY: CTsySatMessaging::NewL, NULL pointers were given \ |
326 leaving!"); |
326 leaving!"); |
327 OstTrace0( TRACE_NORMAL, DUP3_CTSYSATMESSAGING_NEWL, "CTsySatMessaging::NewL, NULL pointers were given leaving!" ); |
327 OstTrace0( TRACE_NORMAL, DUP3_CTSYSATMESSAGING_NEWL_TD, "CTsySatMessaging::NewL, NULL pointers were given leaving!" ); |
328 |
328 |
329 User::Leave( KErrArgument ); |
329 User::Leave( KErrArgument ); |
330 } |
330 } |
331 CMmPhoNetSender* pnSend = NULL; |
331 CMmPhoNetSender* pnSend = NULL; |
332 CMmPhoNetReceiver* pnReceive = NULL; |
332 CMmPhoNetReceiver* pnReceive = NULL; |
341 { |
341 { |
342 // PhoNet is not correctly initialized. No conditions to survive. |
342 // PhoNet is not correctly initialized. No conditions to survive. |
343 // This may happen if LicenseeTSY stub is used with real SIM_ATK_TSY |
343 // This may happen if LicenseeTSY stub is used with real SIM_ATK_TSY |
344 TFLOGSTRING("TSY: CTsySatMessaging::NewL, Construction failed \ |
344 TFLOGSTRING("TSY: CTsySatMessaging::NewL, Construction failed \ |
345 PhoNet is not initialized, leaving!"); |
345 PhoNet is not initialized, leaving!"); |
346 OstTrace0( TRACE_NORMAL, DUP4_CTSYSATMESSAGING_NEWL, "CTsySatMessaging::NewL, Construction failed PhoNet is not initialized, leaving!" ); |
346 OstTrace0( TRACE_NORMAL, DUP4_CTSYSATMESSAGING_NEWL_TD, "CTsySatMessaging::NewL, Construction failed PhoNet is not initialized, leaving!" ); |
347 |
347 |
348 User::Leave( KErrArgument ); |
348 User::Leave( KErrArgument ); |
349 } |
349 } |
350 // Create a SatMessaging session |
350 // Create a SatMessaging session |
351 CTsySatMessaging* subsession = new (ELeave) CTsySatMessaging( |
351 CTsySatMessaging* subsession = new (ELeave) CTsySatMessaging( |
362 // Destructor. |
362 // Destructor. |
363 // ----------------------------------------------------------------------------- |
363 // ----------------------------------------------------------------------------- |
364 // |
364 // |
365 CTsySatMessaging::~CTsySatMessaging() |
365 CTsySatMessaging::~CTsySatMessaging() |
366 { |
366 { |
367 OstTrace0( TRACE_NORMAL, DUP2_CTSYSATMESSAGING_CTSYSATMESSAGING, "CTsySatMessaging::~CTsySatMessaging" ); |
367 OstTrace0( TRACE_NORMAL, DUP2_CTSYSATMESSAGING_CTSYSATMESSAGING_TD, "CTsySatMessaging::~CTsySatMessaging" ); |
368 TFLOGSTRING("TSY: CTsySatMessaging::~CTsySatMessaging"); |
368 TFLOGSTRING("TSY: CTsySatMessaging::~CTsySatMessaging"); |
369 |
369 |
370 // Delete message handler object, SAT SMS sending |
370 // Delete message handler object, SAT SMS sending |
371 delete iSatMessHandler; |
371 delete iSatMessHandler; |
372 |
372 |
427 CTelObject* CTsySatMessaging::OpenNewObjectByNameL |
427 CTelObject* CTsySatMessaging::OpenNewObjectByNameL |
428 ( |
428 ( |
429 const TDesC& /* aName */ // Name of the object |
429 const TDesC& /* aName */ // Name of the object |
430 ) |
430 ) |
431 { |
431 { |
432 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_OPENNEWOBJECTBYNAMEL, "CTsySatMessaging::OpenNewObjectByNameL" ); |
432 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_OPENNEWOBJECTBYNAMEL_TD, "CTsySatMessaging::OpenNewObjectByNameL" ); |
433 TFLOGSTRING("TSY: CTsySatMessaging::OpenNewObjectByNameL"); |
433 TFLOGSTRING("TSY: CTsySatMessaging::OpenNewObjectByNameL"); |
434 User::Leave( KErrNotSupported ); |
434 User::Leave( KErrNotSupported ); |
435 return NULL; |
435 return NULL; |
436 } |
436 } |
437 |
437 |
464 const TTsyReqHandle aTsyReqHandle, // Request handle |
464 const TTsyReqHandle aTsyReqHandle, // Request handle |
465 const TInt aIpc, // IPC number of request |
465 const TInt aIpc, // IPC number of request |
466 const TDataPackage& aPackage // Contains parameters for request |
466 const TDataPackage& aPackage // Contains parameters for request |
467 ) |
467 ) |
468 { |
468 { |
469 OstTraceExt2( TRACE_NORMAL, CTSYSATMESSAGING_EXTFUNC, "CTsySatMessaging::ExtFunc ReqHandle: %d IPC: %d", TInt(aTsyReqHandle), aIpc ); |
469 OstTraceExt2( TRACE_NORMAL, CTSYSATMESSAGING_EXTFUNC_TD, "CTsySatMessaging::ExtFunc ReqHandle: %d IPC: %d", TInt(aTsyReqHandle), aIpc ); |
470 |
470 |
471 TFLOGSTRING3("TSY: CTsySatMessaging::ExtFunc ReqHandle=%d IPC=%d", |
471 TFLOGSTRING3("TSY: CTsySatMessaging::ExtFunc ReqHandle=%d IPC=%d", |
472 aTsyReqHandle, aIpc); |
472 aTsyReqHandle, aIpc); |
473 // some SAT functions need trapping, use two level function where |
473 // some SAT functions need trapping, use two level function where |
474 // first one is just a trap harness |
474 // first one is just a trap harness |
497 const TTsyReqHandle aTsyReqHandle, // Request handle |
497 const TTsyReqHandle aTsyReqHandle, // Request handle |
498 const TInt aIpc, // IPC number of request |
498 const TInt aIpc, // IPC number of request |
499 const TDataPackage& aPackage // Contains parameters for request |
499 const TDataPackage& aPackage // Contains parameters for request |
500 ) |
500 ) |
501 { |
501 { |
502 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_DOEXTFUNCL, "CTsySatMessaging::DoExtFuncL" ); |
502 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_DOEXTFUNCL_TD, "CTsySatMessaging::DoExtFuncL" ); |
503 TFLOGSTRING("TSY: CTsySatMessaging::DoExtFuncL"); |
503 TFLOGSTRING("TSY: CTsySatMessaging::DoExtFuncL"); |
504 TAny* dataPtr=aPackage.Ptr1(); |
504 TAny* dataPtr=aPackage.Ptr1(); |
505 TAny* dataPtr2=aPackage.Ptr2(); |
505 TAny* dataPtr2=aPackage.Ptr2(); |
506 switch ( aIpc ) |
506 switch ( aIpc ) |
507 { |
507 { |
709 } |
709 } |
710 // Set ret to KErrNotSupported, function not supported |
710 // Set ret to KErrNotSupported, function not supported |
711 default: |
711 default: |
712 { |
712 { |
713 TFLOGSTRING2("TSY: CTsySatMessaging::DoExtFuncL unsupported IPC %d", aIpc); |
713 TFLOGSTRING2("TSY: CTsySatMessaging::DoExtFuncL unsupported IPC %d", aIpc); |
714 OstTrace1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_DOEXTFUNCL, "CTsySatMessaging::DoExtFuncL unsupported IPC %d", aIpc ); |
714 OstTrace1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_DOEXTFUNCL_TD, "CTsySatMessaging::DoExtFuncL unsupported IPC %d", aIpc ); |
715 |
715 |
716 ReqCompleted( aTsyReqHandle, KErrNotSupported ); |
716 ReqCompleted( aTsyReqHandle, KErrNotSupported ); |
717 break; |
717 break; |
718 } |
718 } |
719 } |
719 } |
730 ( |
730 ( |
731 const TInt aIpc, // IPC number of request |
731 const TInt aIpc, // IPC number of request |
732 const TTsyReqHandle aTsyReqHandle // Request handle |
732 const TTsyReqHandle aTsyReqHandle // Request handle |
733 ) |
733 ) |
734 { |
734 { |
735 OstTraceExt2( TRACE_NORMAL, CTSYSATMESSAGING_CANCELSERVICE, "CTsySatMessaging::CancelService ReqHandle=%d, IPC=%d", TInt(aTsyReqHandle), aIpc ); |
735 OstTraceExt2( TRACE_NORMAL, CTSYSATMESSAGING_CANCELSERVICE_TD, "CTsySatMessaging::CancelService ReqHandle=%d, IPC=%d", TInt(aTsyReqHandle), aIpc ); |
736 TFLOGSTRING3("TSY: CTsySatMessaging::CancelService ReqHandle=%d IPC=%d",aTsyReqHandle, aIpc); |
736 TFLOGSTRING3("TSY: CTsySatMessaging::CancelService ReqHandle=%d IPC=%d",aTsyReqHandle, aIpc); |
737 TInt ret( KErrNone ); |
737 TInt ret( KErrNone ); |
738 switch ( aIpc ) |
738 switch ( aIpc ) |
739 { |
739 { |
740 case ESatNotifyDisplayTextPCmd: |
740 case ESatNotifyDisplayTextPCmd: |
916 CTelObject::TReqMode CTsySatMessaging::ReqModeL |
916 CTelObject::TReqMode CTsySatMessaging::ReqModeL |
917 ( |
917 ( |
918 const TInt aIpc // IPC number of request |
918 const TInt aIpc // IPC number of request |
919 ) |
919 ) |
920 { |
920 { |
921 OstTrace1( TRACE_NORMAL, CTSYSATMESSAGING_REQMODEL, "CTsySatMessaging::ReqModeL, IPC=%d", aIpc ); |
921 OstTrace1( TRACE_NORMAL, CTSYSATMESSAGING_REQMODEL_TD, "CTsySatMessaging::ReqModeL, IPC=%d", aIpc ); |
922 TFLOGSTRING2("TSY: CTsySatMessaging::ReqModeL, IPC = %d",aIpc); |
922 TFLOGSTRING2("TSY: CTsySatMessaging::ReqModeL, IPC = %d",aIpc); |
923 CTelObject::TReqMode ret = 0; |
923 CTelObject::TReqMode ret = 0; |
924 switch ( aIpc ) |
924 switch ( aIpc ) |
925 { |
925 { |
926 // Multiple Completion Services |
926 // Multiple Completion Services |
989 // (other items were commented in a header). |
989 // (other items were commented in a header). |
990 // ----------------------------------------------------------------------------- |
990 // ----------------------------------------------------------------------------- |
991 // |
991 // |
992 void CTsySatMessaging::Init() |
992 void CTsySatMessaging::Init() |
993 { |
993 { |
994 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_INIT, "CTsySatMessaging::Init" ); |
994 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_INIT_TD, "CTsySatMessaging::Init" ); |
995 TFLOGSTRING("TSY: CTsySatMessaging::Init"); |
995 TFLOGSTRING("TSY: CTsySatMessaging::Init"); |
996 // none |
996 // none |
997 } |
997 } |
998 |
998 |
999 // ----------------------------------------------------------------------------- |
999 // ----------------------------------------------------------------------------- |
1005 TInt CTsySatMessaging::RegisterNotification |
1005 TInt CTsySatMessaging::RegisterNotification |
1006 ( |
1006 ( |
1007 const TInt aIpc // IPC number of request |
1007 const TInt aIpc // IPC number of request |
1008 ) |
1008 ) |
1009 { |
1009 { |
1010 OstTrace1( TRACE_NORMAL, CTSYSATMESSAGING_REGISTERNOTIFICATION, "CTsySatMessaging::RegisterNotification, IPC = %d", aIpc ); |
1010 OstTrace1( TRACE_NORMAL, CTSYSATMESSAGING_REGISTERNOTIFICATION_TD, "CTsySatMessaging::RegisterNotification, IPC = %d", aIpc ); |
1011 TFLOGSTRING2("TSY: CTsySatMessaging::RegisterNotification, IPC = %d",aIpc); |
1011 TFLOGSTRING2("TSY: CTsySatMessaging::RegisterNotification, IPC = %d",aIpc); |
1012 // Initialize return value |
1012 // Initialize return value |
1013 TInt ret( KErrNone ); |
1013 TInt ret( KErrNone ); |
1014 switch ( aIpc ) |
1014 switch ( aIpc ) |
1015 { |
1015 { |
1047 // |
1047 // |
1048 default: |
1048 default: |
1049 { |
1049 { |
1050 // Unknown or invalid IPC |
1050 // Unknown or invalid IPC |
1051 TFLOGSTRING2("TSY: CTsySatMessaging::RegisterNotification, unsupported IPC %d", aIpc); |
1051 TFLOGSTRING2("TSY: CTsySatMessaging::RegisterNotification, unsupported IPC %d", aIpc); |
1052 OstTrace1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_REGISTERNOTIFICATION, "CTsySatMessaging::RegisterNotification unsupported IPC %d", aIpc ); |
1052 OstTrace1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_REGISTERNOTIFICATION_TD, "CTsySatMessaging::RegisterNotification unsupported IPC %d", aIpc ); |
1053 |
1053 |
1054 ret = KErrNotSupported; |
1054 ret = KErrNotSupported; |
1055 break; |
1055 break; |
1056 } |
1056 } |
1057 } |
1057 } |
1068 TInt CTsySatMessaging::DeregisterNotification |
1068 TInt CTsySatMessaging::DeregisterNotification |
1069 ( |
1069 ( |
1070 const TInt aIpc // IPC number of request |
1070 const TInt aIpc // IPC number of request |
1071 ) |
1071 ) |
1072 { |
1072 { |
1073 OstTrace1( TRACE_NORMAL, CTSYSATMESSAGING_DEREGISTERNOTIFICATION, "CTsySatMessaging::DeregisterNotification, IPC = %d", aIpc ); |
1073 OstTrace1( TRACE_NORMAL, CTSYSATMESSAGING_DEREGISTERNOTIFICATION_TD, "CTsySatMessaging::DeregisterNotification, IPC = %d", aIpc ); |
1074 TFLOGSTRING2( "TSY: CTsySatMessaging::DeregisterNotification\ |
1074 TFLOGSTRING2( "TSY: CTsySatMessaging::DeregisterNotification\ |
1075 IPC = %d", aIpc ); |
1075 IPC = %d", aIpc ); |
1076 // Initialize return value |
1076 // Initialize return value |
1077 TInt ret( KErrNone ); |
1077 TInt ret( KErrNone ); |
1078 switch ( aIpc ) |
1078 switch ( aIpc ) |
1112 default: |
1112 default: |
1113 { |
1113 { |
1114 // Unknown or invalid IPC |
1114 // Unknown or invalid IPC |
1115 TFLOGSTRING2("TSY: CTsySatMessaging::DeregisterNotification \ |
1115 TFLOGSTRING2("TSY: CTsySatMessaging::DeregisterNotification \ |
1116 unsupported IPC %d", aIpc); |
1116 unsupported IPC %d", aIpc); |
1117 OstTrace1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_DEREGISTERNOTIFICATION, "CTsySatMessaging::DeregisterNotification unsupported IPC %d", aIpc ); |
1117 OstTrace1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_DEREGISTERNOTIFICATION_TD, "CTsySatMessaging::DeregisterNotification unsupported IPC %d", aIpc ); |
1118 |
1118 |
1119 ret = KErrNotSupported; |
1119 ret = KErrNotSupported; |
1120 break; |
1120 break; |
1121 } |
1121 } |
1122 } |
1122 } |
1132 TInt CTsySatMessaging::NumberOfSlotsL |
1132 TInt CTsySatMessaging::NumberOfSlotsL |
1133 ( |
1133 ( |
1134 const TInt aIpc // IPC number of request |
1134 const TInt aIpc // IPC number of request |
1135 ) |
1135 ) |
1136 { |
1136 { |
1137 OstTrace1( TRACE_NORMAL, CTSYSATMESSAGING_NUMBEROFSLOTSL, "CTsySatMessaging::NumberOfSlotsL IPC %d", aIpc ); |
1137 OstTrace1( TRACE_NORMAL, CTSYSATMESSAGING_NUMBEROFSLOTSL_TD, "CTsySatMessaging::NumberOfSlotsL IPC %d", aIpc ); |
1138 TFLOGSTRING2("TSY: CTsySatMessaging::NumberOfSlotsL IPC %d", aIpc); |
1138 TFLOGSTRING2("TSY: CTsySatMessaging::NumberOfSlotsL IPC %d", aIpc); |
1139 TInt numberOfSlots( 1 ); |
1139 TInt numberOfSlots( 1 ); |
1140 switch ( aIpc ) |
1140 switch ( aIpc ) |
1141 { |
1141 { |
1142 case ESatNotifyDisplayTextPCmd: |
1142 case ESatNotifyDisplayTextPCmd: |
1213 default: |
1213 default: |
1214 { |
1214 { |
1215 // Unknown or invalid IPC |
1215 // Unknown or invalid IPC |
1216 TFLOGSTRING2( "TSY: CTsySatMessaging::NumberOfSlotsL\ |
1216 TFLOGSTRING2( "TSY: CTsySatMessaging::NumberOfSlotsL\ |
1217 unsupported IPC %d", aIpc ); |
1217 unsupported IPC %d", aIpc ); |
1218 OstTrace1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_NUMBEROFSLOTSL, "CTsySatMessaging::NumberOfSlotsL unsupported IPC %d", aIpc ); |
1218 OstTrace1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_NUMBEROFSLOTSL_TD, "CTsySatMessaging::NumberOfSlotsL unsupported IPC %d", aIpc ); |
1219 |
1219 |
1220 User::Leave( KErrNotSupported ); |
1220 User::Leave( KErrNotSupported ); |
1221 break; |
1221 break; |
1222 } |
1222 } |
1223 } |
1223 } |
1230 // (other items were commented in a header). |
1230 // (other items were commented in a header). |
1231 // ----------------------------------------------------------------------------- |
1231 // ----------------------------------------------------------------------------- |
1232 // |
1232 // |
1233 CSatMessHandler* CTsySatMessaging::GetSatMessHandler() |
1233 CSatMessHandler* CTsySatMessaging::GetSatMessHandler() |
1234 { |
1234 { |
1235 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETSATMESSHANDLER, "CTsySatMessaging::GetSatMessHandler" ); |
1235 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETSATMESSHANDLER_TD, "CTsySatMessaging::GetSatMessHandler" ); |
1236 TFLOGSTRING("TSY:CTsySatMessaging::GetSatMessHandler"); |
1236 TFLOGSTRING("TSY:CTsySatMessaging::GetSatMessHandler"); |
1237 // Pointer to SAT message handler |
1237 // Pointer to SAT message handler |
1238 return iSatMessHandler; |
1238 return iSatMessHandler; |
1239 } |
1239 } |
1240 |
1240 |
1244 // (other items were commented in a header). |
1244 // (other items were commented in a header). |
1245 // ----------------------------------------------------------------------------- |
1245 // ----------------------------------------------------------------------------- |
1246 // |
1246 // |
1247 CSatFlightModeStatus* CTsySatMessaging::GetSatFlightModeStatus() |
1247 CSatFlightModeStatus* CTsySatMessaging::GetSatFlightModeStatus() |
1248 { |
1248 { |
1249 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETSATFLIGHTMODESTATUS, "CTsySatMessaging::GetSatFlightModeStatus" ); |
1249 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETSATFLIGHTMODESTATUS_TD, "CTsySatMessaging::GetSatFlightModeStatus" ); |
1250 TFLOGSTRING("TSY:CTsySatMessaging::GetSatFlightModeStatus"); |
1250 TFLOGSTRING("TSY:CTsySatMessaging::GetSatFlightModeStatus"); |
1251 // Pointer to SAT flight mode status |
1251 // Pointer to SAT flight mode status |
1252 return iSatFlightModeStatus; |
1252 return iSatFlightModeStatus; |
1253 } |
1253 } |
1254 |
1254 |
1262 TInt CTsySatMessaging::CompleteSendSmsMessage |
1262 TInt CTsySatMessaging::CompleteSendSmsMessage |
1263 ( |
1263 ( |
1264 TInt aStatus // Message sending status from MMSMS |
1264 TInt aStatus // Message sending status from MMSMS |
1265 ) |
1265 ) |
1266 { |
1266 { |
1267 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_COMPLETESENDSMSMESSAGE, "CTsySatMessaging::CompleteSendSmsMessage" ); |
1267 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_COMPLETESENDSMSMESSAGE_TD, "CTsySatMessaging::CompleteSendSmsMessage" ); |
1268 TFLOGSTRING("TSY: CTsySatMessaging::CompleteSendSmsMessage, entered"); |
1268 TFLOGSTRING("TSY: CTsySatMessaging::CompleteSendSmsMessage, entered"); |
1269 if ( iSendSmsTsyReqHandle ) |
1269 if ( iSendSmsTsyReqHandle ) |
1270 { |
1270 { |
1271 ReqCompleted( iSendSmsTsyReqHandle, aStatus ); |
1271 ReqCompleted( iSendSmsTsyReqHandle, aStatus ); |
1272 iSendSmsTsyReqHandle = NULL; |
1272 iSendSmsTsyReqHandle = NULL; |
1284 ( |
1284 ( |
1285 TDes8* aSelection, // Contains menu selection parameters |
1285 TDes8* aSelection, // Contains menu selection parameters |
1286 TTsyReqHandle aTsyReqHandle // Request handle |
1286 TTsyReqHandle aTsyReqHandle // Request handle |
1287 ) |
1287 ) |
1288 { |
1288 { |
1289 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_MENUSELECTION, "CTsySatMessaging::MenuSelection" ); |
1289 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_MENUSELECTION_TD, "CTsySatMessaging::MenuSelection" ); |
1290 TFLOGSTRING("TSY:CTsySatMessaging::MenuSelection"); |
1290 TFLOGSTRING("TSY:CTsySatMessaging::MenuSelection"); |
1291 TInt ret( KErrNone ); |
1291 TInt ret( KErrNone ); |
1292 RSat::TMenuSelectionV1Pckg* aPckg = |
1292 RSat::TMenuSelectionV1Pckg* aPckg = |
1293 REINTERPRET_CAST( RSat::TMenuSelectionV1Pckg*, aSelection ); |
1293 REINTERPRET_CAST( RSat::TMenuSelectionV1Pckg*, aSelection ); |
1294 RSat::TMenuSelectionV1& selectionV1 = ( *aPckg ) (); |
1294 RSat::TMenuSelectionV1& selectionV1 = ( *aPckg ) (); |
1295 TFLOGSTRING3("TSY:CTsySatMessaging::MenuSelection, iItemId %x, Help: %c", |
1295 TFLOGSTRING3("TSY:CTsySatMessaging::MenuSelection, iItemId %x, Help: %c", |
1296 selectionV1.iItemId, selectionV1.iHelp ); |
1296 selectionV1.iItemId, selectionV1.iHelp ); |
1297 OstTraceExt1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_MENUSELECTION, "CTsySatMessaging::MenuSelection iItemId: %hhu", selectionV1.iItemId ); |
1297 OstTraceExt1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_MENUSELECTION_TD, "CTsySatMessaging::MenuSelection iItemId: %hhu", selectionV1.iItemId ); |
1298 OstTrace1( TRACE_NORMAL, DUP2_CTSYSATMESSAGING_MENUSELECTION, "CTsySatMessaging::MenuSelection Help: %{THelpRequest}", selectionV1.iHelp ); |
1298 OstTrace1( TRACE_NORMAL, DUP2_CTSYSATMESSAGING_MENUSELECTION_TD, "CTsySatMessaging::MenuSelection Help: %{THelpRequest}", selectionV1.iHelp ); |
1299 |
1299 |
1300 // Creating the menu selection message |
1300 // Creating the menu selection message |
1301 if ( selectionV1.iHelp == RSat::EHelpRequested ) |
1301 if ( selectionV1.iHelp == RSat::EHelpRequested ) |
1302 { |
1302 { |
1303 // Help requested |
1303 // Help requested |
1327 ( |
1327 ( |
1328 TDes8* /*aPackage*/, //package containing pointer to client |
1328 TDes8* /*aPackage*/, //package containing pointer to client |
1329 TTsyReqHandle aTsyReqHandle //tsy request handle |
1329 TTsyReqHandle aTsyReqHandle //tsy request handle |
1330 ) |
1330 ) |
1331 { |
1331 { |
1332 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NOTIFYCBDOWNLOAD, "CTsySatMessaging::NotifyCbDownload" ); |
1332 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NOTIFYCBDOWNLOAD_TD, "CTsySatMessaging::NotifyCbDownload" ); |
1333 TFLOGSTRING("TSY:CTsySatMessaging::NotifyCbDownload"); |
1333 TFLOGSTRING("TSY:CTsySatMessaging::NotifyCbDownload"); |
1334 TInt ret( KErrNone ); |
1334 TInt ret( KErrNone ); |
1335 ReqCompleted( aTsyReqHandle, ret ); |
1335 ReqCompleted( aTsyReqHandle, ret ); |
1336 return ret; |
1336 return ret; |
1337 } |
1337 } |
1347 ( |
1347 ( |
1348 TDes8* /*aPackage*/, //package containing pointer to client |
1348 TDes8* /*aPackage*/, //package containing pointer to client |
1349 TTsyReqHandle aTsyReqHandle //tsy request handle |
1349 TTsyReqHandle aTsyReqHandle //tsy request handle |
1350 ) |
1350 ) |
1351 { |
1351 { |
1352 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NOTIFYSMSPPDOWNLOAD, "CTsySatMessaging::NotifySmsPpDownload" ); |
1352 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NOTIFYSMSPPDOWNLOAD_TD, "CTsySatMessaging::NotifySmsPpDownload" ); |
1353 TFLOGSTRING("TSY:CTsySatMessaging::NotifySmsPpDownload"); |
1353 TFLOGSTRING("TSY:CTsySatMessaging::NotifySmsPpDownload"); |
1354 TInt ret( KErrNone ); |
1354 TInt ret( KErrNone ); |
1355 ReqCompleted( aTsyReqHandle, ret ); |
1355 ReqCompleted( aTsyReqHandle, ret ); |
1356 return ret; |
1356 return ret; |
1357 } |
1357 } |
1367 TDes8* aMsg, // Pointer to message |
1367 TDes8* aMsg, // Pointer to message |
1368 TUint16* /*aMsgRef*/, // Message reference |
1368 TUint16* /*aMsgRef*/, // Message reference |
1369 TTsyReqHandle aTsyReqHandle // Request handle |
1369 TTsyReqHandle aTsyReqHandle // Request handle |
1370 ) |
1370 ) |
1371 { |
1371 { |
1372 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL, "CTsySatMessaging::SendMessageNoLoggingL" ); |
1372 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL_TD, "CTsySatMessaging::SendMessageNoLoggingL" ); |
1373 TFLOGSTRING("TSY: CTsySatMessaging::SendMessageNoLoggingL"); |
1373 TFLOGSTRING("TSY: CTsySatMessaging::SendMessageNoLoggingL"); |
1374 TInt ret( KErrNone ); |
1374 TInt ret( KErrNone ); |
1375 // Save Reqhandle for CompleteSendSmsMessage |
1375 // Save Reqhandle for CompleteSendSmsMessage |
1376 iSendSmsTsyReqHandle = aTsyReqHandle; |
1376 iSendSmsTsyReqHandle = aTsyReqHandle; |
1377 RSat::TSatSmsV1Pckg* aPckg = REINTERPRET_CAST( RSat::TSatSmsV1Pckg*, aMsg ); |
1377 RSat::TSatSmsV1Pckg* aPckg = REINTERPRET_CAST( RSat::TSatSmsV1Pckg*, aMsg ); |
1446 #if (NCP_COMMON_S60_VERSION_SUPPORT==S60_VERSION_32) |
1446 #if (NCP_COMMON_S60_VERSION_SUPPORT==S60_VERSION_32) |
1447 // Get SMS messaging class pointer for sending sms messages |
1447 // Get SMS messaging class pointer for sending sms messages |
1448 CMmSmsTsy* mmSmsTsy = iMmPhone->SmsSession(); |
1448 CMmSmsTsy* mmSmsTsy = iMmPhone->SmsSession(); |
1449 TFLOGSTRING2("TSY: CTsySatMessaging::SendMessageNoLoggingL, \ |
1449 TFLOGSTRING2("TSY: CTsySatMessaging::SendMessageNoLoggingL, \ |
1450 mmSmsTsy: %x", mmSmsTsy ); |
1450 mmSmsTsy: %x", mmSmsTsy ); |
1451 OstTrace1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL, "CTsySatMessaging::SendMessageNoLoggingL, mmSmsTsy: %x", mmSmsTsy ); |
1451 OstTrace1( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL_TD, "CTsySatMessaging::SendMessageNoLoggingL, mmSmsTsy: %x", mmSmsTsy ); |
1452 |
1452 |
1453 if ( mmSmsTsy ) // Check that SMS session exist |
1453 if ( mmSmsTsy ) // Check that SMS session exist |
1454 { |
1454 { |
1455 // Call SMS sending function from MMSMS |
1455 // Call SMS sending function from MMSMS |
1456 ret = mmSmsTsy->SendSatMessage( this, pdu, sca, &numberType, |
1456 ret = mmSmsTsy->SendSatMessage( this, pdu, sca, &numberType, |
1457 &numberPlan, EFalse, aTsyReqHandle ); |
1457 &numberPlan, EFalse, aTsyReqHandle ); |
1458 TFLOGSTRING2("TSY: CTsySatMessaging::SendMessageNoLoggingL, \ |
1458 TFLOGSTRING2("TSY: CTsySatMessaging::SendMessageNoLoggingL, \ |
1459 SendSmsMessage done, ret: %x", ret ); |
1459 SendSmsMessage done, ret: %x", ret ); |
1460 OstTrace1( TRACE_NORMAL, DUP2_CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL, "CTsySatMessaging::SendMessageNoLoggingL, SendSmsMessage done, ret: %d", ret ); |
1460 OstTrace1( TRACE_NORMAL, DUP2_CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL_TD, "CTsySatMessaging::SendMessageNoLoggingL, SendSmsMessage done, ret: %d", ret ); |
1461 } |
1461 } |
1462 else |
1462 else |
1463 { |
1463 { |
1464 // No SMS session. |
1464 // No SMS session. |
1465 ret = KErrNotReady; |
1465 ret = KErrNotReady; |
1466 TFLOGSTRING("TSY: CTsySatMessaging::SendMessageNoLoggingL, \ |
1466 TFLOGSTRING("TSY: CTsySatMessaging::SendMessageNoLoggingL, \ |
1467 no SMS session!"); |
1467 no SMS session!"); |
1468 OstTrace0( TRACE_NORMAL, DUP3_CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL, "CTsySatMessaging::SendMessageNoLoggingL, no SMS session!" ); |
1468 OstTrace0( TRACE_NORMAL, DUP3_CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL_TD, "CTsySatMessaging::SendMessageNoLoggingL, no SMS session!" ); |
1469 } |
1469 } |
1470 #else //NCP_COMMON_S60_VERSION_SUPPORT |
1470 #else //NCP_COMMON_S60_VERSION_SUPPORT |
1471 // Deliver attributes to message handler by using |
1471 // Deliver attributes to message handler by using |
1472 // TMobileSmsSendAttributesV1 class. |
1472 // TMobileSmsSendAttributesV1 class. |
1473 RMobileSmsMessaging::TMobileSmsSendAttributesV1 msgAttrib; |
1473 RMobileSmsMessaging::TMobileSmsSendAttributesV1 msgAttrib; |
1511 else // SCA missing |
1511 else // SCA missing |
1512 { |
1512 { |
1513 ret = KErrGeneral; |
1513 ret = KErrGeneral; |
1514 TFLOGSTRING("TSY: CTsySatMessaging::SendMessageNoLoggingL, \ |
1514 TFLOGSTRING("TSY: CTsySatMessaging::SendMessageNoLoggingL, \ |
1515 SCA missing"); |
1515 SCA missing"); |
1516 OstTrace0( TRACE_NORMAL, DUP4_CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL, "CTsySatMessaging::SendMessageNoLoggingL, SCA missing" ); |
1516 OstTrace0( TRACE_NORMAL, DUP4_CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL_TD, "CTsySatMessaging::SendMessageNoLoggingL, SCA missing" ); |
1517 |
1517 |
1518 } |
1518 } |
1519 // Failure in sending of SAT SMS, call complete method |
1519 // Failure in sending of SAT SMS, call complete method |
1520 if ( KErrNone != ret ) |
1520 if ( KErrNone != ret ) |
1521 { |
1521 { |
1522 CompleteSendSmsMessage( ret ); |
1522 CompleteSendSmsMessage( ret ); |
1523 TFLOGSTRING("TSY: CTsySatMessaging::SendMessageNoLoggingL, \ |
1523 TFLOGSTRING("TSY: CTsySatMessaging::SendMessageNoLoggingL, \ |
1524 failure sending SAT SMS, complete"); |
1524 failure sending SAT SMS, complete"); |
1525 OstTrace0( TRACE_NORMAL, DUP5_CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL, "CTsySatMessaging::SendMessageNoLoggingL, failure sending SAT SMS, complete" ); |
1525 OstTrace0( TRACE_NORMAL, DUP5_CTSYSATMESSAGING_SENDMESSAGENOLOGGINGL_TD, "CTsySatMessaging::SendMessageNoLoggingL, failure sending SAT SMS, complete" ); |
1526 |
1526 |
1527 } |
1527 } |
1528 return ret; |
1528 return ret; |
1529 |
1529 |
1530 } |
1530 } |
1540 RSat::TPCmd* aPCmd, // SAT command identifier |
1540 RSat::TPCmd* aPCmd, // SAT command identifier |
1541 TDes8* aRsp, // Response |
1541 TDes8* aRsp, // Response |
1542 TTsyReqHandle aTsyReqHandle // Request handle |
1542 TTsyReqHandle aTsyReqHandle // Request handle |
1543 ) |
1543 ) |
1544 { |
1544 { |
1545 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_TERMINALRESPONSE, "CTsySatMessaging::TerminalResponse" ); |
1545 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_TERMINALRESPONSE_TD, "CTsySatMessaging::TerminalResponse" ); |
1546 TFLOGSTRING("TSY: CTsySatMessaging::TerminalResponse"); |
1546 TFLOGSTRING("TSY: CTsySatMessaging::TerminalResponse"); |
1547 TInt ret( KErrNone ); |
1547 TInt ret( KErrNone ); |
1548 switch ( *aPCmd ) |
1548 switch ( *aPCmd ) |
1549 { |
1549 { |
1550 case RSat::EDisplayText: |
1550 case RSat::EDisplayText: |
1616 ret = iNotifySendData->TerminalResponse( aRsp ); |
1616 ret = iNotifySendData->TerminalResponse( aRsp ); |
1617 break; |
1617 break; |
1618 default: |
1618 default: |
1619 TFLOGSTRING("TSY: CTsySatMessaging::TerminalResponse, \ |
1619 TFLOGSTRING("TSY: CTsySatMessaging::TerminalResponse, \ |
1620 PCmd not supported"); |
1620 PCmd not supported"); |
1621 OstTrace0( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_TERMINALRESPONSE, "CTsySatMessaging::TerminalResponse, PCmd not supported" ); |
1621 OstTrace0( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_TERMINALRESPONSE_TD, "CTsySatMessaging::TerminalResponse, PCmd not supported" ); |
1622 |
1622 |
1623 ret = KErrGeneral; |
1623 ret = KErrGeneral; |
1624 break; |
1624 break; |
1625 } |
1625 } |
1626 ReqCompleted( aTsyReqHandle, ret ); |
1626 ReqCompleted( aTsyReqHandle, ret ); |
1635 // (other items were commented in a header). |
1635 // (other items were commented in a header). |
1636 // ----------------------------------------------------------------------------- |
1636 // ----------------------------------------------------------------------------- |
1637 // |
1637 // |
1638 void CTsySatMessaging::PCmdReceivedL( const TIsiReceiveC& aIsiMessage ) |
1638 void CTsySatMessaging::PCmdReceivedL( const TIsiReceiveC& aIsiMessage ) |
1639 { |
1639 { |
1640 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_PCMDRECEIVEDL, "CTsySatMessaging::PCmdReceivedL" ); |
1640 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_PCMDRECEIVEDL_TD, "CTsySatMessaging::PCmdReceivedL" ); |
1641 TFLOGSTRING("TSY: CTsySatMessaging::PCmdReceivedL"); |
1641 TFLOGSTRING("TSY: CTsySatMessaging::PCmdReceivedL"); |
1642 CBerTlv berTlv; |
1642 CBerTlv berTlv; |
1643 berTlv.BerTlv( aIsiMessage ); |
1643 berTlv.BerTlv( aIsiMessage ); |
1644 CTlv commandDetails; |
1644 CTlv commandDetails; |
1645 berTlv.TlvByTagValue( &commandDetails, KTlvCommandDetailsTag ); |
1645 berTlv.TlvByTagValue( &commandDetails, KTlvCommandDetailsTag ); |
1728 iNotifySendData->MessageReceived( aIsiMessage ); |
1728 iNotifySendData->MessageReceived( aIsiMessage ); |
1729 break; |
1729 break; |
1730 default: |
1730 default: |
1731 { |
1731 { |
1732 TFLOGSTRING("TSY: CTsySatMessaging::PCmdReceivedL, PCmd not supported"); |
1732 TFLOGSTRING("TSY: CTsySatMessaging::PCmdReceivedL, PCmd not supported"); |
1733 OstTrace0( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_PCMDRECEIVEDL, "CTsySatMessaging::PCmdReceivedL, PCmd not supported" ); |
1733 OstTrace0( TRACE_NORMAL, DUP1_CTSYSATMESSAGING_PCMDRECEIVEDL_TD, "CTsySatMessaging::PCmdReceivedL, PCmd not supported" ); |
1734 |
1734 |
1735 // If proactive command is not supported, terminal response |
1735 // If proactive command is not supported, terminal response |
1736 // with "Command is beyond ME's capabilities" information |
1736 // with "Command is beyond ME's capabilities" information |
1737 // will be send. ProactiveCommandOngoing status will be set |
1737 // will be send. ProactiveCommandOngoing status will be set |
1738 // to EFalse in SendTerminalResponseL(). |
1738 // to EFalse in SendTerminalResponseL(). |
1762 ( |
1762 ( |
1763 TInt aTimerId, |
1763 TInt aTimerId, |
1764 TUint32 aTimerValue |
1764 TUint32 aTimerValue |
1765 ) |
1765 ) |
1766 { |
1766 { |
1767 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_TIMEREXPIRATION, "CTsySatMessaging::TimerExpiration" ); |
1767 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_TIMEREXPIRATION_TD, "CTsySatMessaging::TimerExpiration" ); |
1768 TFLOGSTRING("TSY: CTsySatMessaging::TimerExpiration"); |
1768 TFLOGSTRING("TSY: CTsySatMessaging::TimerExpiration"); |
1769 TUint8 time[3] = {0, 0, 0}; |
1769 TUint8 time[3] = {0, 0, 0}; |
1770 TInt num[3]; |
1770 TInt num[3]; |
1771 num[0] = aTimerValue/3600; //hours |
1771 num[0] = aTimerValue/3600; //hours |
1772 num[1] = ( aTimerValue%3600 )/60; //minutes |
1772 num[1] = ( aTimerValue%3600 )/60; //minutes |
1789 // (other items were commented in a header). |
1789 // (other items were commented in a header). |
1790 // ----------------------------------------------------------------------------- |
1790 // ----------------------------------------------------------------------------- |
1791 // |
1791 // |
1792 CSatTimer* CTsySatMessaging::GetSatTimer() |
1792 CSatTimer* CTsySatMessaging::GetSatTimer() |
1793 { |
1793 { |
1794 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETSATTIMER, "CTsySatMessaging::GetSatTimer" ); |
1794 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETSATTIMER_TD, "CTsySatMessaging::GetSatTimer" ); |
1795 // Pointer to SAT timer |
1795 // Pointer to SAT timer |
1796 return iSatTimer; |
1796 return iSatTimer; |
1797 } |
1797 } |
1798 |
1798 |
1799 // ----------------------------------------------------------------------------- |
1799 // ----------------------------------------------------------------------------- |
1802 // (other items were commented in a header). |
1802 // (other items were commented in a header). |
1803 // ----------------------------------------------------------------------------- |
1803 // ----------------------------------------------------------------------------- |
1804 // |
1804 // |
1805 CSatNotifyRefresh* CTsySatMessaging::GetNotifyRefresh() |
1805 CSatNotifyRefresh* CTsySatMessaging::GetNotifyRefresh() |
1806 { |
1806 { |
1807 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETNOTIFYREFRESH, "CTsySatMessaging::GetNotifyRefresh" ); |
1807 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETNOTIFYREFRESH_TD, "CTsySatMessaging::GetNotifyRefresh" ); |
1808 return iNotifyRefresh; |
1808 return iNotifyRefresh; |
1809 } |
1809 } |
1810 |
1810 |
1811 // ----------------------------------------------------------------------------- |
1811 // ----------------------------------------------------------------------------- |
1812 // CTsySatMessaging::GetDataDownload |
1812 // CTsySatMessaging::GetDataDownload |
1814 // (other items were commented in a header). |
1814 // (other items were commented in a header). |
1815 // ----------------------------------------------------------------------------- |
1815 // ----------------------------------------------------------------------------- |
1816 // |
1816 // |
1817 CSatDataDownload* CTsySatMessaging::GetDataDownload() |
1817 CSatDataDownload* CTsySatMessaging::GetDataDownload() |
1818 { |
1818 { |
1819 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETDATADOWNLOAD, "CTsySatMessaging::GetDataDownload" ); |
1819 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETDATADOWNLOAD_TD, "CTsySatMessaging::GetDataDownload" ); |
1820 return iSatDataDownload; |
1820 return iSatDataDownload; |
1821 } |
1821 } |
1822 |
1822 |
1823 // ----------------------------------------------------------------------------- |
1823 // ----------------------------------------------------------------------------- |
1824 // CTsySatMessaging::GetNotifyPollInterval |
1824 // CTsySatMessaging::GetNotifyPollInterval |
1826 // (other items were commented in a header). |
1826 // (other items were commented in a header). |
1827 // ----------------------------------------------------------------------------- |
1827 // ----------------------------------------------------------------------------- |
1828 // |
1828 // |
1829 CSatNotifyPollInterval* CTsySatMessaging::GetNotifyPollInterval() |
1829 CSatNotifyPollInterval* CTsySatMessaging::GetNotifyPollInterval() |
1830 { |
1830 { |
1831 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETNOTIFYPOLLINTERVAL, "CTsySatMessaging::GetNotifyPollInterval" ); |
1831 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETNOTIFYPOLLINTERVAL_TD, "CTsySatMessaging::GetNotifyPollInterval" ); |
1832 return iNotifyPollInterval; |
1832 return iNotifyPollInterval; |
1833 } |
1833 } |
1834 |
1834 |
1835 // ----------------------------------------------------------------------------- |
1835 // ----------------------------------------------------------------------------- |
1836 // CTsySatMessaging::GetMoSmsCtrl |
1836 // CTsySatMessaging::GetMoSmsCtrl |
1838 // (other items were commented in a header). |
1838 // (other items were commented in a header). |
1839 // ----------------------------------------------------------------------------- |
1839 // ----------------------------------------------------------------------------- |
1840 // |
1840 // |
1841 CSatMoSmsCtrl* CTsySatMessaging::GetMoSmsCtrl() |
1841 CSatMoSmsCtrl* CTsySatMessaging::GetMoSmsCtrl() |
1842 { |
1842 { |
1843 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETMOSMSCTRL, "CTsySatMessaging::GetMoSmsCtrl" ); |
1843 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETMOSMSCTRL_TD, "CTsySatMessaging::GetMoSmsCtrl" ); |
1844 return iSatMoSmsCtrl; |
1844 return iSatMoSmsCtrl; |
1845 } |
1845 } |
1846 |
1846 |
1847 // ----------------------------------------------------------------------------- |
1847 // ----------------------------------------------------------------------------- |
1848 // CTsySatMessaging::GetEventDownload |
1848 // CTsySatMessaging::GetEventDownload |
1850 // (other items were commented in a header). |
1850 // (other items were commented in a header). |
1851 // ----------------------------------------------------------------------------- |
1851 // ----------------------------------------------------------------------------- |
1852 // |
1852 // |
1853 CSatEventDownload* CTsySatMessaging::GetEventDownload() |
1853 CSatEventDownload* CTsySatMessaging::GetEventDownload() |
1854 { |
1854 { |
1855 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETEVENTDOWNLOAD, "CTsySatMessaging::GetEventDownload" ); |
1855 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETEVENTDOWNLOAD_TD, "CTsySatMessaging::GetEventDownload" ); |
1856 return iEventDownload; |
1856 return iEventDownload; |
1857 } |
1857 } |
1858 |
1858 |
1859 // ----------------------------------------------------------------------------- |
1859 // ----------------------------------------------------------------------------- |
1860 // CTsySatMessaging::GetNotifyPollingOff |
1860 // CTsySatMessaging::GetNotifyPollingOff |
1862 // (other items were commented in a header). |
1862 // (other items were commented in a header). |
1863 // ----------------------------------------------------------------------------- |
1863 // ----------------------------------------------------------------------------- |
1864 // |
1864 // |
1865 CSatNotifyPollingOff* CTsySatMessaging::GetNotifyPollingOff() |
1865 CSatNotifyPollingOff* CTsySatMessaging::GetNotifyPollingOff() |
1866 { |
1866 { |
1867 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETNOTIFYPOLLINGOFF, "CTsySatMessaging::GetNotifyPollingOff" ); |
1867 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETNOTIFYPOLLINGOFF_TD, "CTsySatMessaging::GetNotifyPollingOff" ); |
1868 return iNotifyPollingOff; |
1868 return iNotifyPollingOff; |
1869 } |
1869 } |
1870 |
1870 |
1871 // ----------------------------------------------------------------------------- |
1871 // ----------------------------------------------------------------------------- |
1872 // CTsySatMessaging::GetNotifyLocalInfo |
1872 // CTsySatMessaging::GetNotifyLocalInfo |
1874 // (other items were commented in a header). |
1874 // (other items were commented in a header). |
1875 // ----------------------------------------------------------------------------- |
1875 // ----------------------------------------------------------------------------- |
1876 // |
1876 // |
1877 CSatNotifyLocalInfo* CTsySatMessaging::GetNotifyLocalInfo() |
1877 CSatNotifyLocalInfo* CTsySatMessaging::GetNotifyLocalInfo() |
1878 { |
1878 { |
1879 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETNOTIFYLOCALINFO, "CTsySatMessaging::GetNotifyLocalInfo" ); |
1879 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETNOTIFYLOCALINFO_TD, "CTsySatMessaging::GetNotifyLocalInfo" ); |
1880 return iNotifyLocalInfo; |
1880 return iNotifyLocalInfo; |
1881 } |
1881 } |
1882 |
1882 |
1883 // ----------------------------------------------------------------------------- |
1883 // ----------------------------------------------------------------------------- |
1884 // CTsySatMessaging::EventDownloadReceived |
1884 // CTsySatMessaging::EventDownloadReceived |
1889 void CTsySatMessaging::EventDownloadReceived |
1889 void CTsySatMessaging::EventDownloadReceived |
1890 ( |
1890 ( |
1891 const TIsiReceiveC& aIsiMessage //Event download message |
1891 const TIsiReceiveC& aIsiMessage //Event download message |
1892 ) |
1892 ) |
1893 { |
1893 { |
1894 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_EVENTDOWNLOADRECEIVED, "CTsySatMessaging::EventDownloadReceived" ); |
1894 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_EVENTDOWNLOADRECEIVED_TD, "CTsySatMessaging::EventDownloadReceived" ); |
1895 iEventDownload->MessageReceived( aIsiMessage ); |
1895 iEventDownload->MessageReceived( aIsiMessage ); |
1896 } |
1896 } |
1897 |
1897 |
1898 // ----------------------------------------------------------------------------- |
1898 // ----------------------------------------------------------------------------- |
1899 // CTsySatMessaging::SetUpEventList |
1899 // CTsySatMessaging::SetUpEventList |
1904 void CTsySatMessaging::SetUpEventList |
1904 void CTsySatMessaging::SetUpEventList |
1905 ( |
1905 ( |
1906 TUint32 aEvents //events to be monitored |
1906 TUint32 aEvents //events to be monitored |
1907 ) |
1907 ) |
1908 { |
1908 { |
1909 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_SETUPEVENTLIST, "CTsySatMessaging::SetUpEventList" ); |
1909 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_SETUPEVENTLIST_TD, "CTsySatMessaging::SetUpEventList" ); |
1910 iEventDownload->SetUpEventList( aEvents ); |
1910 iEventDownload->SetUpEventList( aEvents ); |
1911 } |
1911 } |
1912 |
1912 |
1913 // ----------------------------------------------------------------------------- |
1913 // ----------------------------------------------------------------------------- |
1914 // CTsySatMessaging::SessionEnd |
1914 // CTsySatMessaging::SessionEnd |
1919 void CTsySatMessaging::SessionEnd |
1919 void CTsySatMessaging::SessionEnd |
1920 ( |
1920 ( |
1921 const TIsiReceiveC& aIsiMessage //message ending session |
1921 const TIsiReceiveC& aIsiMessage //message ending session |
1922 ) |
1922 ) |
1923 { |
1923 { |
1924 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_SESSIONEND, "CTsySatMessaging::SessionEnd" ); |
1924 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_SESSIONEND_TD, "CTsySatMessaging::SessionEnd" ); |
1925 iNotifySimSessionEnd->MessageReceived( aIsiMessage ); |
1925 iNotifySimSessionEnd->MessageReceived( aIsiMessage ); |
1926 } |
1926 } |
1927 |
1927 |
1928 // ----------------------------------------------------------------------------- |
1928 // ----------------------------------------------------------------------------- |
1929 // CTsySatMessaging::NotifyClientAboutCallControlEvent |
1929 // CTsySatMessaging::NotifyClientAboutCallControlEvent |
1935 ( |
1935 ( |
1936 TDesC& aAlphaId, //Alpha id of call control event |
1936 TDesC& aAlphaId, //Alpha id of call control event |
1937 RSat::TControlResult aResult |
1937 RSat::TControlResult aResult |
1938 ) |
1938 ) |
1939 { |
1939 { |
1940 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NOTIFYCLIENTABOUTCALLCONTROLEVENT, "CTsySatMessaging::NotifyClientAboutCallControlEvent" ); |
1940 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NOTIFYCLIENTABOUTCALLCONTROLEVENT_TD, "CTsySatMessaging::NotifyClientAboutCallControlEvent" ); |
1941 iNotifyCallControlRequest->CompleteNotification( aAlphaId, aResult ); |
1941 iNotifyCallControlRequest->CompleteNotification( aAlphaId, aResult ); |
1942 } |
1942 } |
1943 |
1943 |
1944 // ----------------------------------------------------------------------------- |
1944 // ----------------------------------------------------------------------------- |
1945 // CTsySatMessaging::NotifyClientAboutCallControlEventL |
1945 // CTsySatMessaging::NotifyClientAboutCallControlEventL |
1951 ( |
1951 ( |
1952 const TUint8 aCcResult, |
1952 const TUint8 aCcResult, |
1953 TPtrC8 aEnvelopeResponse |
1953 TPtrC8 aEnvelopeResponse |
1954 ) |
1954 ) |
1955 { |
1955 { |
1956 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NOTIFYCLIENTABOUTCALLCONTROLEVENTL, "CTsySatMessaging::NotifyClientAboutCallControlEventL" ); |
1956 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NOTIFYCLIENTABOUTCALLCONTROLEVENTL_TD, "CTsySatMessaging::NotifyClientAboutCallControlEventL" ); |
1957 iNotifyCallControlRequest->CompleteNotificationL( aCcResult, aEnvelopeResponse ); |
1957 iNotifyCallControlRequest->CompleteNotificationL( aCcResult, aEnvelopeResponse ); |
1958 } |
1958 } |
1959 |
1959 |
1960 // ----------------------------------------------------------------------------- |
1960 // ----------------------------------------------------------------------------- |
1961 // CTsySatMessaging::NotifyClientAboutGprsCallControlEvent |
1961 // CTsySatMessaging::NotifyClientAboutGprsCallControlEvent |
1985 ( |
1985 ( |
1986 TDesC& aAlphaId, //Alpha id of MO-SMS control event |
1986 TDesC& aAlphaId, //Alpha id of MO-SMS control event |
1987 RSat::TControlResult aResult |
1987 RSat::TControlResult aResult |
1988 ) |
1988 ) |
1989 { |
1989 { |
1990 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NOTIFYCLIENTABOUTMOSMCONTROLEVENT, "CTsySatMessaging::NotifyClientAboutMoSmControlEvent" ); |
1990 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_NOTIFYCLIENTABOUTMOSMCONTROLEVENT_TD, "CTsySatMessaging::NotifyClientAboutMoSmControlEvent" ); |
1991 iNotifyMoSmControlRequest->CompleteNotification( aAlphaId, aResult ); |
1991 iNotifyMoSmControlRequest->CompleteNotification( aAlphaId, aResult ); |
1992 } |
1992 } |
1993 |
1993 |
1994 // ----------------------------------------------------------------------------- |
1994 // ----------------------------------------------------------------------------- |
1995 // CTsySatMessaging::GetTransactionId |
1995 // CTsySatMessaging::GetTransactionId |
1997 // (other items were commented in a header). |
1997 // (other items were commented in a header). |
1998 // ----------------------------------------------------------------------------- |
1998 // ----------------------------------------------------------------------------- |
1999 // |
1999 // |
2000 TUint8 CTsySatMessaging::GetTransactionId() |
2000 TUint8 CTsySatMessaging::GetTransactionId() |
2001 { |
2001 { |
2002 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETTRANSACTIONID, "CTsySatMessaging::GetTransactionId" ); |
2002 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETTRANSACTIONID_TD, "CTsySatMessaging::GetTransactionId" ); |
2003 return iTransIdMsg->GetTransactionId( ); |
2003 return iTransIdMsg->GetTransactionId( ); |
2004 } |
2004 } |
2005 |
2005 |
2006 // ----------------------------------------------------------------------------- |
2006 // ----------------------------------------------------------------------------- |
2007 // CTsySatMessaging::SatReady |
2007 // CTsySatMessaging::SatReady |
2012 TInt CTsySatMessaging::SatReady |
2012 TInt CTsySatMessaging::SatReady |
2013 ( |
2013 ( |
2014 TUint8 aMsg // Message to be retrieved |
2014 TUint8 aMsg // Message to be retrieved |
2015 ) |
2015 ) |
2016 { |
2016 { |
2017 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_SATREADY, "CTsySatMessaging::SatReady" ); |
2017 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_SATREADY_TD, "CTsySatMessaging::SatReady" ); |
2018 return iPnReceive->SatReady( aMsg ); |
2018 return iPnReceive->SatReady( aMsg ); |
2019 } |
2019 } |
2020 |
2020 |
2021 // ----------------------------------------------------------------------------- |
2021 // ----------------------------------------------------------------------------- |
2022 // CTsySatMessaging::ClearCCArrays |
2022 // CTsySatMessaging::ClearCCArrays |
2025 // (other items were commented in a header). |
2025 // (other items were commented in a header). |
2026 // ----------------------------------------------------------------------------- |
2026 // ----------------------------------------------------------------------------- |
2027 // |
2027 // |
2028 void CTsySatMessaging::ClearCCArrays() |
2028 void CTsySatMessaging::ClearCCArrays() |
2029 { |
2029 { |
2030 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_CLEARCCARRAYS, "CTsySatMessaging::ClearCCArrays" ); |
2030 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_CLEARCCARRAYS_TD, "CTsySatMessaging::ClearCCArrays" ); |
2031 iSatCC->ClearArraysForRefresh(); |
2031 iSatCC->ClearArraysForRefresh(); |
2032 } |
2032 } |
2033 |
2033 |
2034 // ----------------------------------------------------------------------------- |
2034 // ----------------------------------------------------------------------------- |
2035 // CTsySatMessaging::CallControlReceivedL |
2035 // CTsySatMessaging::CallControlReceivedL |
2040 void CTsySatMessaging::CallControlReceivedL |
2040 void CTsySatMessaging::CallControlReceivedL |
2041 ( |
2041 ( |
2042 const TIsiReceiveC& aIsiMessage |
2042 const TIsiReceiveC& aIsiMessage |
2043 ) |
2043 ) |
2044 { |
2044 { |
2045 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_CALLCONTROLRECEIVEDL, "CTsySatMessaging::CallControlReceivedL" ); |
2045 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_CALLCONTROLRECEIVEDL_TD, "CTsySatMessaging::CallControlReceivedL" ); |
2046 iSatCC->MessageReceivedL( aIsiMessage ); |
2046 iSatCC->MessageReceivedL( aIsiMessage ); |
2047 } |
2047 } |
2048 |
2048 |
2049 // ----------------------------------------------------------------------------- |
2049 // ----------------------------------------------------------------------------- |
2050 // CTsySatMessaging::DataDownloadReceivedL |
2050 // CTsySatMessaging::DataDownloadReceivedL |
2055 void CTsySatMessaging::DataDownloadReceivedL |
2055 void CTsySatMessaging::DataDownloadReceivedL |
2056 ( |
2056 ( |
2057 const TIsiReceiveC& aIsiMessage |
2057 const TIsiReceiveC& aIsiMessage |
2058 ) |
2058 ) |
2059 { |
2059 { |
2060 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_DATADOWNLOADRECEIVEDL, "CTsySatMessaging::DataDownloadReceivedL" ); |
2060 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_DATADOWNLOADRECEIVEDL_TD, "CTsySatMessaging::DataDownloadReceivedL" ); |
2061 iSatDataDownload->MessageReceivedL( aIsiMessage ); |
2061 iSatDataDownload->MessageReceivedL( aIsiMessage ); |
2062 } |
2062 } |
2063 |
2063 |
2064 // ----------------------------------------------------------------------------- |
2064 // ----------------------------------------------------------------------------- |
2065 // CTsySatMessaging::MoSmsControlReceivedL |
2065 // CTsySatMessaging::MoSmsControlReceivedL |
2087 // (other items were commented in a header). |
2087 // (other items were commented in a header). |
2088 // ----------------------------------------------------------------------------- |
2088 // ----------------------------------------------------------------------------- |
2089 // |
2089 // |
2090 TBool CTsySatMessaging::IsMoSmControlBySimActivated() |
2090 TBool CTsySatMessaging::IsMoSmControlBySimActivated() |
2091 { |
2091 { |
2092 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_ISMOSMCONTROLBYSIMACTIVATED, "CTsySatMessaging::IsMoSmControlBySimActivated" ); |
2092 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_ISMOSMCONTROLBYSIMACTIVATED_TD, "CTsySatMessaging::IsMoSmControlBySimActivated" ); |
2093 return iSatMoSmsCtrl->IsActivated(); |
2093 return iSatMoSmsCtrl->IsActivated(); |
2094 } |
2094 } |
2095 |
2095 |
2096 // ----------------------------------------------------------------------------- |
2096 // ----------------------------------------------------------------------------- |
2097 // CTsySatMessaging::GetSatIcon |
2097 // CTsySatMessaging::GetSatIcon |
2099 // (other items were commented in a header). |
2099 // (other items were commented in a header). |
2100 // ----------------------------------------------------------------------------- |
2100 // ----------------------------------------------------------------------------- |
2101 // |
2101 // |
2102 CSatIcon* CTsySatMessaging::GetSatIcon() |
2102 CSatIcon* CTsySatMessaging::GetSatIcon() |
2103 { |
2103 { |
2104 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETSATICON, "CTsySatMessaging::GetSatIcon" ); |
2104 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETSATICON_TD, "CTsySatMessaging::GetSatIcon" ); |
2105 // Pointer to SAT timer |
2105 // Pointer to SAT timer |
2106 return iSatIcon; |
2106 return iSatIcon; |
2107 } |
2107 } |
2108 |
2108 |
2109 // ----------------------------------------------------------------------------- |
2109 // ----------------------------------------------------------------------------- |
2115 void CTsySatMessaging::StoreCallConnectedEvent |
2115 void CTsySatMessaging::StoreCallConnectedEvent |
2116 ( |
2116 ( |
2117 const TDesC8& aEnvelope |
2117 const TDesC8& aEnvelope |
2118 ) |
2118 ) |
2119 { |
2119 { |
2120 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_STORECALLCONNECTEDEVENT, "CTsySatMessaging::StoreCallConnectedEvent" ); |
2120 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_STORECALLCONNECTEDEVENT_TD, "CTsySatMessaging::StoreCallConnectedEvent" ); |
2121 iNotifySetUpCall->StoreCallConnectedEvent( aEnvelope ); |
2121 iNotifySetUpCall->StoreCallConnectedEvent( aEnvelope ); |
2122 } |
2122 } |
2123 |
2123 |
2124 // ----------------------------------------------------------------------------- |
2124 // ----------------------------------------------------------------------------- |
2125 // CTsySatMessaging::SetSetUpCallStatus |
2125 // CTsySatMessaging::SetSetUpCallStatus |
2160 void CTsySatMessaging::SetTonNpi |
2160 void CTsySatMessaging::SetTonNpi |
2161 ( |
2161 ( |
2162 const TUint8 aTonNpi |
2162 const TUint8 aTonNpi |
2163 ) |
2163 ) |
2164 { |
2164 { |
2165 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_SETTONNPI, "CTsySatMessaging::SetTonNpi" ); |
2165 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_SETTONNPI_TD, "CTsySatMessaging::SetTonNpi" ); |
2166 iSatCC->SetTonNpi( aTonNpi ); |
2166 iSatCC->SetTonNpi( aTonNpi ); |
2167 } |
2167 } |
2168 |
2168 |
2169 // ----------------------------------------------------------------------------- |
2169 // ----------------------------------------------------------------------------- |
2170 // CTsySatMessaging::StoreSms |
2170 // CTsySatMessaging::StoreSms |
2175 TInt CTsySatMessaging::StoreSmsL |
2175 TInt CTsySatMessaging::StoreSmsL |
2176 ( |
2176 ( |
2177 RMobileSmsStore::TMobileGsmSmsEntryV1& aSmsEntry |
2177 RMobileSmsStore::TMobileGsmSmsEntryV1& aSmsEntry |
2178 ) |
2178 ) |
2179 { |
2179 { |
2180 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_STORESMSL, "CTsySatMessaging::StoreSmsL" ); |
2180 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_STORESMSL_TD, "CTsySatMessaging::StoreSmsL" ); |
2181 #if ( NCP_COMMON_S60_VERSION_SUPPORT == S60_VERSION_32 ) |
2181 #if ( NCP_COMMON_S60_VERSION_SUPPORT == S60_VERSION_32 ) |
2182 RMobileSmsStore::TMobileGsmSmsEntryV1Pckg smsPckg( aSmsEntry ); |
2182 RMobileSmsStore::TMobileGsmSmsEntryV1Pckg smsPckg( aSmsEntry ); |
2183 |
2183 |
2184 // Pack data and forward request to DOS |
2184 // Pack data and forward request to DOS |
2185 TDesC8* data = reinterpret_cast<TDesC8*>( &smsPckg ); |
2185 TDesC8* data = reinterpret_cast<TDesC8*>( &smsPckg ); |
2216 // (other items were commented in a header). |
2216 // (other items were commented in a header). |
2217 // ----------------------------------------------------------------------------- |
2217 // ----------------------------------------------------------------------------- |
2218 // |
2218 // |
2219 void CTsySatMessaging::UsatClientReadyIndication( TTsyReqHandle aTsyReqHandle ) |
2219 void CTsySatMessaging::UsatClientReadyIndication( TTsyReqHandle aTsyReqHandle ) |
2220 { |
2220 { |
2221 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_USATCLIENTREADYINDICATION, "CTsySatMessaging::UsatClientReadyIndication" ); |
2221 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_USATCLIENTREADYINDICATION_TD, "CTsySatMessaging::UsatClientReadyIndication" ); |
2222 TFLOGSTRING("TSY: CTsySatMessaging::UsatClientReadyIndication"); |
2222 TFLOGSTRING("TSY: CTsySatMessaging::UsatClientReadyIndication"); |
2223 |
2223 |
2224 // Set SAT ready flag in satmesshandler |
2224 // Set SAT ready flag in satmesshandler |
2225 iSatMessHandler->SetSatReadyStatus( ETrue ); |
2225 iSatMessHandler->SetSatReadyStatus( ETrue ); |
2226 |
2226 |
2250 // (other items were commented in a header) |
2250 // (other items were commented in a header) |
2251 // ----------------------------------------------------------------------------- |
2251 // ----------------------------------------------------------------------------- |
2252 // |
2252 // |
2253 CMmMessageRouter* CTsySatMessaging::GetMessageRouter() |
2253 CMmMessageRouter* CTsySatMessaging::GetMessageRouter() |
2254 { |
2254 { |
2255 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETMESSAGEROUTER, "CTsySatMessaging::GetMessageRouter" ); |
2255 OstTrace0( TRACE_NORMAL, CTSYSATMESSAGING_GETMESSAGEROUTER_TD, "CTsySatMessaging::GetMessageRouter" ); |
2256 return iRouter; |
2256 return iRouter; |
2257 } |
2257 } |
2258 #endif |
2258 #endif |
2259 |
2259 |
2260 // ================= OTHER EXPORTED FUNCTIONS ================================== |
2260 // ================= OTHER EXPORTED FUNCTIONS ================================== |