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)operationCompletedDeclared In
MCOOperation.hstart:
Starts the asynchronous namespace fetch operation.
- (void)start:(void ( ^ ) ( NSError *error , NSDictionary *namespaces ))completionBlockParameters
- completionBlock
Called when the operation is finished.
On success
errorwill be nil andnamespaceswill contain these keys:-
MCOIMAPNamespacePersonalfor personal namespaces, -
MCOIMAPNamespaceOtherfor other namespaces, -
MCOIMAPNamespaceSharedfor shared namespaces.
Values of the dictionary are MCOIMAPNamespace
-
On failure,
errorwill be set withMCOErrorDomainas domain and an error code available inMCOConstants.h,namespaceswill be nil
Declared In
MCOIMAPFetchNamespaceOperation.h