aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/imap/MCOIMAPFetchFoldersOperation.h
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-04-06 11:01:14 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-04-06 11:01:14 -0700
commitabc2b119c709a3fcea92ea1750f208b2bf47c9d5 (patch)
tree93bbf712bb9b0ff2e568b7bf951507a17b0d814d /src/objc/imap/MCOIMAPFetchFoldersOperation.h
parented6ba5a558bccf6024c1a5ab3db2b89d4c6a1420 (diff)
Work in progress on IMAP documentation.
Diffstat (limited to 'src/objc/imap/MCOIMAPFetchFoldersOperation.h')
-rw-r--r--src/objc/imap/MCOIMAPFetchFoldersOperation.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/objc/imap/MCOIMAPFetchFoldersOperation.h b/src/objc/imap/MCOIMAPFetchFoldersOperation.h
index 87912f60..90feb870 100644
--- a/src/objc/imap/MCOIMAPFetchFoldersOperation.h
+++ b/src/objc/imap/MCOIMAPFetchFoldersOperation.h
@@ -10,10 +10,18 @@
#define __MAILCORE_MCOIMAPFETCHFOLDERSOPERATION_H_
+// This class implements an operation to fetch a list of folders.
+
#import <MailCore/MCOIMAPBaseOperation.h>
@interface MCOIMAPFetchFoldersOperation : MCOIMAPBaseOperation
-- (void)start:(void (^)(NSError *error, NSArray *folder))completionBlock;
+
+// Starts the asynchronous operation.
+// On success, the completion block will be called with nil as error. folders will be an array of MCOIMAPFolder.
+// On failure, error will be set with MCOErrorDomain as domain and an error code available in MCOConstants.h.
+// folders will be nil.
+- (void) start:(void (^)(NSError * error, NSArray * /* MCOIMAPFolder */ folders))completionBlock;
+
@end
#endif