htiui/HtiServicePlugins/HtiMessagesServicePlugin/src/HtiMessagesServicePlugin.cpp
equal
deleted
inserted
replaced
20 #include "HtiMessagesServicePlugin.h" |
20 #include "HtiMessagesServicePlugin.h" |
21 #include "MessageMgmntHandler.h" |
21 #include "MessageMgmntHandler.h" |
22 #include "HtiIAPHandler.h" |
22 #include "HtiIAPHandler.h" |
23 #include "HtiMailboxHandler.h" |
23 #include "HtiMailboxHandler.h" |
24 #include "HtiMsgSettingsHandler.h" |
24 #include "HtiMsgSettingsHandler.h" |
|
25 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 ) |
|
26 #include "HtiNotificationHandler.h" |
|
27 #endif |
25 |
28 |
26 #include <HtiDispatcherInterface.h> |
29 #include <HtiDispatcherInterface.h> |
27 #include <HtiLogging.h> |
30 #include <HtiLogging.h> |
28 |
31 |
29 // CONSTANTS |
32 // CONSTANTS |
52 HTI_LOG_TEXT( "CHtiMessagesServicePlugin destroy" ); |
55 HTI_LOG_TEXT( "CHtiMessagesServicePlugin destroy" ); |
53 delete iMessageHandler; |
56 delete iMessageHandler; |
54 delete iIAPHandler; |
57 delete iIAPHandler; |
55 delete iMailboxHandler; |
58 delete iMailboxHandler; |
56 delete iMsgSettingsHandler; |
59 delete iMsgSettingsHandler; |
|
60 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 ) |
|
61 delete iNotificationHandler; |
|
62 #endif |
57 } |
63 } |
58 |
64 |
59 // ---------------------------------------------------------------------------- |
65 // ---------------------------------------------------------------------------- |
60 void CHtiMessagesServicePlugin::ConstructL() |
66 void CHtiMessagesServicePlugin::ConstructL() |
61 { |
67 { |
115 iMsgSettingsHandler->SetDispatcher( iDispatcher ); |
121 iMsgSettingsHandler->SetDispatcher( iDispatcher ); |
116 } |
122 } |
117 iMsgSettingsHandler->ProcessMessageL( aMessage, aPriority ); |
123 iMsgSettingsHandler->ProcessMessageL( aMessage, aPriority ); |
118 } |
124 } |
119 |
125 |
|
126 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 ) |
|
127 else if ( command >= ECreateVoiceMessageNotification && command <= EClearAllNotifications) |
|
128 { |
|
129 if( !iNotificationHandler ) |
|
130 { |
|
131 iNotificationHandler = CHtiNotificationHandler::NewL(); |
|
132 iNotificationHandler->SetDispatcher(iDispatcher); |
|
133 } |
|
134 iNotificationHandler->ProcessMessageL( aMessage, aPriority ); |
|
135 } |
|
136 #endif |
|
137 |
120 else |
138 else |
121 { |
139 { |
122 User::LeaveIfError( iDispatcher->DispatchOutgoingErrorMessage( |
140 User::LeaveIfError( iDispatcher->DispatchOutgoingErrorMessage( |
123 KErrArgument, KErrorUnrecognizedCommand, KHtiMessagesServiceUid ) ); |
141 KErrArgument, KErrorUnrecognizedCommand, KHtiMessagesServiceUid ) ); |
124 } |
142 } |