MCOIMAPFetchMessagesOperation Class Reference
| Inherits from | MCOIMAPBaseOperation : MCOOperation : NSObject |
| Declared in | MCOIMAPFetchMessagesOperation.h MCOIMAPFetchMessagesOperation.mm |
Properties
Instance Methods
operationCompleted
This methods is called on the main thread when the asynchronous operation is finished. Needs to be overriden by subclasses.
- (void)operationCompletedDeclared In
MCOOperation.hstart:
Starts the asynchronous fetch operation.
- (void)start:(void ( ^ ) ( NSError *error , NSArray *messages , MCOIndexSet *vanishedMessages ))completionBlockParameters
- completionBlock
Called when the operation is finished.
On success
errorwill be nil andmessageswill be an array of MCOIMAPMessage.vanishedMessageswill contain the messages removed on the server if the server supports QRESYNC and if it was a sync requestOn failure,
errorwill be set withMCOErrorDomainas domain and an error code available inMCOConstants.h,messagesandvanishedMessageswill be nilIf you are not supporting QRESYNC you can safely ignore
vanishedMessages.
Declared In
MCOIMAPFetchMessagesOperation.h