--- a/calendarui/controller/src/calensendingstate.cpp Thu Aug 19 09:53:43 2010 +0300
+++ b/calendarui/controller/src/calensendingstate.cpp Tue Aug 31 15:13:43 2010 +0300
@@ -11,18 +11,21 @@
*
* Contributors:
*
-* Description: Calendar state machine
+* Description: Calendar state machine
*
*/
-
// includes
#include "calensendingstate.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 "calensendingstateTraces.h"
+#endif
// ----------------------------------------------------------------------------
// CCalenSendingState::NewLC
@@ -31,13 +34,13 @@
CCalenSendingState* CCalenSendingState::NewLC( CCalenController& aController,
RHashSet<TCalenNotification>& aOutstandingNotifications )
{
- TRACE_ENTRY_POINT;
-
+ OstTraceFunctionEntry0( CCALENSENDINGSTATE_NEWLC_ENTRY );
+
CCalenSendingState* self = new ( ELeave ) CCalenSendingState( aController,aOutstandingNotifications );
CleanupStack::PushL( self );
self->ConstructL();
- TRACE_EXIT_POINT;
+ OstTraceFunctionExit0( CCALENSENDINGSTATE_NEWLC_EXIT );
return self;
}
@@ -47,10 +50,11 @@
// ----------------------------------------------------------------------------
void CCalenSendingState::ConstructL()
{
- TRACE_ENTRY_POINT;
+ OstTraceFunctionEntry0( CCALENSENDINGSTATE_CONSTRUCTL_ENTRY );
+
BaseConstructL();
- TRACE_EXIT_POINT;
+ OstTraceFunctionExit0( CCALENSENDINGSTATE_CONSTRUCTL_EXIT );
}
// ----------------------------------------------------------------------------
@@ -61,9 +65,9 @@
RHashSet<TCalenNotification>& aOutstandingNotifications )
: CCalenState( aController, aOutstandingNotifications )
{
- TRACE_ENTRY_POINT;
+ OstTraceFunctionEntry0( CCALENSENDINGSTATE_CCALENSENDINGSTATE_ENTRY );
- TRACE_EXIT_POINT;
+ OstTraceFunctionExit0( CCALENSENDINGSTATE_CCALENSENDINGSTATE_EXIT );
}
// ----------------------------------------------------------------------------
@@ -72,9 +76,9 @@
// ----------------------------------------------------------------------------
CCalenSendingState::~CCalenSendingState()
{
- TRACE_ENTRY_POINT;
+ OstTraceFunctionEntry0( DUP1_CCALENSENDINGSTATE_CCALENSENDINGSTATE_ENTRY );
- TRACE_EXIT_POINT;
+ OstTraceFunctionExit0( DUP1_CCALENSENDINGSTATE_CCALENSENDINGSTATE_EXIT );
}
// ----------------------------------------------------------------------------
@@ -84,7 +88,8 @@
TBool CCalenSendingState::HandleCommandL( const TCalenCommand& aCommand,
CCalenStateMachine& aStateMachine )
{
- TRACE_ENTRY_POINT;
+ OstTraceFunctionEntry0( CCALENSENDINGSTATE_HANDLECOMMANDL_ENTRY );
+
TInt cmd = aCommand.Command();
MCalenCommandHandler* handler = iController.GetCommandHandlerL( cmd );
@@ -92,20 +97,15 @@
TBool cmdUsed = EFalse;
- if(ECalenFasterAppExit == cmd)
+ if( ECalenFasterAppExit == cmd )
{
SetCurrentState( aStateMachine, CCalenStateMachine::ECalenIdleState );
ActivateCurrentStateL(aStateMachine);
RequestCallbackL( handler, aCommand );
cmdUsed = ETrue;
}
- else if(ECalenStartActiveStep == cmd)
- {
- RequestCallbackL( handler, aCommand );
- cmdUsed = ETrue;
- }
- TRACE_EXIT_POINT;
+ OstTraceFunctionExit0( CCALENSENDINGSTATE_HANDLECOMMANDL_EXIT );
return cmdUsed;
}
@@ -116,11 +116,10 @@
void CCalenSendingState::HandleNotificationL(const TCalenNotification& aNotification,
CCalenStateMachine& aStateMachine )
{
- TRACE_ENTRY_POINT;
-
+ OstTraceFunctionEntry0( CCALENSENDINGSTATE_HANDLENOTIFICATIONL_ENTRY );
+
switch( aNotification )
{
- case ECalenNotifyEntrySendCancel:
case ECalenNotifyDialogClosed: // issued when send method query dialog is cancelled
{
// FIXME Should have a ECalenNotifyEntrySent?
@@ -140,7 +139,7 @@
break;
}
- TRACE_EXIT_POINT;
+ OstTraceFunctionExit0( CCALENSENDINGSTATE_HANDLENOTIFICATIONL_EXIT );
}