diff options
Diffstat (limited to 'src/systeminfo/symbian/telephonyinfo_s60.cpp')
-rw-r--r-- | src/systeminfo/symbian/telephonyinfo_s60.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/systeminfo/symbian/telephonyinfo_s60.cpp b/src/systeminfo/symbian/telephonyinfo_s60.cpp index 270dadee3d..93afdd83ce 100644 --- a/src/systeminfo/symbian/telephonyinfo_s60.cpp +++ b/src/systeminfo/symbian/telephonyinfo_s60.cpp @@ -40,6 +40,7 @@ ****************************************************************************/ #include "telephonyinfo_s60.h" +#include "trace.h" #ifdef ETELMM_SUPPORTED #include <etelmm.h> #include <mmtsy_names.h> @@ -87,6 +88,7 @@ void CTelephonyInfo::makeRequest() CPhoneInfo::CPhoneInfo(CTelephony &telephony) : CTelephonyInfo(telephony), m_phoneIdV1Pckg(m_phoneIdV1) { + TRACES (qDebug() << "CPhoneInfo::CPhoneInfo<---"); m_telephony.GetPhoneId(iStatus, m_phoneIdV1Pckg); makeRequest(); @@ -99,6 +101,7 @@ CPhoneInfo::CPhoneInfo(CTelephony &telephony) : CTelephonyInfo(telephony), TBuf<CTelephony::KPhoneModelIdSize> model = m_phoneIdV1.iModel; m_model = QString::fromUtf16(model.Ptr(), model.Length()); + TRACES (qDebug() << "CPhoneInfo::CPhoneInfo--->"); } void CPhoneInfo::DoCancel() @@ -124,11 +127,13 @@ QString CPhoneInfo::model() const CSubscriberInfo::CSubscriberInfo(CTelephony &telephony) : CTelephonyInfo(telephony), m_subscriberIdV1Pckg(m_subscriberIdV1) { + TRACES (qDebug() << "CSubscriberInfo::CSubscriberInfo<---"); m_telephony.GetSubscriberId(iStatus, m_subscriberIdV1Pckg); makeRequest(); TBuf<CTelephony::KIMSISize> imsi = m_subscriberIdV1.iSubscriberId; m_imsi = QString::fromUtf16(imsi.Ptr(), imsi.Length()); + TRACES (qDebug() << "CSubscriberInfo::CSubscriberInfo--->"); } void CSubscriberInfo::DoCancel() @@ -144,6 +149,7 @@ QString CSubscriberInfo::imsi() const CBatteryInfo::CBatteryInfo(CTelephony &telephony) : CTelephonyInfo(telephony), m_initializing(true), m_batteryInfoV1Pckg(m_batteryInfoV1) { + TRACES (qDebug() << "CBatteryInfo::CBatteryInfo<---"); m_telephony.GetBatteryInfo(iStatus, m_batteryInfoV1Pckg); makeRequest(); @@ -152,10 +158,12 @@ CBatteryInfo::CBatteryInfo(CTelephony &telephony) : CTelephonyInfo(telephony), m_previousBatteryLevel = m_batteryLevel; startMonitoring(); + TRACES (qDebug() << "CBatteryInfo::CBatteryInfo--->"); } void CBatteryInfo::RunL() { + TRACES (qDebug() << "CBatteryInfo::RunL<---"); if (m_initializing) { CTelephonyInfo::RunL(); m_initializing = false; @@ -169,15 +177,18 @@ void CBatteryInfo::RunL() } m_previousBatteryLevel = m_batteryLevel; startMonitoring(); + TRACES (qDebug() << "CBatteryInfo::RunL--->"); } void CBatteryInfo::DoCancel() { + TRACES (qDebug() << "CBatteryInfo::DoCancel<---"); if (m_initializing) { m_telephony.CancelAsync(CTelephony::EGetBatteryInfoCancel); } else { m_telephony.CancelAsync(CTelephony::EBatteryInfoChangeCancel); } + TRACES (qDebug() << "CBatteryInfo::DoCancel--->"); } @@ -188,15 +199,18 @@ int CBatteryInfo::batteryLevel() const void CBatteryInfo::startMonitoring() { + TRACES (qDebug() << "CBatteryInfo::startMonitoring<---"); if (!IsActive()) { m_telephony.NotifyChange(iStatus, CTelephony::EBatteryInfoChange, m_batteryInfoV1Pckg); SetActive(); } + TRACES (qDebug() << "CBatteryInfo::startMonitoring--->"); } CCellNetworkInfo::CCellNetworkInfo(CTelephony &telephony) : CTelephonyInfo(telephony), m_initializing(true), m_networkInfoV1Pckg(m_networkInfoV1) { + TRACES (qDebug() << "CCellNetworkInfo::CCellNetworkInfo<---"); m_telephony.GetCurrentNetworkInfo(iStatus, m_networkInfoV1Pckg); makeRequest(); @@ -226,10 +240,12 @@ CCellNetworkInfo::CCellNetworkInfo(CTelephony &telephony) : CTelephonyInfo(telep m_initializing = false; startMonitoring(); + TRACES (qDebug() << "CCellNetworkInfo::CCellNetworkInfo--->"); } void CCellNetworkInfo::RunL() { + TRACES (qDebug() << "CCellNetworkInfo::RunL<---"); if (m_initializing) { CTelephonyInfo::RunL(); m_initializing = false; @@ -278,15 +294,18 @@ void CCellNetworkInfo::RunL() m_previouscellId = m_cellId; startMonitoring(); } + TRACES (qDebug() << "CCellNetworkInfo::RunL--->"); } void CCellNetworkInfo::DoCancel() { + TRACES (qDebug() << "CCellNetworkInfo::DoCancel--->"); if (m_initializing) { m_telephony.CancelAsync(CTelephony::EGetCurrentNetworkInfoCancel); } else { m_telephony.CancelAsync(CTelephony::ECurrentNetworkInfoChangeCancel); } + TRACES (qDebug() << "CCellNetworkInfo::DoCancel<---"); } int CCellNetworkInfo::cellId() const @@ -370,13 +389,16 @@ CTelephony::TNetworkMode CCellNetworkInfo::networkMode() const void CCellNetworkInfo::startMonitoring() { + TRACES (qDebug() << "CCellNetworkInfo::startMonitoring<---"); m_telephony.NotifyChange(iStatus, CTelephony::ECurrentNetworkInfoChange, m_networkInfoV1Pckg); SetActive(); + TRACES (qDebug() << "CCellNetworkInfo::startMonitoring--->"); } CCellNetworkRegistrationInfo::CCellNetworkRegistrationInfo(CTelephony &telephony) : CTelephonyInfo(telephony), m_initializing(true), m_networkRegistrationV1Pckg(m_networkRegistrationV1) { + TRACES (qDebug() << "CCellNetworkRegistrationInfo::CCellNetworkRegistrationInfo--->"); m_telephony.GetNetworkRegistrationStatus(iStatus, m_networkRegistrationV1Pckg); makeRequest(); @@ -386,10 +408,12 @@ CCellNetworkRegistrationInfo::CCellNetworkRegistrationInfo(CTelephony &telephony m_initializing = false; startMonitoring(); + TRACES (qDebug() << "CCellNetworkRegistrationInfo::CCellNetworkRegistrationInfo<---"); } void CCellNetworkRegistrationInfo::RunL() { + TRACES (qDebug() << "CCellNetworkRegistrationInfo::RunL<---"); if (m_initializing) { CTelephonyInfo::RunL(); m_initializing = false; @@ -405,15 +429,18 @@ void CCellNetworkRegistrationInfo::RunL() m_previousNetworkStatus = m_networkStatus; startMonitoring(); } + TRACES (qDebug() << "CCellNetworkRegistrationInfo::RunL--->"); } void CCellNetworkRegistrationInfo::DoCancel() { + TRACES (qDebug() << "CCellNetworkRegistrationInfo::DoCancel<---"); if (m_initializing) { m_telephony.CancelAsync(CTelephony::EGetNetworkRegistrationStatusCancel); } else { m_telephony.CancelAsync(CTelephony::ENetworkRegistrationStatusChangeCancel); } + TRACES (qDebug() << "CCellNetworkRegistrationInfo::DoCancel--->"); } CTelephony::TRegistrationStatus CCellNetworkRegistrationInfo::cellNetworkStatus() const @@ -423,13 +450,16 @@ CTelephony::TRegistrationStatus CCellNetworkRegistrationInfo::cellNetworkStatus( void CCellNetworkRegistrationInfo::startMonitoring() { + TRACES (qDebug() << "CCellNetworkRegistrationInfo::startMonitoring<---"); m_telephony.NotifyChange(iStatus, CTelephony::ENetworkRegistrationStatusChange, m_networkRegistrationV1Pckg); SetActive(); +TRACES (qDebug() << "CCellNetworkRegistrationInfo::startMonitoring--->"); } CCellSignalStrengthInfo::CCellSignalStrengthInfo(CTelephony &telephony) : CTelephonyInfo(telephony), m_initializing(true), m_signalStrengthV1Pckg(m_signalStrengthV1) { + TRACES (qDebug() << "CCellSignalStrengthInfo::CCellSignalStrengthInfo<---"); m_telephony.GetSignalStrength(iStatus, m_signalStrengthV1Pckg); makeRequest(); @@ -442,10 +472,12 @@ CCellSignalStrengthInfo::CCellSignalStrengthInfo(CTelephony &telephony) : CTelep m_initializing = false; startMonitoring(); + TRACES (qDebug() << "CCellSignalStrengthInfo::CCellSignalStrengthInfo--->"); } void CCellSignalStrengthInfo::RunL() { + TRACES (qDebug() << "CCellSignalStrengthInfo::RunL<---"); if (m_initializing) { CTelephonyInfo::RunL(); } else { @@ -461,15 +493,18 @@ void CCellSignalStrengthInfo::RunL() m_previousSignalBar = m_signalBar; startMonitoring(); } + TRACES (qDebug() << "CCellSignalStrengthInfo::RunL--->"); } void CCellSignalStrengthInfo::DoCancel() { + TRACES (qDebug() << "CCellSignalStrengthInfo::DoCancel<---"); if (m_initializing) { m_telephony.CancelAsync(CTelephony::EGetSignalStrengthCancel); } else { m_telephony.CancelAsync(CTelephony::ESignalStrengthChangeCancel); } + TRACES (qDebug() << "CCellSignalStrengthInfo::DoCancel--->"); } int CCellSignalStrengthInfo::cellNetworkSignalStrength() const @@ -480,6 +515,8 @@ int CCellSignalStrengthInfo::cellNetworkSignalStrength() const void CCellSignalStrengthInfo::startMonitoring() { + TRACES (qDebug() << "CCellSignalStrengthInfo::startMonitoring<---"); m_telephony.NotifyChange(iStatus, CTelephony::ESignalStrengthChange, m_signalStrengthV1Pckg); SetActive(); + TRACES (qDebug() << "CCellSignalStrengthInfo::startMonitoring--->"); } |