equal
deleted
inserted
replaced
71 FUNC_LOG; |
71 FUNC_LOG; |
72 // <qmail> removed sync-on-hold state |
72 // <qmail> removed sync-on-hold state |
73 if ( ( iPlugin.PluginId() == aPluginId ) && |
73 if ( ( iPlugin.PluginId() == aPluginId ) && |
74 ( aEvent == KIpsSosEmailSyncStarted || aEvent == KIpsSosEmailSyncCompleted ) ) |
74 ( aEvent == KIpsSosEmailSyncStarted || aEvent == KIpsSosEmailSyncCompleted ) ) |
75 { |
75 { |
76 AppendMailboxToSyncingMailbox( aMailbox, aEvent ); |
76 AppendMailboxToSyncingMailboxL( aMailbox, aEvent ); |
77 } |
77 } |
78 } |
78 } |
79 |
79 |
80 // --------------------------------------------------------------------------- |
80 // --------------------------------------------------------------------------- |
81 // --------------------------------------------------------------------------- |
81 // --------------------------------------------------------------------------- |
208 } |
208 } |
209 else |
209 else |
210 { |
210 { |
211 ipsState = KIpsSosEmailSyncCompleted; |
211 ipsState = KIpsSosEmailSyncCompleted; |
212 } |
212 } |
213 TInt count = iSyncingMailboxes.Append( |
213 // the next call, FindMailbox, handles the case |
|
214 // if .Append is failing, thus the return value can |
|
215 // be ignored |
|
216 TInt ignore = iSyncingMailboxes.Append( |
214 TIpsMailboxState( aMailbox, ipsState ) ); |
217 TIpsMailboxState( aMailbox, ipsState ) ); |
215 index = FindMailbox( aMailbox ); |
218 index = FindMailbox( aMailbox ); |
216 } |
219 } |
217 |
220 |
218 return index; |
221 return index; |
235 return index; |
238 return index; |
236 } |
239 } |
237 |
240 |
238 // --------------------------------------------------------------------------- |
241 // --------------------------------------------------------------------------- |
239 // --------------------------------------------------------------------------- |
242 // --------------------------------------------------------------------------- |
240 void CIpsPlgSyncStateHandler::AppendMailboxToSyncingMailbox( |
243 void CIpsPlgSyncStateHandler::AppendMailboxToSyncingMailboxL( |
241 TMsvId aMailbox, TInt aState ) |
244 TMsvId aMailbox, TInt aState ) |
242 { |
245 { |
243 FUNC_LOG; |
246 FUNC_LOG; |
244 TInt index = FindMailbox( aMailbox ); |
247 TInt index = FindMailbox( aMailbox ); |
245 if ( index == KErrNotFound ) |
248 if ( index == KErrNotFound ) |
246 { |
249 { |
247 iSyncingMailboxes.Append( TIpsMailboxState( aMailbox, aState ) ); |
250 iSyncingMailboxes.AppendL( TIpsMailboxState( aMailbox, aState ) ); |
248 } |
251 } |
249 else |
252 else |
250 { |
253 { |
251 iSyncingMailboxes[index].iState = aState; // faulty CS warning |
254 iSyncingMailboxes[index].iState = aState; // faulty CS warning |
252 } |
255 } |