diff options
author | 2013-06-05 15:56:17 +0200 | |
---|---|---|
committer | 2013-06-05 15:56:17 +0200 | |
commit | d249843d4ca3992aac7f8955c62b781f6a5348ef (patch) | |
tree | be58a4789c0bbf7aa68ced9ca34361b0d5dd5921 /src/objc/imap/MCOIMAPFolderStatusOperation.h | |
parent | dc94dfdbc71c209a2c70002616de07d368e4ef3f (diff) |
added imap STATUS command
Diffstat (limited to 'src/objc/imap/MCOIMAPFolderStatusOperation.h')
-rw-r--r-- | src/objc/imap/MCOIMAPFolderStatusOperation.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/objc/imap/MCOIMAPFolderStatusOperation.h b/src/objc/imap/MCOIMAPFolderStatusOperation.h new file mode 100644 index 00000000..476b597d --- /dev/null +++ b/src/objc/imap/MCOIMAPFolderStatusOperation.h @@ -0,0 +1,39 @@ +// +// MCOIMAPFolderStatusOperation.h +// mailcore2 +// +// Created by Sebastian on 6/5/13. +// Copyright (c) 2013 MailCore. All rights reserved. +// + +#ifndef __MAILCORE_MCOIMAPFOLDERSTATUSOPERATION_H_ + +#define __MAILCORE_MCOIMAPFOLDERSTATUSOPERATION_H_ + +#import <MailCore/MCOIMAPBaseOperation.h> + +/** + The class is used to get folder metadata (like UIDVALIDITY, UIDNEXT, etc). + @see MCOIMAPFolderStatus + */ + +@class MCOIMAPFolderStatus; + +@interface MCOIMAPFolderStatusOperation : MCOIMAPBaseOperation + +/** + Starts the asynchronous operation. + + @param completionBlock Called when the operation is finished. + + - On success `error` will be nil and `status` will contain the status metadata + + - On failure, `error` will be set with `MCOErrorDomain` as domain and an + error code available in `MCOConstants.h`, `info` will be nil + */ + +- (void) start:(void (^)(NSError * error, MCOIMAPFolderStatus * status))completionBlock; + +@end + +#endif |