9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Calendar state machine |
14 * Description: Calendar state machine |
15 * |
15 * |
16 */ |
16 */ |
17 |
|
18 |
17 |
19 |
18 |
20 // includes |
19 // includes |
21 #include "calenexitingstate.h" |
20 #include "calenexitingstate.h" |
22 #include "calendarui_debug.h" // Debug macros |
21 #include "calendarui_debug.h" // Debug macros |
23 #include "calencontroller.h" |
22 #include "calencontroller.h" |
24 #include "calenstatemachine.h" |
23 #include "calenstatemachine.h" |
25 #include "calennotifier.h" |
24 #include "calennotifier.h" |
|
25 #include "OstTraceDefinitions.h" |
|
26 #ifdef OST_TRACE_COMPILER_IN_USE |
|
27 #include "calenexitingstateTraces.h" |
|
28 #endif |
26 |
29 |
27 // ---------------------------------------------------------------------------- |
30 // ---------------------------------------------------------------------------- |
28 // CCalenExitingState::NewLC |
31 // CCalenExitingState::NewLC |
29 // First stage construction |
32 // First stage construction |
30 // ---------------------------------------------------------------------------- |
33 // ---------------------------------------------------------------------------- |
31 CCalenExitingState* CCalenExitingState::NewLC( CCalenController& aController, |
34 CCalenExitingState* CCalenExitingState::NewLC( CCalenController& aController, |
32 RHashSet<TCalenNotification>& aOutstandingNotifications ) |
35 RHashSet<TCalenNotification>& aOutstandingNotifications ) |
33 { |
36 { |
34 TRACE_ENTRY_POINT; |
37 OstTraceFunctionEntry0( CCALENEXITINGSTATE_NEWLC_ENTRY ); |
35 |
38 |
36 CCalenExitingState* self = new ( ELeave ) CCalenExitingState( aController,aOutstandingNotifications); |
39 CCalenExitingState* self = new ( ELeave ) CCalenExitingState( aController,aOutstandingNotifications); |
37 CleanupStack::PushL( self ); |
40 CleanupStack::PushL( self ); |
38 self->ConstructL(); |
41 self->ConstructL(); |
39 |
42 |
40 TRACE_EXIT_POINT; |
43 OstTraceFunctionExit0( CCALENEXITINGSTATE_NEWLC_EXIT ); |
41 return self; |
44 return self; |
42 } |
45 } |
43 |
46 |
44 // ---------------------------------------------------------------------------- |
47 // ---------------------------------------------------------------------------- |
45 // CCalenExitingState::ConstructL |
48 // CCalenExitingState::ConstructL |
46 // Second stage construction |
49 // Second stage construction |
47 // ---------------------------------------------------------------------------- |
50 // ---------------------------------------------------------------------------- |
48 void CCalenExitingState::ConstructL() |
51 void CCalenExitingState::ConstructL() |
49 { |
52 { |
50 TRACE_ENTRY_POINT; |
53 OstTraceFunctionEntry0( CCALENEXITINGSTATE_CONSTRUCTL_ENTRY ); |
|
54 |
51 BaseConstructL(); |
55 BaseConstructL(); |
52 |
56 |
53 TRACE_EXIT_POINT; |
57 OstTraceFunctionExit0( CCALENEXITINGSTATE_CONSTRUCTL_EXIT ); |
54 } |
58 } |
55 |
59 |
56 // ---------------------------------------------------------------------------- |
60 // ---------------------------------------------------------------------------- |
57 // CCalenExitingState::CCalenExitingState |
61 // CCalenExitingState::CCalenExitingState |
58 // C++ Constructor |
62 // C++ Constructor |
59 // ---------------------------------------------------------------------------- |
63 // ---------------------------------------------------------------------------- |
60 CCalenExitingState::CCalenExitingState( CCalenController& aController, |
64 CCalenExitingState::CCalenExitingState( CCalenController& aController, |
61 RHashSet<TCalenNotification>& aOutstandingNotifications ) |
65 RHashSet<TCalenNotification>& aOutstandingNotifications ) |
62 : CCalenState( aController, aOutstandingNotifications ) |
66 : CCalenState( aController, aOutstandingNotifications ) |
63 { |
67 { |
64 TRACE_ENTRY_POINT; |
68 OstTraceFunctionEntry0( CCALENEXITINGSTATE_CCALENEXITINGSTATE_ENTRY ); |
65 |
69 |
66 TRACE_EXIT_POINT; |
70 OstTraceFunctionExit0( CCALENEXITINGSTATE_CCALENEXITINGSTATE_EXIT ); |
67 } |
71 } |
68 |
72 |
69 // ---------------------------------------------------------------------------- |
73 // ---------------------------------------------------------------------------- |
70 // CCalenExitingState::CCalenExitingState |
74 // CCalenExitingState::CCalenExitingState |
71 // Destructor |
75 // Destructor |
72 // ---------------------------------------------------------------------------- |
76 // ---------------------------------------------------------------------------- |
73 CCalenExitingState::~CCalenExitingState() |
77 CCalenExitingState::~CCalenExitingState() |
74 { |
78 { |
75 TRACE_ENTRY_POINT; |
79 OstTraceFunctionEntry0( DUP1_CCALENEXITINGSTATE_CCALENEXITINGSTATE_ENTRY ); |
76 |
80 |
77 TRACE_EXIT_POINT; |
81 OstTraceFunctionExit0( DUP1_CCALENEXITINGSTATE_CCALENEXITINGSTATE_EXIT ); |
78 } |
82 } |
79 |
83 |
80 // ---------------------------------------------------------------------------- |
84 // ---------------------------------------------------------------------------- |
81 // CCalenExitingState::HandleCommandL |
85 // CCalenExitingState::HandleCommandL |
82 // From CCalenState |
86 // From CCalenState |
83 // ---------------------------------------------------------------------------- |
87 // ---------------------------------------------------------------------------- |
84 TBool CCalenExitingState::HandleCommandL( const TCalenCommand& /*aCommand*/, |
88 TBool CCalenExitingState::HandleCommandL( const TCalenCommand& /*aCommand*/, |
85 CCalenStateMachine& /*aStateMachine*/ ) |
89 CCalenStateMachine& /*aStateMachine*/ ) |
86 { |
90 { |
87 TRACE_ENTRY_POINT; |
91 OstTraceFunctionEntry0( CCALENEXITINGSTATE_HANDLECOMMANDL_ENTRY ); |
88 TRACE_EXIT_POINT; |
92 |
|
93 OstTraceFunctionExit0( CCALENEXITINGSTATE_HANDLECOMMANDL_EXIT ); |
89 return EFalse; |
94 return EFalse; |
90 } |
95 } |
91 |
96 |
92 // ---------------------------------------------------------------------------- |
97 // ---------------------------------------------------------------------------- |
93 // CCalenExitingState::HandleNotificationL |
98 // CCalenExitingState::HandleNotificationL |
94 // From CCalenState |
99 // From CCalenState |
95 // ---------------------------------------------------------------------------- |
100 // ---------------------------------------------------------------------------- |
96 void CCalenExitingState::HandleNotificationL(const TCalenNotification& /*aNotification*/, |
101 void CCalenExitingState::HandleNotificationL(const TCalenNotification& /*aNotification*/, |
97 CCalenStateMachine& /*aStateMachine*/ ) |
102 CCalenStateMachine& /*aStateMachine*/ ) |
98 { |
103 { |
99 TRACE_ENTRY_POINT; |
104 OstTraceFunctionEntry0( CCALENEXITINGSTATE_HANDLENOTIFICATIONL_ENTRY ); |
100 TRACE_EXIT_POINT; |
105 |
|
106 OstTraceFunctionExit0( CCALENEXITINGSTATE_HANDLENOTIFICATIONL_EXIT ); |
101 } |
107 } |
102 |
108 |
103 |
109 |
104 // end of file |
110 // end of file |