--- a/alarmui/alarmalertwidget/alarmalertinterface/src/alarmalertwidget.cpp Mon Jul 12 02:32:28 2010 +0530
+++ b/alarmui/alarmalertwidget/alarmalertinterface/src/alarmalertwidget.cpp Mon Jul 26 13:54:38 2010 +0530
@@ -23,6 +23,10 @@
#include "alarmalertwidget.h"
#include "alarmalert.h"
#include "alarmalertobserver.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "alarmalertwidgetTraces.h"
+#endif
// Constants.
const TInt KMaxlength=30;
@@ -35,6 +39,8 @@
AlarmAlertWidget::AlarmAlertWidget(AlarmAlertObserver *observer) :
mObserver(observer)
{
+ OstTraceFunctionEntry0( ALARMALERTWIDGET_ALARMALERTWIDGET_ENTRY );
+ OstTraceFunctionExit0( ALARMALERTWIDGET_ALARMALERTWIDGET_EXIT );
}
// ---------------------------------------------------------
@@ -44,6 +50,7 @@
//
AlarmAlertWidget::~AlarmAlertWidget()
{
+ OstTraceFunctionEntry0( DUP1_ALARMALERTWIDGET_ALARMALERTWIDGET_ENTRY );
// Cleanup
if (mAlarmSubject) {
@@ -85,6 +92,7 @@
if (mDeviceDialog) {
delete mDeviceDialog;
}
+ OstTraceFunctionExit0( DUP1_ALARMALERTWIDGET_ALARMALERTWIDGET_EXIT );
}
// ---------------------------------------------------------
@@ -94,6 +102,7 @@
//
bool AlarmAlertWidget::showAlarmDialog(SAlarmInfo *alarmInfo)
{
+ OstTraceFunctionEntry0( ALARMALERTWIDGET_SHOWALARMDIALOG_ENTRY );
// Get the alarm date and time
TBuf<KMaxlength> timeString;
TBuf<KMaxlength> dateString;
@@ -174,8 +183,10 @@
//
void AlarmAlertWidget::dismissAlarmDialog()
{
+ OstTraceFunctionEntry0( ALARMALERTWIDGET_DISMISSALARMDIALOG_ENTRY );
// Dismiss the dialog
mDeviceDialog->Cancel();
+ OstTraceFunctionExit0( ALARMALERTWIDGET_DISMISSALARMDIALOG_EXIT );
}
// ---------------------------------------------------------
@@ -185,10 +196,12 @@
//
bool AlarmAlertWidget::updateAlarmDialog(SAlarmInfo* /*alarmInfo*/)
{
+ OstTraceFunctionEntry0( ALARMALERTWIDGET_UPDATEALARMDIALOG_ENTRY );
// Update the dialog with any new information
// TODO: Pass the updated information sent by the observer
/*CHbSymbianVariantMap params;
mDeviceDialog->Update(params);*/
+ OstTraceFunctionExit0( ALARMALERTWIDGET_UPDATEALARMDIALOG_EXIT );
return false;
}
@@ -199,11 +212,14 @@
//
void AlarmAlertWidget::DataReceived(CHbSymbianVariantMap& aData)
{
+ OstTraceFunctionEntry0( ALARMALERTWIDGET_DATARECEIVED_ENTRY );
if (!aData.Keys().MdcaCount()) {
+ OstTraceFunctionExit0( ALARMALERTWIDGET_DATARECEIVED_EXIT );
return;
}
triggerAction(aData.Get(alarmCommandSymbian));
+ OstTraceFunctionExit0( DUP1_ALARMALERTWIDGET_DATARECEIVED_EXIT );
}
// ---------------------------------------------------------
@@ -213,7 +229,9 @@
//
void AlarmAlertWidget::DeviceDialogClosed(TInt /*aCompletionCode*/)
{
+ OstTraceFunctionEntry0( ALARMALERTWIDGET_DEVICEDIALOGCLOSED_ENTRY );
+ OstTraceFunctionExit0( ALARMALERTWIDGET_DEVICEDIALOGCLOSED_EXIT );
}
// ---------------------------------------------------------
@@ -223,6 +241,7 @@
//
void AlarmAlertWidget::triggerAction(const CHbSymbianVariant* source)
{
+ OstTraceFunctionEntry0( ALARMALERTWIDGET_TRIGGERACTION_ENTRY );
AlarmCommand command(AlarmCmdLast);
if (*source->Value<TInt>() == Stop) {
@@ -234,6 +253,7 @@
} else if (*source->Value<TInt>() == Shown) {
command = AlarmShown;
mObserver->alertDisplayed(command);
+ OstTraceFunctionExit0( ALARMALERTWIDGET_TRIGGERACTION_EXIT );
return;
} else {
command = AlarmCmdLast;
@@ -243,6 +263,7 @@
// Notify the observer with the command
mObserver->alertCompleted(command);
}
+ OstTraceFunctionExit0( DUP1_ALARMALERTWIDGET_TRIGGERACTION_EXIT );
}
// End of file --Don't remove this.