alarmui/alarmalertwidget/alarmalertinterface/src/alarmalertwrapper.cpp
changeset 55 2c54b51f39c4
parent 45 b6db4fd4947b
equal deleted inserted replaced
51:0b38fc5b94c6 55:2c54b51f39c4
    17 // alarmalertwrapper.h
    17 // alarmalertwrapper.h
    18 
    18 
    19 // User includes
    19 // User includes
    20 #include "alarmalertwrapper.h"
    20 #include "alarmalertwrapper.h"
    21 #include "alarmalertwidget.h"
    21 #include "alarmalertwidget.h"
       
    22 #include "OstTraceDefinitions.h"
       
    23 #ifdef OST_TRACE_COMPILER_IN_USE
       
    24 #include "alarmalertwrapperTraces.h"
       
    25 #endif
    22 
    26 
    23 // ---------------------------------------------------------
    27 // ---------------------------------------------------------
    24 // AlarmAlert::AlarmAlert
    28 // AlarmAlert::AlarmAlert
    25 // rest of the details are commented in the header
    29 // rest of the details are commented in the header
    26 // ---------------------------------------------------------
    30 // ---------------------------------------------------------
    27 //
    31 //
    28 EXPORT_C AlarmAlert::AlarmAlert(AlarmAlertObserver *observer)
    32 EXPORT_C AlarmAlert::AlarmAlert(AlarmAlertObserver *observer)
    29 {
    33 {
       
    34 	OstTraceFunctionEntry0( ALARMALERT_ALARMALERT_ENTRY );
    30 	// Construct the client interface
    35 	// Construct the client interface
    31     mAlarmWidget = new AlarmAlertWidget(observer);
    36     mAlarmWidget = new AlarmAlertWidget(observer);
       
    37     OstTraceFunctionExit0( ALARMALERT_ALARMALERT_EXIT );
    32 }
    38 }
    33 
    39 
    34 // ---------------------------------------------------------
    40 // ---------------------------------------------------------
    35 // AlarmAlert::~AlarmAlert
    41 // AlarmAlert::~AlarmAlert
    36 // rest of the details are commented in the header
    42 // rest of the details are commented in the header
    37 // ---------------------------------------------------------
    43 // ---------------------------------------------------------
    38 //
    44 //
    39 EXPORT_C AlarmAlert::~AlarmAlert()
    45 EXPORT_C AlarmAlert::~AlarmAlert()
    40 {
    46 {
       
    47     OstTraceFunctionEntry0( DUP1_ALARMALERT_ALARMALERT_ENTRY );
    41     // Cleanup
    48     // Cleanup
    42 	if (mAlarmWidget) {
    49 	if (mAlarmWidget) {
    43 		delete mAlarmWidget;
    50 		delete mAlarmWidget;
    44 	}
    51 	}
       
    52 	OstTraceFunctionExit0( DUP1_ALARMALERT_ALARMALERT_EXIT );
    45 }
    53 }
    46 
    54 
    47 // ---------------------------------------------------------
    55 // ---------------------------------------------------------
    48 // AlarmAlert::showAlarmAlert
    56 // AlarmAlert::showAlarmAlert
    49 // rest of the details are commented in the header
    57 // rest of the details are commented in the header
    50 // ---------------------------------------------------------
    58 // ---------------------------------------------------------
    51 //
    59 //
    52 EXPORT_C bool AlarmAlert::showAlarmAlert(SAlarmInfo *alarmInfo)
    60 EXPORT_C bool AlarmAlert::showAlarmAlert(SAlarmInfo *alarmInfo)
    53 {
    61 {
       
    62     OstTraceFunctionEntry0( ALARMALERT_SHOWALARMALERT_ENTRY );
    54     // Forward the call to the client
    63     // Forward the call to the client
    55 	return mAlarmWidget->showAlarmDialog(alarmInfo);
    64 	return mAlarmWidget->showAlarmDialog(alarmInfo);
    56 }
    65 }
    57 
    66 
    58 // ---------------------------------------------------------
    67 // ---------------------------------------------------------
    60 // rest of the details are commented in the header
    69 // rest of the details are commented in the header
    61 // ---------------------------------------------------------
    70 // ---------------------------------------------------------
    62 //
    71 //
    63 EXPORT_C void AlarmAlert::dismissAlarmAlert()
    72 EXPORT_C void AlarmAlert::dismissAlarmAlert()
    64 {
    73 {
       
    74     OstTraceFunctionEntry0( ALARMALERT_DISMISSALARMALERT_ENTRY );
    65     // Forward the call to the client
    75     // Forward the call to the client
    66 	mAlarmWidget->dismissAlarmDialog();
    76 	mAlarmWidget->dismissAlarmDialog();
       
    77 	OstTraceFunctionExit0( ALARMALERT_DISMISSALARMALERT_EXIT );
    67 }
    78 }
    68 
    79 
    69 // ---------------------------------------------------------
    80 // ---------------------------------------------------------
    70 // AlarmAlert::updateAlarmAlert
    81 // AlarmAlert::updateAlarmAlert
    71 // rest of the details are commented in the header
    82 // rest of the details are commented in the header
    72 // ---------------------------------------------------------
    83 // ---------------------------------------------------------
    73 //
    84 //
    74 EXPORT_C bool AlarmAlert::updateAlarmAlert(SAlarmInfo *alarmInfo)
    85 EXPORT_C bool AlarmAlert::updateAlarmAlert(SAlarmInfo *alarmInfo)
    75 {
    86 {
       
    87     OstTraceFunctionEntry0( ALARMALERT_UPDATEALARMALERT_ENTRY );
    76     // Forward the call to the client
    88     // Forward the call to the client
    77 	return mAlarmWidget->updateAlarmDialog(alarmInfo);
    89 	return mAlarmWidget->updateAlarmDialog(alarmInfo);
    78 }
    90 }