diff -r 5aadd1120515 -r b57382753122 calendarui/controller/src/calenhelpstate.cpp --- a/calendarui/controller/src/calenhelpstate.cpp Fri Oct 15 12:10:36 2010 +0530 +++ b/calendarui/controller/src/calenhelpstate.cpp Wed Nov 03 17:12:22 2010 +0530 @@ -11,21 +11,18 @@ * * Contributors: * -* Description: Calendar state machine +* Description: Calendar state machine * */ + // includes #include "calenhelpstate.h" #include "calendarui_debug.h" // Debug macros #include "calencontroller.h" #include "calenstatemachine.h" #include "calennotifier.h" -#include "OstTraceDefinitions.h" -#ifdef OST_TRACE_COMPILER_IN_USE -#include "calenhelpstateTraces.h" -#endif // ---------------------------------------------------------------------------- // CCalenHelpState::NewLC @@ -34,13 +31,13 @@ CCalenHelpState* CCalenHelpState::NewLC( CCalenController& aController, RHashSet& aOutstandingNotifications ) { - OstTraceFunctionEntry0( CCALENHELPSTATE_NEWLC_ENTRY ); - + TRACE_ENTRY_POINT; + CCalenHelpState* self = new ( ELeave ) CCalenHelpState( aController, aOutstandingNotifications ); CleanupStack::PushL( self ); self->ConstructL(); - OstTraceFunctionExit0( CCALENHELPSTATE_NEWLC_EXIT ); + TRACE_EXIT_POINT; return self; } @@ -50,11 +47,10 @@ // ---------------------------------------------------------------------------- void CCalenHelpState::ConstructL() { - OstTraceFunctionEntry0( CCALENHELPSTATE_CONSTRUCTL_ENTRY ); - + TRACE_ENTRY_POINT; BaseConstructL(); - OstTraceFunctionExit0( CCALENHELPSTATE_CONSTRUCTL_EXIT ); + TRACE_EXIT_POINT; } // ---------------------------------------------------------------------------- @@ -65,9 +61,9 @@ RHashSet& aOutstandingNotifications ) : CCalenState( aController, aOutstandingNotifications ) { - OstTraceFunctionEntry0( CCALENHELPSTATE_CCALENHELPSTATE_ENTRY ); + TRACE_ENTRY_POINT; - OstTraceFunctionExit0( CCALENHELPSTATE_CCALENHELPSTATE_EXIT ); + TRACE_EXIT_POINT; } // ---------------------------------------------------------------------------- @@ -76,9 +72,9 @@ // ---------------------------------------------------------------------------- CCalenHelpState::~CCalenHelpState() { - OstTraceFunctionEntry0( DUP1_CCALENHELPSTATE_CCALENHELPSTATE_ENTRY ); - - OstTraceFunctionExit0( DUP1_CCALENHELPSTATE_CCALENHELPSTATE_EXIT ); + TRACE_ENTRY_POINT; + + TRACE_EXIT_POINT; } // ---------------------------------------------------------------------------- @@ -88,8 +84,7 @@ TBool CCalenHelpState::HandleCommandL( const TCalenCommand& aCommand, CCalenStateMachine& aStateMachine ) { - OstTraceFunctionEntry0( CCALENHELPSTATE_HANDLECOMMANDL_ENTRY ); - + TRACE_ENTRY_POINT; TInt cmd = aCommand.Command(); MCalenCommandHandler* handler = iController.GetCommandHandlerL( cmd ); @@ -106,7 +101,7 @@ cmdUsed = ETrue; } - OstTraceFunctionExit0( CCALENHELPSTATE_HANDLECOMMANDL_EXIT ); + TRACE_EXIT_POINT; return cmdUsed; } @@ -118,9 +113,8 @@ void CCalenHelpState::HandleNotificationL(const TCalenNotification& /*aNotification*/, CCalenStateMachine& /*aStateMachine*/ ) { - OstTraceFunctionEntry0( CCALENHELPSTATE_HANDLENOTIFICATIONL_ENTRY ); - - OstTraceFunctionExit0( CCALENHELPSTATE_HANDLENOTIFICATIONL_EXIT ); + TRACE_ENTRY_POINT; + TRACE_EXIT_POINT; }