From dc6c77f2452637b62a79f08208989eec7d0ea758 Mon Sep 17 00:00:00 2001 From: Paul Young Date: Sun, 7 Jul 2013 21:20:46 -0400 Subject: WIP: Objective-C bridge of IMAP rendering methods. --- src/objc/imap/MCOIMAPMessageRenderingOperation.h | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/objc/imap/MCOIMAPMessageRenderingOperation.h (limited to 'src/objc/imap/MCOIMAPMessageRenderingOperation.h') diff --git a/src/objc/imap/MCOIMAPMessageRenderingOperation.h b/src/objc/imap/MCOIMAPMessageRenderingOperation.h new file mode 100644 index 00000000..c22909a2 --- /dev/null +++ b/src/objc/imap/MCOIMAPMessageRenderingOperation.h @@ -0,0 +1,35 @@ +// +// MCOIMAPMessageRenderingOperation.h +// mailcore2 +// +// Created by Paul Young on 07/07/2013. +// Copyright (c) 2013 MailCore. All rights reserved. +// + +#ifndef __MAILCORE_MCOIMAPMESSAGERENDERINGOPERATION_H_ + +#define __MAILCORE_MCOIMAPMESSAGERENDERINGOPERATION_H_ + +#import + +/** + The class is used to get the HTML string of a message. + */ + +@interface MCOIMAPMessageRenderingOperation : MCOIMAPBaseOperation + +/** + Starts the asynchronous operation. + + @param completionBlock Called when the operation is finished. + + - On success `error` will be nil and `htmlString` will contain the message + + - On failure, `error` will be set and `htmlString` will be nil + */ + +- (void) start:(void (^)(NSString * htmlString, NSError * error))completionBlock; + +@end + +#endif -- cgit v1.2.3