MCOIMAPIdentityOperation Class Reference
Inherits from | MCOIMAPBaseOperation : MCOOperation : NSObject |
Declared in | MCOIMAPIdentityOperation.h MCOIMAPIdentityOperation.mm |
Overview
This class implements an operation to get the servers identification info or to send the clients identification info. Useful for bug reports and usage statistics. @warn Not all servers support this.
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 identity operation.
- (void)start:(void ( ^ ) ( NSError *error , NSDictionary *serverIdentity ))completionBlock
Parameters
- completionBlock
Called when the operation is finished.
On success
error
will be nil andserverIdentity
will contain identifying server information. See RFC2971 for commons dictionary keys.On failure,
error
will be set withMCOErrorDomain
as domain and an error code available inMCOConstants.h
,serverIdentity
will be nil
Declared In
MCOIMAPIdentityOperation.h