MCOIMAPFetchNamespaceOperation Class Reference
Inherits from | MCOIMAPBaseOperation : MCOOperation : NSObject |
Declared in | MCOIMAPFetchNamespaceOperation.h MCOIMAPFetchNamespaceOperation.mm |
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 namespace fetch operation.
- (void)start:(void ( ^ ) ( NSError *error , NSDictionary *namespaces ))completionBlock
Parameters
- completionBlock
Called when the operation is finished.
On success
error
will be nil andnamespaces
will contain these keys:-
MCOIMAPNamespacePersonal
for personal namespaces, -
MCOIMAPNamespaceOther
for other namespaces, -
MCOIMAPNamespaceShared
for shared namespaces.
Values of the dictionary are MCOIMAPNamespace
-
On failure,
error
will be set withMCOErrorDomain
as domain and an error code available inMCOConstants.h
,namespaces
will be nil
Declared In
MCOIMAPFetchNamespaceOperation.h