diff options
author | Matt Ronge <mronge@mronge.com> | 2013-06-02 20:41:28 -0500 |
---|---|---|
committer | Matt Ronge <mronge@mronge.com> | 2013-06-02 20:41:28 -0500 |
commit | 3ae5bf7a1d806c749c28f641be34733c85808efe (patch) | |
tree | 27513da58055e421686ace2601d37a1e23eacb28 /src/objc/imap/MCOIMAPFetchMessagesOperation.h | |
parent | 6fbe6f212003b97860a23c254e5124f0b2578366 (diff) |
Finished formatting docs for Appledoc for IMAP and SMTP
Diffstat (limited to 'src/objc/imap/MCOIMAPFetchMessagesOperation.h')
-rw-r--r-- | src/objc/imap/MCOIMAPFetchMessagesOperation.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/objc/imap/MCOIMAPFetchMessagesOperation.h b/src/objc/imap/MCOIMAPFetchMessagesOperation.h index 32a3a451..659d9bca 100644 --- a/src/objc/imap/MCOIMAPFetchMessagesOperation.h +++ b/src/objc/imap/MCOIMAPFetchMessagesOperation.h @@ -13,21 +13,28 @@ #import <MailCore/MCOIMAPBaseOperation.h> #import <MailCore/MCOConstants.h> -// This class implements an operation to fetch a list of messages. +/** This class implements an operation to fetch a list of messages from a folder */ @class MCOIndexSet; @interface MCOIMAPFetchMessagesOperation : MCOIMAPBaseOperation -// This block will be called each time a new message information will be downloaded. +/** This block will be called each time a new message is downloaded. */ @property (nonatomic, copy) MCOIMAPBaseOperationItemProgressBlock progress; -// 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. +/** + Starts the asynchronous fetch operation. + + @param completionBlock Called when the operation is finished. + + - On success `error` will be nil and `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 + + - On failure, `error` will be set with `MCOErrorDomain` as domain and an + error code available in `MCOConstants.h`, `messages` and `vanishedMessages` will be nil + + If you are not supporting QRESYNC you can safely ignore `vanishedMessages`. +*/ - (void) start:(void (^)(NSError * error, NSArray * /* MCOIMAPMessage */ messages, MCOIndexSet * vanishedMessages))completionBlock; @end |