equal
deleted
inserted
replaced
278 } |
278 } |
279 return folderId; |
279 return folderId; |
280 } |
280 } |
281 |
281 |
282 |
282 |
283 |
283 /*! |
|
284 Returns folder type by id |
|
285 |
|
286 \param mailboxId The ID of the mailbox containing the folder |
|
287 |
|
288 \param folderId The ID of the folder |
|
289 |
|
290 \return Folder type |
|
291 */ |
|
292 NmFolderType NmDataManager::folderTypeById(NmId mailboxId, NmId folderId) |
|
293 { |
|
294 NmFolderType folderType(NmFolderOther); |
|
295 if (getStandardFolderId(mailboxId,NmFolderInbox)==folderId){ |
|
296 folderType=NmFolderInbox; |
|
297 } |
|
298 else if (getStandardFolderId(mailboxId,NmFolderOutbox)==folderId){ |
|
299 folderType=NmFolderOutbox; |
|
300 } |
|
301 else if (getStandardFolderId(mailboxId,NmFolderDrafts)==folderId){ |
|
302 folderType=NmFolderDrafts; |
|
303 } |
|
304 else if (getStandardFolderId(mailboxId,NmFolderSent)==folderId){ |
|
305 folderType=NmFolderSent; |
|
306 } |
|
307 else if (getStandardFolderId(mailboxId,NmFolderDeleted)==folderId){ |
|
308 folderType=NmFolderDeleted; |
|
309 } |
|
310 return folderType; |
|
311 } |