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)operationCompleted
Declared In
MCOOperation.h
start:
Starts the asynchronous fetch operation.
- (void)start:(void ( ^ ) ( NSError *error , NSArray *messages , MCOIndexSet *vanishedMessages ))completionBlock
Parameters
- completionBlock
Called when the operation is finished.
On success
error
will be nil andmessages
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 requestOn failure,
error
will be set withMCOErrorDomain
as domain and an error code available inMCOConstants.h
,messages
andvanishedMessages
will be nilIf you are not supporting QRESYNC you can safely ignore
vanishedMessages
.
Declared In
MCOIMAPFetchMessagesOperation.h