Inherits from MCOIMAPBaseOperation : MCOOperation : NSObject
Declared in MCOIMAPIdleOperation.h
MCOIMAPIdleOperation.mm

Overview

This class implements an IMAP IDLE. IDLE is used to keep a connection open with the server so that new messages can be pushed to the client. See RFC2177

Instance Methods

cancel

Cancel the operation.

- (void)cancel

Declared In

MCOOperation.h

interruptIdle

Stop the current IDLE session

- (void)interruptIdle

Declared In

MCOIMAPIdleOperation.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 IDLE

- (void)start:(void ( ^ ) ( NSError *error ))completionBlock

Parameters

completionBlock

Called when the IDLE times out, errors out or detects a change

  • On success error will be nil

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

Declared In

MCOIMAPIdleOperation.h