equal
deleted
inserted
replaced
1182 { |
1182 { |
1183 TInt visiblecount=0; |
1183 TInt visiblecount=0; |
1184 TInt emailcount=0; |
1184 TInt emailcount=0; |
1185 TInt itemcount; |
1185 TInt itemcount; |
1186 CMsvEntry* entry = iSession->GetEntryL( serviceId ); |
1186 CMsvEntry* entry = iSession->GetEntryL( serviceId ); |
|
1187 CleanupStack::PushL( entry ); |
1187 itemcount=entry->Count(); |
1188 itemcount=entry->Count(); |
1188 |
1189 |
1189 //Find email messages |
1190 //Find email messages |
1190 CMsvEntrySelection *smtpselection = entry->ChildrenWithMtmL( KUidMsgTypeSMTP ); |
1191 CMsvEntrySelection *smtpselection = entry->ChildrenWithMtmL( KUidMsgTypeSMTP ); |
1191 CleanupStack::PushL( smtpselection ); |
1192 CleanupStack::PushL( smtpselection ); |
1242 { |
1243 { |
1243 CleanupStack::PopAndDestroy(imapselection); |
1244 CleanupStack::PopAndDestroy(imapselection); |
1244 CleanupStack::PopAndDestroy( pop3selection ); |
1245 CleanupStack::PopAndDestroy( pop3selection ); |
1245 } |
1246 } |
1246 CleanupStack::PopAndDestroy( smtpselection ); |
1247 CleanupStack::PopAndDestroy( smtpselection ); |
1247 |
1248 CleanupStack::PopAndDestroy( entry ); |
1248 return visiblecount; |
1249 return visiblecount; |
1249 } |
1250 } |
1250 // End of File |
1251 // End of File |