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". |
19 |
19 |
20 |
20 |
21 |
21 |
22 |
22 |
23 //INCLUDES |
23 //INCLUDES |
24 |
|
25 #include "OstTraceDefinitions.h" |
|
26 #ifdef OST_TRACE_COMPILER_IN_USE |
|
27 #include "csatnotificationstsyTraces.h" |
|
28 #endif |
|
29 |
|
30 #include <satcs.h> // Etel SAT IPC definitions |
24 #include <satcs.h> // Etel SAT IPC definitions |
31 #include "CSatDataPackage.h" // Parameter packing |
25 #include "CSatDataPackage.h" // Parameter packing |
32 #include "CSatTsy.h" // Sat Tsy class |
26 #include "CSatTsy.h" // Sat Tsy class |
33 #include "CSatCCTsy.h" // Sat Call Contol Tsy class |
27 #include "CSatCCTsy.h" // Sat Call Contol Tsy class |
34 #include "cmmmessagemanagerbase.h" // Message manager class for forwarding req |
28 #include "cmmmessagemanagerbase.h" // Message manager class for forwarding req |
62 #include "CSatNotifyCloseChannel.h" // Close channel notification notify class |
56 #include "CSatNotifyCloseChannel.h" // Close channel notification notify class |
63 #include "CSatNotifySendData.h" // Send Data notification notify class |
57 #include "CSatNotifySendData.h" // Send Data notification notify class |
64 #include "CSatNotifyReceiveData.h" // Receive data notification notify class |
58 #include "CSatNotifyReceiveData.h" // Receive data notification notify class |
65 #include "CSatNotifyMoreTime.h" // More time notification notify class |
59 #include "CSatNotifyMoreTime.h" // More time notification notify class |
66 #include "CSatTsyReqHandleStore.h" // Request handle class |
60 #include "CSatTsyReqHandleStore.h" // Request handle class |
|
61 #include "TfLogger.h" // For TFLOGSTRING |
67 #include "CBerTlv.h" // Ber Tlv |
62 #include "CBerTlv.h" // Ber Tlv |
68 #include "TTlv.h" // TTlv class |
63 #include "TTlv.h" // TTlv class |
69 #include "msattsy_ipcdefs.h" // Sat Tsy specific request types |
64 #include "msattsy_ipcdefs.h" // Sat Tsy specific request types |
70 #include "TSatUtility.h" // Utilities |
65 #include "TSatUtility.h" // Utilities |
71 |
66 |
79 ( |
74 ( |
80 CSatTsy* aSatTsy, |
75 CSatTsy* aSatTsy, |
81 CSatTsyReqHandleStore* aSatReqHandleStore |
76 CSatTsyReqHandleStore* aSatReqHandleStore |
82 ) |
77 ) |
83 { |
78 { |
84 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_NEWL_1, "CSAT: CSatNotificationsTsy::NewL"); |
79 TFLOGSTRING("CSAT: CSatNotificationsTsy::NewL"); |
85 CSatNotificationsTsy* const satNotificationsTsy = |
80 CSatNotificationsTsy* const satNotificationsTsy = |
86 new ( ELeave ) CSatNotificationsTsy( aSatTsy, aSatReqHandleStore ); |
81 new ( ELeave ) CSatNotificationsTsy( aSatTsy, aSatReqHandleStore ); |
87 |
82 |
88 CleanupStack::PushL( satNotificationsTsy ); |
83 CleanupStack::PushL( satNotificationsTsy ); |
89 satNotificationsTsy->ConstructL(); |
84 satNotificationsTsy->ConstructL(); |
90 CleanupStack::Pop(); |
85 CleanupStack::Pop(); |
91 |
86 |
92 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_NEWL_2, "CSAT: CSatNotificationsTsy::NewL, end of method"); |
87 TFLOGSTRING("CSAT: CSatNotificationsTsy::NewL, end of method"); |
93 return satNotificationsTsy; |
88 return satNotificationsTsy; |
94 } |
89 } |
95 |
90 |
96 // ----------------------------------------------------------------------------- |
91 // ----------------------------------------------------------------------------- |
97 // CSatNotificationsTsy::~CSatNotificationsTsy |
92 // CSatNotificationsTsy::~CSatNotificationsTsy |
101 CSatNotificationsTsy::~CSatNotificationsTsy |
96 CSatNotificationsTsy::~CSatNotificationsTsy |
102 ( |
97 ( |
103 void |
98 void |
104 ) |
99 ) |
105 { |
100 { |
106 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_DTOR_1, "CSAT: CSatNotificationsTsy::~CSatNotificationsTsy"); |
101 TFLOGSTRING("CSAT: CSatNotificationsTsy::~CSatNotificationsTsy"); |
107 |
102 |
108 delete iSatTimer; |
103 delete iSatTimer; |
109 |
104 |
110 // Specific notification objects |
105 // Specific notification objects |
111 delete iNotifyDisplayText; |
106 delete iNotifyDisplayText; |
139 delete iNotifyMoreTime; |
134 delete iNotifyMoreTime; |
140 |
135 |
141 // Unregister. |
136 // Unregister. |
142 iSatTsy->MessageManager()->RegisterTsyObject( |
137 iSatTsy->MessageManager()->RegisterTsyObject( |
143 CMmMessageManagerBase::ESatNotificationsTsyObjType, NULL ); |
138 CMmMessageManagerBase::ESatNotificationsTsyObjType, NULL ); |
144 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_DTOR_2, "CSAT: CSatNotificationsTsy::~CSatNotificationsTsy, end of method"); |
139 TFLOGSTRING("CSAT: CSatNotificationsTsy::~CSatNotificationsTsy, \ |
|
140 end of method"); |
145 } |
141 } |
146 |
142 |
147 // ----------------------------------------------------------------------------- |
143 // ----------------------------------------------------------------------------- |
148 // CSatNotificationsTsy::CSatNotificationsTsy |
144 // CSatNotificationsTsy::CSatNotificationsTsy |
149 // C++ constructor |
145 // C++ constructor |
167 void CSatNotificationsTsy::ConstructL |
163 void CSatNotificationsTsy::ConstructL |
168 ( |
164 ( |
169 void |
165 void |
170 ) |
166 ) |
171 { |
167 { |
172 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_CONSTRUCTL_1, "CSAT: CSatNotificationsTsy::ConstructL\n" ); |
168 TFLOGSTRING("CSAT: CSatNotificationsTsy::ConstructL\n" ); |
173 |
169 |
174 // Register |
170 // Register |
175 iSatTsy->MessageManager()->RegisterTsyObject( |
171 iSatTsy->MessageManager()->RegisterTsyObject( |
176 CMmMessageManagerBase::ESatNotificationsTsyObjType, this ); |
172 CMmMessageManagerBase::ESatNotificationsTsyObjType, this ); |
177 |
173 |
326 iSatTsy->MessageManager()->HandleRequestL( ESatTsyGetIMEI ); |
322 iSatTsy->MessageManager()->HandleRequestL( ESatTsyGetIMEI ); |
327 |
323 |
328 // Checks if MO-SMS control should be activated |
324 // Checks if MO-SMS control should be activated |
329 //unnecassary IPC request as this is already called in CSatNotifyMoSmControlRequest::ConstructL |
325 //unnecassary IPC request as this is already called in CSatNotifyMoSmControlRequest::ConstructL |
330 //iSatTsy->MessageManager()->HandleRequestL( ESatTsyQueryMoSmsControlActivated ); |
326 //iSatTsy->MessageManager()->HandleRequestL( ESatTsyQueryMoSmsControlActivated ); |
331 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_CONSTRUCTL_2, "CSAT: CSatNotificationsTsy::ConstructL, end of method" ); |
327 TFLOGSTRING("CSAT: CSatNotificationsTsy::ConstructL, end of method" ); |
332 } |
328 } |
333 |
329 |
334 // ----------------------------------------------------------------------------- |
330 // ----------------------------------------------------------------------------- |
335 // CSatNotificationsTsy::DoExtFunc |
331 // CSatNotificationsTsy::DoExtFunc |
336 // Notifications-specific functionality of CSatTsy::DoExtFuncL |
332 // Notifications-specific functionality of CSatTsy::DoExtFuncL |
341 const TTsyReqHandle aTsyReqHandle, |
337 const TTsyReqHandle aTsyReqHandle, |
342 const TInt aIpc, |
338 const TInt aIpc, |
343 const TDataPackage& aPackage |
339 const TDataPackage& aPackage |
344 ) |
340 ) |
345 { |
341 { |
346 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_DOEXTFUNCL_1, "CSAT: CSatNotificationsTsy::DoExtFuncL\t IPC:%d,\t Handle:%d",aIpc, aTsyReqHandle); |
342 TFLOGSTRING3("CSAT: CSatNotificationsTsy::DoExtFuncL\t IPC:%d,\t Handle:%d", |
|
343 aIpc, aTsyReqHandle); |
347 |
344 |
348 TInt ret ( KErrNone ); |
345 TInt ret ( KErrNone ); |
349 |
346 |
350 TAny* dataPtr = aPackage.Ptr1(); |
347 TAny* dataPtr = aPackage.Ptr1(); |
351 |
348 |
503 iNotifyReceiveData->Notify( aTsyReqHandle, aPackage ); |
500 iNotifyReceiveData->Notify( aTsyReqHandle, aPackage ); |
504 break; |
501 break; |
505 } |
502 } |
506 default: |
503 default: |
507 { |
504 { |
508 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_DOEXTFUNCL_2, "CSAT: CSatNotificationsTsy::DoExtFuncL, IPC not supported"); |
505 TFLOGSTRING("CSAT: CSatNotificationsTsy::DoExtFuncL, \ |
|
506 IPC not supported"); |
509 ret = KErrNotSupported; |
507 ret = KErrNotSupported; |
510 break; |
508 break; |
511 } |
509 } |
512 } |
510 } |
513 return ret; |
511 return ret; |
522 ( |
520 ( |
523 const TInt aIpc, |
521 const TInt aIpc, |
524 const TTsyReqHandle aTsyReqHandle |
522 const TTsyReqHandle aTsyReqHandle |
525 ) |
523 ) |
526 { |
524 { |
527 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_CANCELSERVICE_1, "CSAT: CSatNotificationsTsy::CancelService.\n\t\t\t Handle:%d\n\t\t\t", aTsyReqHandle ); |
525 TFLOGSTRING2("CSAT: CSatNotificationsTsy::CancelService.\ |
|
526 \n\t\t\t Handle:%d\n\t\t\t", aTsyReqHandle ); |
528 |
527 |
529 TInt ret ( KErrNotSupported ); |
528 TInt ret ( KErrNotSupported ); |
530 |
529 |
531 // When the clients close their sub-sessions (eg. by calling RLine::Close), |
530 // When the clients close their sub-sessions (eg. by calling RLine::Close), |
532 // they may not have cancelled all their outstanding asynchronous requests |
531 // they may not have cancelled all their outstanding asynchronous requests |
690 ( |
689 ( |
691 CSatDataPackage* aDataPackage, |
690 CSatDataPackage* aDataPackage, |
692 TInt aErrorCode |
691 TInt aErrorCode |
693 ) |
692 ) |
694 { |
693 { |
695 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_SETPOLLINGRESULTL_1, "CSAT: CSatNotificationsTsy::SetPollingResultL"); |
694 TFLOGSTRING("CSAT: CSatNotificationsTsy::SetPollingResultL"); |
696 TUint8 pCmdNumber; |
695 TUint8 pCmdNumber; |
697 TUint8 interval; |
696 TUint8 interval; |
698 TBuf<RSat::KAdditionalInfoMaxSize> additionalInfo; |
697 TBuf<RSat::KAdditionalInfoMaxSize> additionalInfo; |
699 aDataPackage->UnPackData( pCmdNumber, interval ); |
698 aDataPackage->UnPackData( pCmdNumber, interval ); |
700 |
699 |
701 // NAA status OK |
700 // NAA status OK |
702 if ( KErrNone == aErrorCode ) |
701 if ( KErrNone == aErrorCode ) |
703 { |
702 { |
704 if ( iPollingOff ) |
703 if ( iPollingOff ) |
705 { |
704 { |
706 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_SETPOLLINGRESULTL_2, "CSAT: CSatNotificationsTsy::SetPollingResultL, Polling Off"); |
705 TFLOGSTRING("CSAT: CSatNotificationsTsy::SetPollingResultL, \ |
|
706 Polling Off"); |
707 additionalInfo.Zero(); |
707 additionalInfo.Zero(); |
708 additionalInfo.Append( RSat::KNoAdditionalInfo ); |
708 additionalInfo.Append( RSat::KNoAdditionalInfo ); |
709 iNotifyPollingOff->CreateTerminalRespL( pCmdNumber, |
709 iNotifyPollingOff->CreateTerminalRespL( pCmdNumber, |
710 RSat::KSuccess, additionalInfo ); |
710 RSat::KSuccess, additionalInfo ); |
711 } |
711 } |
716 } |
716 } |
717 } |
717 } |
718 // NAA status not OK |
718 // NAA status not OK |
719 else |
719 else |
720 { |
720 { |
721 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_SETPOLLINGRESULTL_3, "CSAT: CSatNotificationsTsy::SetPollingResultL, NAA Status Not OK, means that value in request is out of range and default value is used."); |
721 TFLOGSTRING("CSAT: CSatNotificationsTsy::SetPollingResultL, \ |
|
722 NAA Status Not OK, means that value in request is out of range\ |
|
723 and default value is used."); |
722 if ( iPollingOff ) |
724 if ( iPollingOff ) |
723 { |
725 { |
724 iPollingOff = EFalse; |
726 iPollingOff = EFalse; |
725 additionalInfo.Zero(); |
727 additionalInfo.Zero(); |
726 additionalInfo.Append( RSat::KNoSpecificMeProblem ); |
728 additionalInfo.Append( RSat::KNoSpecificMeProblem ); |
731 { |
733 { |
732 // If last request rejected (request was over 25 seconds), |
734 // If last request rejected (request was over 25 seconds), |
733 // renew the request with legacy maximum.. |
735 // renew the request with legacy maximum.. |
734 if ( iLongPollIntervalReq ) |
736 if ( iLongPollIntervalReq ) |
735 { |
737 { |
736 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_SETPOLLINGRESULTL_4, "CSAT: CSatNotificationsTsy::SetPollingResultL, Request set to legacy maximum (25 seconds)"); |
738 TFLOGSTRING("CSAT: CSatNotificationsTsy::SetPollingResultL, \ |
|
739 Request set to legacy maximum (25 seconds)"); |
737 SetPollingIntervalL( KMaxLegacyPollInterval ); |
740 SetPollingIntervalL( KMaxLegacyPollInterval ); |
738 iLongPollIntervalReq = EFalse; |
741 iLongPollIntervalReq = EFalse; |
739 } |
742 } |
740 // ..otherwise there was an actual error. |
743 // ..otherwise there was an actual error. |
741 else |
744 else |
759 void CSatNotificationsTsy::SetPollingIntervalL |
762 void CSatNotificationsTsy::SetPollingIntervalL |
760 ( |
763 ( |
761 TUint8 aValue |
764 TUint8 aValue |
762 ) |
765 ) |
763 { |
766 { |
764 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_SETPOLLINGINTERVALL_1, "CSAT: CSatNotificationsTsy::SetPollingIntervalL, Value: %d",aValue); |
767 TFLOGSTRING2("CSAT: CSatNotificationsTsy::SetPollingIntervalL, Value: %d", |
|
768 aValue); |
765 |
769 |
766 if ( KMaxLegacyPollInterval < aValue ) |
770 if ( KMaxLegacyPollInterval < aValue ) |
767 { |
771 { |
768 iLongPollIntervalReq = ETrue; |
772 iLongPollIntervalReq = ETrue; |
769 } |
773 } |
786 ( |
790 ( |
787 TInt aTimerId, |
791 TInt aTimerId, |
788 TUint32 aTimerValue |
792 TUint32 aTimerValue |
789 ) |
793 ) |
790 { |
794 { |
791 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_TIMEREXPIRATIONL_1, "CSAT: CSatNotificationsTsy::TimerExpirationL"); |
795 TFLOGSTRING("CSAT: CSatNotificationsTsy::TimerExpirationL"); |
792 TUint8 time[3] = {0, 0, 0}; |
796 TUint8 time[3] = {0, 0, 0}; |
793 TInt num[3]; |
797 TInt num[3]; |
794 num[0] = aTimerValue / 3600; // Hours |
798 num[0] = aTimerValue / 3600; // Hours |
795 num[1] = ( aTimerValue % 3600 )/60; // Minutes |
799 num[1] = ( aTimerValue % 3600 )/60; // Minutes |
796 num[2] = ( aTimerValue % 3600 )%60; // Seconds |
800 num[2] = ( aTimerValue % 3600 )%60; // Seconds |
838 CSatTimer* CSatNotificationsTsy::GetSatTimer |
842 CSatTimer* CSatNotificationsTsy::GetSatTimer |
839 ( |
843 ( |
840 // None |
844 // None |
841 ) |
845 ) |
842 { |
846 { |
843 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_GETSATTIMER_1, "CSAT: CSatNotificationsTsy::GetSatTimer"); |
847 TFLOGSTRING("CSAT: CSatNotificationsTsy::GetSatTimer"); |
844 // Pointer to SAT timer |
848 // Pointer to SAT timer |
845 return iSatTimer; |
849 return iSatTimer; |
846 } |
850 } |
847 |
851 |
848 // ----------------------------------------------------------------------------- |
852 // ----------------------------------------------------------------------------- |
853 CSatNotifySetUpCall* CSatNotificationsTsy::SatNotifySetUpCall |
857 CSatNotifySetUpCall* CSatNotificationsTsy::SatNotifySetUpCall |
854 ( |
858 ( |
855 // None |
859 // None |
856 ) |
860 ) |
857 { |
861 { |
858 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_SATNOTIFYSETUPCALL_1, "CSAT: CSatNotificationsTsy::SatNotifySetUpCall"); |
862 TFLOGSTRING("CSAT: CSatNotificationsTsy::SatNotifySetUpCall"); |
859 // Pointer to NotifySetupCall |
863 // Pointer to NotifySetupCall |
860 return iNotifySetUpCall; |
864 return iNotifySetUpCall; |
861 } |
865 } |
862 |
866 |
863 // ----------------------------------------------------------------------------- |
867 // ----------------------------------------------------------------------------- |
869 ( |
873 ( |
870 CSatDataPackage* aDataPackage, |
874 CSatDataPackage* aDataPackage, |
871 TInt /*aResult*/ |
875 TInt /*aResult*/ |
872 ) |
876 ) |
873 { |
877 { |
874 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_SETPROACTIVECOMMANDONGOINGSTATUS_1, "CSAT: CSatNotificationsTsy::SetProactiveCommandOnGoingStatus"); |
878 TFLOGSTRING("CSAT: CSatNotificationsTsy::\ |
|
879 SetProactiveCommandOnGoingStatus"); |
875 TBool ProactiveCommandOngoingStatus; |
880 TBool ProactiveCommandOngoingStatus; |
876 aDataPackage->UnPackData( ProactiveCommandOngoingStatus ); |
881 aDataPackage->UnPackData( ProactiveCommandOngoingStatus ); |
877 iSatTimer->SetProactiveCommandOnGoingStatus( |
882 iSatTimer->SetProactiveCommandOnGoingStatus( |
878 ProactiveCommandOngoingStatus ); |
883 ProactiveCommandOngoingStatus ); |
879 } |
884 } |
888 ( |
893 ( |
889 CSatDataPackage* aDataPackage, |
894 CSatDataPackage* aDataPackage, |
890 TInt aResult |
895 TInt aResult |
891 ) |
896 ) |
892 { |
897 { |
893 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_COMPLETEPCMDL_1, "CSAT: CSatNotificationsTsy::CompletePCmdL"); |
898 TFLOGSTRING("CSAT: CSatNotificationsTsy::CompletePCmdL"); |
894 |
899 |
895 TPtrC8* data; |
900 TPtrC8* data; |
896 aDataPackage->UnPackData( &data ); |
901 aDataPackage->UnPackData( &data ); |
897 CBerTlv berTlv; |
902 CBerTlv berTlv; |
898 berTlv.SetData( *data ); |
903 berTlv.SetData( *data ); |
1039 aResult ); |
1044 aResult ); |
1040 break; |
1045 break; |
1041 } |
1046 } |
1042 default: |
1047 default: |
1043 { |
1048 { |
1044 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_COMPLETEPCMDL_2, "CSAT: CSatNotificationsTsy::CompletePCmdL, Proactive command not supported" ); |
1049 TFLOGSTRING("CSAT: CSatNotificationsTsy::CompletePCmdL, \ |
|
1050 Proactive command not supported" ); |
1045 // If proactive command is not supported, terminal response |
1051 // If proactive command is not supported, terminal response |
1046 // with "Command is beyond ME's capabilities" information |
1052 // with "Command is beyond ME's capabilities" information |
1047 // will be send. |
1053 // will be send. |
1048 // Get command details tlv and set it to the struct |
1054 // Get command details tlv and set it to the struct |
1049 iTerminalRespData.iCommandDetails.Copy( commandDetails.Data() ); |
1055 iTerminalRespData.iCommandDetails.Copy( commandDetails.Data() ); |
1074 TBool CSatNotificationsTsy::IsMoSmControlActivated |
1080 TBool CSatNotificationsTsy::IsMoSmControlActivated |
1075 ( |
1081 ( |
1076 void |
1082 void |
1077 ) |
1083 ) |
1078 { |
1084 { |
1079 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_ISMOSMCONTROLACTIVATED_1, "CSAT: CSatNotificationsTsy::IsMoSmControlActivated"); |
1085 TFLOGSTRING("CSAT: CSatNotificationsTsy::IsMoSmControlActivated"); |
1080 return iNotifyMoSmControlRequest->ActivationStatus(); |
1086 return iNotifyMoSmControlRequest->ActivationStatus(); |
1081 } |
1087 } |
1082 |
1088 |
1083 // ----------------------------------------------------------------------------- |
1089 // ----------------------------------------------------------------------------- |
1084 // CSatNotificationsTsy::SetPollingOff |
1090 // CSatNotificationsTsy::SetPollingOff |
1088 void CSatNotificationsTsy::SetPollingOffStatus |
1094 void CSatNotificationsTsy::SetPollingOffStatus |
1089 ( |
1095 ( |
1090 TBool aPollingOff |
1096 TBool aPollingOff |
1091 ) |
1097 ) |
1092 { |
1098 { |
1093 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_SETPOLLINGOFFSTATUS_1, "CSAT: CSatNotificationsTsy::SetPollingOffStatus status: %d", aPollingOff); |
1099 TFLOGSTRING2("CSAT: CSatNotificationsTsy::SetPollingOffStatus \ |
|
1100 status: %d", aPollingOff); |
1094 iPollingOff = aPollingOff; |
1101 iPollingOff = aPollingOff; |
1095 } |
1102 } |
1096 |
1103 |
1097 // ----------------------------------------------------------------------------- |
1104 // ----------------------------------------------------------------------------- |
1098 // CSatNotificationsTsy::SetPollingOff |
1105 // CSatNotificationsTsy::SetPollingOff |
1102 TBool CSatNotificationsTsy::PollingOffStatus |
1109 TBool CSatNotificationsTsy::PollingOffStatus |
1103 ( |
1110 ( |
1104 // None |
1111 // None |
1105 ) |
1112 ) |
1106 { |
1113 { |
1107 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_POLLINGOFFSTATUS_1, "CSAT: CSatNotificationsTsy::PollingOffStatus"); |
1114 TFLOGSTRING("CSAT: CSatNotificationsTsy::PollingOffStatus"); |
1108 return iPollingOff; |
1115 return iPollingOff; |
1109 } |
1116 } |
1110 |
1117 |
1111 // ----------------------------------------------------------------------------- |
1118 // ----------------------------------------------------------------------------- |
1112 // CSatNotificationsTsy::AddLocationInformationToTlv |
1119 // CSatNotificationsTsy::AddLocationInformationToTlv |
1116 void CSatNotificationsTsy::AddLocationInformationToTlv |
1123 void CSatNotificationsTsy::AddLocationInformationToTlv |
1117 ( |
1124 ( |
1118 TTlv& aTlv |
1125 TTlv& aTlv |
1119 ) |
1126 ) |
1120 { |
1127 { |
1121 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_ADDLOCATIONINFORMATIONTOTLV_1, "CSAT: CSatNotificationsTsy::AddLocationInformationToTlv"); |
1128 TFLOGSTRING("CSAT: CSatNotificationsTsy::AddLocationInformationToTlv"); |
1122 |
1129 |
1123 // Get the current location data from CSatNotifyLocalInfo |
1130 // Get the current location data from CSatNotifyLocalInfo |
1124 const TLocalInformation& locInfo = iNotifyLocalInfo->LocalInformation(); |
1131 const TLocalInformation& locInfo = iNotifyLocalInfo->LocalInformation(); |
1125 |
1132 |
1126 // Add location information data, start with the tag |
1133 // Add location information data, start with the tag |
1144 ( |
1151 ( |
1145 RSat::TAlphaIdBuf& aAlphaId, |
1152 RSat::TAlphaIdBuf& aAlphaId, |
1146 RSat::TControlResult aResult |
1153 RSat::TControlResult aResult |
1147 ) |
1154 ) |
1148 { |
1155 { |
1149 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_NOTIFYCLIENTFORALPHAID_1, "CSAT: CSatNotificationsTsy::NotifyClientForAlphaId"); |
1156 TFLOGSTRING("CSAT: CSatNotificationsTsy::NotifyClientForAlphaId"); |
1150 iNotifyCallControlRequest->CompleteAlphaId( aAlphaId, aResult, KErrNone ); |
1157 iNotifyCallControlRequest->CompleteAlphaId( aAlphaId, aResult, KErrNone ); |
1151 } |
1158 } |
1152 |
1159 |
1153 // ----------------------------------------------------------------------------- |
1160 // ----------------------------------------------------------------------------- |
1154 // CSatNotificationsTsy::RequestHandleStore |
1161 // CSatNotificationsTsy::RequestHandleStore |
1158 CSatTsyReqHandleStore* CSatNotificationsTsy::RequestHandleStore |
1165 CSatTsyReqHandleStore* CSatNotificationsTsy::RequestHandleStore |
1159 ( |
1166 ( |
1160 void |
1167 void |
1161 ) |
1168 ) |
1162 { |
1169 { |
1163 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_REQUESTHANDLESTORE_1, "CSAT: CSatNotificationsTsy::RequestHandleStore"); |
1170 TFLOGSTRING("CSAT: CSatNotificationsTsy::RequestHandleStore"); |
1164 return iSatReqHandleStore; |
1171 return iSatReqHandleStore; |
1165 } |
1172 } |
1166 |
1173 |
1167 // ----------------------------------------------------------------------------- |
1174 // ----------------------------------------------------------------------------- |
1168 // CSatNotificationsTsy::NotifySatReadyForNotification |
1175 // CSatNotificationsTsy::NotifySatReadyForNotification |
1173 TInt CSatNotificationsTsy::NotifySatReadyForNotification |
1180 TInt CSatNotificationsTsy::NotifySatReadyForNotification |
1174 ( |
1181 ( |
1175 TUint8 aPCmdMsgType |
1182 TUint8 aPCmdMsgType |
1176 ) |
1183 ) |
1177 { |
1184 { |
1178 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_NOTIFYSATREADYFORNOTIFICATION_1, "CSAT: CSatNotificationsTsy::NotifySatReadyForNotification"); |
1185 TFLOGSTRING("CSAT: CSatNotificationsTsy::NotifySatReadyForNotification"); |
1179 TInt ret( KErrNone ); |
1186 TInt ret( KErrNone ); |
1180 // Pack parameter for DOS call |
1187 // Pack parameter for DOS call |
1181 CSatDataPackage dataPackage; |
1188 CSatDataPackage dataPackage; |
1182 dataPackage.PackData( &aPCmdMsgType ); |
1189 dataPackage.PackData( &aPCmdMsgType ); |
1183 TRAPD( trapError, ret = iSatTsy->MessageManager()->HandleRequestL( |
1190 TRAPD( trapError, ret = iSatTsy->MessageManager()->HandleRequestL( |
1346 void CSatNotificationsTsy::CompleteTerminalResponse |
1356 void CSatNotificationsTsy::CompleteTerminalResponse |
1347 ( |
1357 ( |
1348 TInt aErrorCode // Error code |
1358 TInt aErrorCode // Error code |
1349 ) |
1359 ) |
1350 { |
1360 { |
1351 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_COMPLETETERMINALRESPONSE_1, "CSAT: CSatNotificationsTsy::CompleteTerminalResponse - Error:%d", aErrorCode); |
1361 TFLOGSTRING2("CSAT: CSatNotificationsTsy::CompleteTerminalResponse - \ |
|
1362 Error:%d", aErrorCode); |
1352 |
1363 |
1353 TTsyReqHandle reqHandle = iSatTsy->GetSatReqHandleStore()-> |
1364 TTsyReqHandle reqHandle = iSatTsy->GetSatReqHandleStore()-> |
1354 ResetTsyReqHandle( CSatTsy::ESatTerminalRspReqType ); |
1365 ResetTsyReqHandle( CSatTsy::ESatTerminalRspReqType ); |
1355 |
1366 |
1356 // Check if handle for terminal response exists |
1367 // Check if handle for terminal response exists |
1370 TBool CSatNotificationsTsy::CommandPerformedSuccessfully |
1381 TBool CSatNotificationsTsy::CommandPerformedSuccessfully |
1371 ( |
1382 ( |
1372 TUint8 aGeneralResult |
1383 TUint8 aGeneralResult |
1373 ) |
1384 ) |
1374 { |
1385 { |
1375 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_COMMANDPERFORMEDSUCCESSFULLY_1, "CSAT: CSatNotificationsTsy::CommandPerformedSuccessfully"); |
1386 TFLOGSTRING("CSAT: CSatNotificationsTsy::CommandPerformedSuccessfully"); |
1376 TBool ret( EFalse ); |
1387 TBool ret( EFalse ); |
1377 switch ( aGeneralResult ) |
1388 switch ( aGeneralResult ) |
1378 { |
1389 { |
1379 case RSat::KSuccess: |
1390 case RSat::KSuccess: |
1380 case RSat::KPartialComprehension: |
1391 case RSat::KPartialComprehension: |
1407 TInt CSatNotificationsTsy::NotifyCbDownload |
1419 TInt CSatNotificationsTsy::NotifyCbDownload |
1408 ( |
1420 ( |
1409 TTsyReqHandle aTsyReqHandle |
1421 TTsyReqHandle aTsyReqHandle |
1410 ) |
1422 ) |
1411 { |
1423 { |
1412 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_NOTIFYCBDOWNLOAD_1, "CSAT: CSatNotificationsTsy::NotifyCbDownload"); |
1424 TFLOGSTRING("CSAT: CSatNotificationsTsy::NotifyCbDownload"); |
1413 TInt ret( KErrNone ); |
1425 TInt ret( KErrNone ); |
1414 iSatTsy->ReqCompleted( aTsyReqHandle, ret ); |
1426 iSatTsy->ReqCompleted( aTsyReqHandle, ret ); |
1415 return ret; |
1427 return ret; |
1416 } |
1428 } |
1417 |
1429 |
1423 TInt CSatNotificationsTsy::NotifySmsPpDownload |
1435 TInt CSatNotificationsTsy::NotifySmsPpDownload |
1424 ( |
1436 ( |
1425 TTsyReqHandle aTsyReqHandle |
1437 TTsyReqHandle aTsyReqHandle |
1426 ) |
1438 ) |
1427 { |
1439 { |
1428 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFICATIONSTSY_NOTIFYSMSPPDOWNLOAD_1, "CSAT: CSatNotificationsTsy::NotifySmsPpDownload"); |
1440 TFLOGSTRING("CSAT: CSatNotificationsTsy::NotifySmsPpDownload"); |
1429 TInt ret( KErrNone ); |
1441 TInt ret( KErrNone ); |
1430 iSatTsy->ReqCompleted( aTsyReqHandle, ret ); |
1442 iSatTsy->ReqCompleted( aTsyReqHandle, ret ); |
1431 return ret; |
1443 return ret; |
1432 } |
1444 } |
1433 |
1445 |