Inherits from MCOPOPOperation : MCOOperation : NSObject
Declared in MCOPOPFetchMessageOperation.h
MCOPOPFetchMessageOperation.mm

Overview

Fetch a message from POP3

Tasks

Other Methods

Other Methods

Properties

progress

This block will be called as data is downloaded from the network

@property (nonatomic, copy) MCOPOPOperationProgressBlock progress

Declared In

MCOPOPFetchMessageOperation.h

Instance Methods

cancel

Cancel the operation.

- (void)cancel

Declared In

MCOOperation.h

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 , NSData *messageData ))completionBlock

Parameters

completionBlock

Called when the operation is finished.

  • On success error will be nil and data will contain the message data

  • On failure, error will be set with MCOErrorDomain as domain and an error code available in MCOConstants.h, data will be nil

Declared In

MCOPOPFetchMessageOperation.h