emailservices/emailserver/cmailhandlerplugin/src/fsnotificationhandlerbaseimpl.cpp
equal
deleted
inserted
replaced
23 |
23 |
24 #include "fsnotificationhandlermgr.h" |
24 #include "fsnotificationhandlermgr.h" |
25 #include "fsnotificationhandlerbase.h" |
25 #include "fsnotificationhandlerbase.h" |
26 #include "cmailhandlerpluginpanic.h" |
26 #include "cmailhandlerpluginpanic.h" |
27 #include "commonemailcrkeys.h" |
27 #include "commonemailcrkeys.h" |
28 #include "FreestyleEmailCenRepKeys.h" |
28 #include "freestyleemailcenrepkeys.h" |
29 #include "FreestyleEmailuiConstants.h" |
29 #include "FreestyleEmailUiConstants.h" |
30 |
30 |
31 |
31 |
32 // ======== MEMBER FUNCTIONS ======== |
32 // ======== MEMBER FUNCTIONS ======== |
33 |
33 |
34 CFSNotificationHandlerBase::CFSNotificationHandlerBase( |
34 CFSNotificationHandlerBase::CFSNotificationHandlerBase( |
176 TAny* /*aParam2*/, |
176 TAny* /*aParam2*/, |
177 TAny* /*aParam3*/ ) const |
177 TAny* /*aParam3*/ ) const |
178 { |
178 { |
179 FUNC_LOG; |
179 FUNC_LOG; |
180 if ( aEvent != TFSEventMailboxDeleted ) |
180 if ( aEvent != TFSEventMailboxDeleted ) |
181 { |
181 { |
182 CFSMailBox* mailBox( MailClient().GetMailBoxByUidL( aMailbox ) ); |
182 CFSMailBox* mailBox( MailClient().GetMailBoxByUidL( aMailbox ) ); |
183 if ( mailBox == NULL ) |
183 if ( mailBox == NULL ) |
184 { |
184 { |
185 User::Leave( KErrArgument ); |
185 User::Leave( KErrArgument ); |
186 } |
186 } |
187 |
187 |
188 if ( mailBox->HasCapability( EFSMBoxCapaNewEmailNotifications ) ) |
188 if ( mailBox->HasCapability( EFSMBoxCapaNewEmailNotifications ) ) |
189 { |
189 { |
190 delete mailBox; |
190 delete mailBox; |
191 return EFalse; |
191 return EFalse; |
192 } |
192 } |
193 else |
193 else |
194 { |
194 { |
195 delete mailBox; |
195 delete mailBox; |
196 return ETrue; |
196 return ETrue; |
197 } |
197 } |
198 } |
198 } |
199 else |
199 else |
200 { |
200 { |
201 return ETrue; |
201 return ETrue; |
202 } |
202 } |
203 } |
203 } |
204 |
204 |
205 void CFSNotificationHandlerBase::HandleEventL( |
205 void CFSNotificationHandlerBase::HandleEventL( |
206 TFSMailEvent aEvent, |
206 TFSMailEvent aEvent, |
207 TFSMailMsgId aMailbox, |
207 TFSMailMsgId aMailbox, |