diff options
author | Dmitry Isaikin <isaikin-dmitry@yandex.ru> | 2016-06-06 04:28:53 +0400 |
---|---|---|
committer | HoĆ V. DINH <dinh.viet.hoa@gmail.com> | 2016-06-05 17:28:53 -0700 |
commit | eeed76e48c830fe742eadd435682f3b1e6036f83 (patch) | |
tree | 36bad63fccde47e6cdecb7033f65a3d75e1bbb71 /src/async/imap/MCIMAPAsyncSession.h | |
parent | 6dbe79ccf3f085da9a195ee3f9a59cb4449f6505 (diff) |
Add possibility of fetching message attachment by chunks and store it to file. (#1438)
Diffstat (limited to 'src/async/imap/MCIMAPAsyncSession.h')
-rw-r--r-- | src/async/imap/MCIMAPAsyncSession.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/async/imap/MCIMAPAsyncSession.h b/src/async/imap/MCIMAPAsyncSession.h index 0230deda..05437207 100644 --- a/src/async/imap/MCIMAPAsyncSession.h +++ b/src/async/imap/MCIMAPAsyncSession.h @@ -24,6 +24,7 @@ namespace mailcore { class IMAPMoveMessagesOperation; class IMAPFetchMessagesOperation; class IMAPFetchContentOperation; + class IMAPFetchContentToFileOperation; class IMAPFetchParsedContentOperation; class IMAPIdleOperation; class IMAPFolderInfoOperation; @@ -142,7 +143,13 @@ namespace mailcore { virtual IMAPFetchContentOperation * fetchMessageByUIDOperation(String * folder, uint32_t uid, bool urgent = false); virtual IMAPFetchContentOperation * fetchMessageAttachmentByUIDOperation(String * folder, uint32_t uid, String * partID, Encoding encoding, bool urgent = false); - + + virtual IMAPFetchContentToFileOperation * fetchMessageAttachmentToFileByUIDOperation( + String * folder, uint32_t uid, String * partID, + Encoding encoding, + String * filename, + bool urgent = false); + virtual IMAPFetchContentOperation * fetchMessageByNumberOperation(String * folder, uint32_t number, bool urgent = false); virtual IMAPCustomCommandOperation * customCommand(String *command, bool urgent); virtual IMAPFetchContentOperation * fetchMessageAttachmentByNumberOperation(String * folder, uint32_t number, String * partID, |