MCOPOPFetchHeaderOperation Class Reference
Inherits from | MCOPOPOperation : MCOOperation : NSObject |
Declared in | MCOPOPFetchHeaderOperation.h MCOPOPFetchHeaderOperation.mm |
Overview
This is an asynchronous operation that will fetch the header of a message. @See MCOPOPSession
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 , MCOMessageHeader *header ))completionBlock
Parameters
- completionBlock
Called when the operation is finished.
On success
error
will be nil andheader
will contain the message headerOn failure,
error
will be set withMCOErrorDomain
as domain and an error code available in MCOConstants.h,header
will be null
Declared In
MCOPOPFetchHeaderOperation.h