aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/imap/MCOIMAPFetchMessagesOperation.h
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-04-06 11:01:14 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-04-06 11:01:14 -0700
commitabc2b119c709a3fcea92ea1750f208b2bf47c9d5 (patch)
tree93bbf712bb9b0ff2e568b7bf951507a17b0d814d /src/objc/imap/MCOIMAPFetchMessagesOperation.h
parented6ba5a558bccf6024c1a5ab3db2b89d4c6a1420 (diff)
Work in progress on IMAP documentation.
Diffstat (limited to 'src/objc/imap/MCOIMAPFetchMessagesOperation.h')
-rw-r--r--src/objc/imap/MCOIMAPFetchMessagesOperation.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/objc/imap/MCOIMAPFetchMessagesOperation.h b/src/objc/imap/MCOIMAPFetchMessagesOperation.h
index adde2dbd..32a3a451 100644
--- a/src/objc/imap/MCOIMAPFetchMessagesOperation.h
+++ b/src/objc/imap/MCOIMAPFetchMessagesOperation.h
@@ -13,13 +13,22 @@
#import <MailCore/MCOIMAPBaseOperation.h>
#import <MailCore/MCOConstants.h>
+// This class implements an operation to fetch a list of messages.
+
@class MCOIndexSet;
@interface MCOIMAPFetchMessagesOperation : MCOIMAPBaseOperation
+// This block will be called each time a new message information will be downloaded.
@property (nonatomic, copy) MCOIMAPBaseOperationItemProgressBlock progress;
-- (void)start:(void (^)(NSError *error, NSArray * messages, MCOIndexSet * vanishedMessages))completionBlock;
+// Starts the asynchronous operation.
+// On success, the completion block will be called with nil as error. messages will be an array of MCOIMAPMessage.
+// vanishedMessages will contain the messages removed on the server if the server supports QRESYNC and if it was a sync request.
+// In other case, vanishedMessages will be nil.
+// On failure, error will be set with MCOErrorDomain as domain and an error code available in MCOConstants.h.
+// messages and vanishedMessages will be nil.
+- (void) start:(void (^)(NSError * error, NSArray * /* MCOIMAPMessage */ messages, MCOIndexSet * vanishedMessages))completionBlock;
@end