25 #include "calennotifier.h" |
25 #include "calennotifier.h" |
26 #include "calenservices.h" |
26 #include "calenservices.h" |
27 #include "calensettingsview.h" |
27 #include "calensettingsview.h" |
28 #include "calenviewmanager.h" |
28 #include "calenviewmanager.h" |
29 #include <hbmainwindow.h> |
29 #include <hbmainwindow.h> |
|
30 #include "OstTraceDefinitions.h" |
|
31 #ifdef OST_TRACE_COMPILER_IN_USE |
|
32 #include "calenactionuiTraces.h" |
|
33 #endif |
30 |
34 |
31 // ---------------------------------------------------------------------------- |
35 // ---------------------------------------------------------------------------- |
32 // CCalenActionUi::NewL |
36 // CCalenActionUi::NewL |
33 // 1st phase of construction |
37 // 1st phase of construction |
34 // (other items were commented in a header). |
38 // (other items were commented in a header). |
35 // ---------------------------------------------------------------------------- |
39 // ---------------------------------------------------------------------------- |
36 // |
40 // |
37 CCalenActionUi* CCalenActionUi::NewL( CCalenController& aController ) |
41 CCalenActionUi* CCalenActionUi::NewL( CCalenController& aController ) |
38 { |
42 { |
39 TRACE_ENTRY_POINT; |
43 OstTraceFunctionEntry0( CCALENACTIONUI_NEWL_ENTRY ); |
40 |
44 |
41 CCalenActionUi* self = new( ELeave ) CCalenActionUi( aController ); |
45 CCalenActionUi* self = new( ELeave ) CCalenActionUi( aController ); |
42 CleanupStack::PushL( self ); |
46 CleanupStack::PushL( self ); |
43 self->ConstructL(); |
47 self->ConstructL(); |
44 CleanupStack::Pop( self ); |
48 CleanupStack::Pop( self ); |
45 |
49 |
46 TRACE_EXIT_POINT; |
50 OstTraceFunctionExit0( CCALENACTIONUI_NEWL_EXIT ); |
47 return self; |
51 return self; |
48 } |
52 } |
49 |
53 |
50 // ---------------------------------------------------------------------------- |
54 // ---------------------------------------------------------------------------- |
51 // CCalenActionUi::CCalenActionUi |
55 // CCalenActionUi::CCalenActionUi |
54 // ---------------------------------------------------------------------------- |
58 // ---------------------------------------------------------------------------- |
55 // |
59 // |
56 CCalenActionUi::CCalenActionUi( CCalenController& aController ) |
60 CCalenActionUi::CCalenActionUi( CCalenController& aController ) |
57 : iController( aController ) |
61 : iController( aController ) |
58 { |
62 { |
59 TRACE_ENTRY_POINT; |
63 OstTraceFunctionEntry0( CCALENACTIONUI_CCALENACTIONUI_ENTRY ); |
60 TRACE_EXIT_POINT; |
64 |
|
65 OstTraceFunctionExit0( CCALENACTIONUI_CCALENACTIONUI_EXIT ); |
61 } |
66 } |
62 |
67 |
63 // ---------------------------------------------------------------------------- |
68 // ---------------------------------------------------------------------------- |
64 // CCalenActionUi::ConstructL |
69 // CCalenActionUi::ConstructL |
65 // 2nd phase of construction. |
70 // 2nd phase of construction. |
66 // (other items were commented in a header). |
71 // (other items were commented in a header). |
67 // ---------------------------------------------------------------------------- |
72 // ---------------------------------------------------------------------------- |
68 // |
73 // |
69 void CCalenActionUi::ConstructL() |
74 void CCalenActionUi::ConstructL() |
70 { |
75 { |
71 TRACE_ENTRY_POINT; |
76 OstTraceFunctionEntry0( CCALENACTIONUI_CONSTRUCTL_ENTRY ); |
72 TRACE_EXIT_POINT; |
77 |
|
78 OstTraceFunctionExit0( CCALENACTIONUI_CONSTRUCTL_EXIT ); |
73 } |
79 } |
74 |
80 |
75 // ---------------------------------------------------------------------------- |
81 // ---------------------------------------------------------------------------- |
76 // CCalenActionUi::~CCalenActionUi |
82 // CCalenActionUi::~CCalenActionUi |
77 // Destructor. |
83 // Destructor. |
78 // (other items were commented in a header). |
84 // (other items were commented in a header). |
79 // ---------------------------------------------------------------------------- |
85 // ---------------------------------------------------------------------------- |
80 // |
86 // |
81 CCalenActionUi::~CCalenActionUi() |
87 CCalenActionUi::~CCalenActionUi() |
82 { |
88 { |
83 TRACE_ENTRY_POINT; |
89 OstTraceFunctionEntry0( DUP1_CCALENACTIONUI_CCALENACTIONUI_ENTRY ); |
84 |
90 |
85 delete iDeleteUi; |
91 delete iDeleteUi; |
86 delete iEditUi; |
92 delete iEditUi; |
87 |
93 |
88 TRACE_EXIT_POINT; |
94 OstTraceFunctionExit0( DUP1_CCALENACTIONUI_CCALENACTIONUI_EXIT ); |
89 } |
95 } |
90 |
96 |
91 // ---------------------------------------------------------------------------- |
97 // ---------------------------------------------------------------------------- |
92 // CCalenActionUi::GetCommandHandlerL |
98 // CCalenActionUi::GetCommandHandlerL |
93 // Gets a command handler |
99 // Gets a command handler |
94 // ---------------------------------------------------------------------------- |
100 // ---------------------------------------------------------------------------- |
95 // |
101 // |
96 MCalenCommandHandler* CCalenActionUi::GetCommandHandlerL( TInt aCommand ) |
102 MCalenCommandHandler* CCalenActionUi::GetCommandHandlerL( TInt aCommand ) |
97 { |
103 { |
|
104 OstTraceFunctionEntry0( CCALENACTIONUI_GETCOMMANDHANDLERL_ENTRY ); |
|
105 |
98 MCalenCommandHandler* handler = NULL; |
106 MCalenCommandHandler* handler = NULL; |
99 |
107 |
100 if ( aCommand >= ECalenEditCommandBase |
108 if ( aCommand >= ECalenEditCommandBase |
101 && aCommand < ECalenDeleteCommandBase ) |
109 && aCommand < ECalenDeleteCommandBase ) |
102 { |
110 { |
135 // (other items were commented in a header). |
143 // (other items were commented in a header). |
136 // ---------------------------------------------------------------------------- |
144 // ---------------------------------------------------------------------------- |
137 // |
145 // |
138 TBool CCalenActionUi::HandleCommandL( const TCalenCommand& aCommand ) |
146 TBool CCalenActionUi::HandleCommandL( const TCalenCommand& aCommand ) |
139 { |
147 { |
140 TRACE_ENTRY_POINT; |
148 OstTraceFunctionEntry0( CCALENACTIONUI_HANDLECOMMANDL_ENTRY ); |
|
149 |
141 TBool continueCommand(EFalse); |
150 TBool continueCommand(EFalse); |
142 |
151 |
143 if(aCommand.Command()==ECalenShowSettings) |
152 if(aCommand.Command()==ECalenShowSettings) |
144 { |
153 { |
145 iController.ViewManager().launchSettingsView(); |
154 iController.ViewManager().launchSettingsView(); |
146 } |
155 } |
147 |
156 |
148 TRACE_EXIT_POINT; |
157 OstTraceFunctionExit0( CCALENACTIONUI_HANDLECOMMANDL_EXIT ); |
149 return continueCommand; |
158 return continueCommand; |
150 } |
159 } |
151 |
160 |
152 // End of file |
161 // End of file |