diff -r c2e43643db4c -r 4ce423f34688 mmserv/sts/src/systemtoneservice.cpp --- a/mmserv/sts/src/systemtoneservice.cpp Thu Sep 02 20:58:01 2010 +0300 +++ b/mmserv/sts/src/systemtoneservice.cpp Fri Sep 17 08:33:15 2010 +0300 @@ -20,10 +20,12 @@ // Include Files #include // CSystemToneService #include "stsimplementation.h" +#include "stsdebug.h" // Member Functions EXPORT_C /*static*/CSystemToneService* CSystemToneService::Create() { + TRACE_FUNCTION_ENTRY; CSystemToneService* self = 0; CStsImplementation* implementation = CStsImplementation::Create(); if (implementation != 0) @@ -31,46 +33,66 @@ self = new CSystemToneService(*implementation); if (self == 0) { + TRACE_LOG(_L(" Unable to instantiate CSystemToneService")); delete implementation; } } + TRACE_FUNCTION_EXIT; return self; } EXPORT_C /*static*/void CSystemToneService::Delete( CSystemToneService* aSystemToneService) { + TRACE_FUNCTION_ENTRY; delete &(aSystemToneService->iImplementation); delete aSystemToneService; + TRACE_FUNCTION_EXIT; } CSystemToneService::CSystemToneService(CStsImplementation& aImplementation) : iImplementation(aImplementation) { + TRACE_FUNCTION_ENTRY_EXIT; } CSystemToneService::~CSystemToneService() { + TRACE_FUNCTION_ENTRY_EXIT; } EXPORT_C void CSystemToneService::PlayTone(TToneType aTone) { + TRACE_FUNCTION_ENTRY; + TRACE_LOG((_L("TToneType[0x%x]"), aTone)); iImplementation.PlayTone(aTone); + TRACE_FUNCTION_EXIT; } EXPORT_C void CSystemToneService::PlayAlarm(TAlarmType aAlarm, unsigned int& aAlarmContext, MStsPlayAlarmObserver& aObserver) { + TRACE_FUNCTION_ENTRY; + TRACE_LOG((_L("TAlarmType[0x%x]"), aAlarm)); iImplementation.PlayAlarm(aAlarm, aAlarmContext, aObserver); + TRACE_LOG((_L("AlarmContext[%u]"), aAlarmContext)); + TRACE_FUNCTION_EXIT; } EXPORT_C void CSystemToneService::PlayAlarm(TToneType aTone, unsigned int& aAlarmContext, MStsPlayAlarmObserver& aObserver) { + TRACE_FUNCTION_ENTRY; + TRACE_LOG((_L("TToneType[0x%x]"), aTone)); iImplementation.PlayAlarm(aTone, aAlarmContext, aObserver); + TRACE_LOG((_L("AlarmContext[%u]"), aAlarmContext)); + TRACE_FUNCTION_EXIT; } EXPORT_C void CSystemToneService::StopAlarm(unsigned int aAlarmContext) { + TRACE_FUNCTION_ENTRY; + TRACE_LOG((_L("AlarmContext[%u]"), aAlarmContext)); iImplementation.StopAlarm(aAlarmContext); + TRACE_FUNCTION_EXIT; }