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 "calendeletingstate.h" |
20 #include "calendeletingstate.h" |
22 #include "calendarui_debug.h" // Debug macros |
21 #include "calendarui_debug.h" // Debug macros |
78 TRACE_EXIT_POINT; |
77 TRACE_EXIT_POINT; |
79 } |
78 } |
80 |
79 |
81 // ---------------------------------------------------------------------------- |
80 // ---------------------------------------------------------------------------- |
82 // CCalenDeletingState::HandleCommandL |
81 // CCalenDeletingState::HandleCommandL |
83 // From CCalenState |
82 // From CCCalenState |
84 // ---------------------------------------------------------------------------- |
83 // ---------------------------------------------------------------------------- |
85 TBool CCalenDeletingState::HandleCommandL( const TCalenCommand& aCommand, |
84 TBool CCalenDeletingState::HandleCommandL( const TCalenCommand& aCommand, |
86 CCalenStateMachine& aStateMachine ) |
85 CCalenStateMachine& aStateMachine ) |
87 { |
86 { |
88 TRACE_ENTRY_POINT; |
87 TRACE_ENTRY_POINT; |
92 |
91 |
93 ASSERT( handler ); // FIXME: error ui |
92 ASSERT( handler ); // FIXME: error ui |
94 |
93 |
95 TBool cmdUsed = EFalse; |
94 TBool cmdUsed = EFalse; |
96 |
95 |
97 if(ECalenDeleteEntryWithoutQuery == cmd) |
96 if( cmd == ECalenDeleteEntryWithoutQuery ) |
98 { |
97 { |
99 RequestCallbackL( handler, aCommand ); |
98 RequestCallbackL( handler, aCommand ); |
100 cmdUsed = ETrue; |
99 cmdUsed = ETrue; |
101 } |
100 } |
102 else if(ECalenFasterAppExit == cmd) |
101 else if( ECalenFasterAppExit == cmd ) |
103 { |
102 { |
104 SetCurrentState( aStateMachine, CCalenStateMachine::ECalenIdleState ); |
103 SetCurrentState( aStateMachine, CCalenStateMachine::ECalenIdleState ); |
105 ActivateCurrentStateL(aStateMachine); |
104 ActivateCurrentStateL(aStateMachine); |
106 RequestCallbackL( handler, aCommand ); |
105 RequestCallbackL( handler, aCommand ); |
107 cmdUsed = ETrue; |
106 cmdUsed = ETrue; |
108 } |
107 } |
109 else if(ECalenStartActiveStep == cmd) |
|
110 { |
|
111 RequestCallbackL( handler, aCommand ); |
|
112 cmdUsed = ETrue; |
|
113 } |
|
114 |
|
115 else if(ECalenMissedEventViewFromIdle == cmd) |
|
116 { |
|
117 RequestCallbackL( handler, aCommand ); |
|
118 cmdUsed = ETrue; |
|
119 } |
|
120 else if(ECalenMissedAlarmsViewFromIdle == cmd) |
|
121 { |
|
122 RequestCallbackL( handler, aCommand ); |
|
123 cmdUsed = ETrue; |
|
124 } |
|
125 |
108 |
126 TRACE_EXIT_POINT; |
109 TRACE_EXIT_POINT; |
127 return cmdUsed; |
110 return cmdUsed; |
128 } |
111 } |
129 |
112 |
130 // ---------------------------------------------------------------------------- |
113 // ---------------------------------------------------------------------------- |
131 // CCalenDeletingState::HandleNotificationL |
114 // CCalenDeletingState::HandleNotificationL |
132 // From CCalenState |
115 // From CCCalenState |
133 // ---------------------------------------------------------------------------- |
116 // ---------------------------------------------------------------------------- |
134 void CCalenDeletingState::HandleNotificationL(const TCalenNotification& aNotification, |
117 void CCalenDeletingState::HandleNotificationL(const TCalenNotification& aNotification, |
135 CCalenStateMachine& aStateMachine ) |
118 CCalenStateMachine& aStateMachine ) |
136 { |
119 { |
137 TRACE_ENTRY_POINT; |
120 TRACE_ENTRY_POINT; |