aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/imap/MCOIMAPMessageRenderingOperation.h
diff options
context:
space:
mode:
authorGravatar Pushkar Singh <pushkar@hothouselabs.com>2013-07-20 22:49:28 -0700
committerGravatar Pushkar Singh <pushkar@hothouselabs.com>2013-07-20 22:49:28 -0700
commit52473496926f12877dca66ad44ac1af65e9406d6 (patch)
treec839a7674083a7795d278faefeea161a9d267fdc /src/objc/imap/MCOIMAPMessageRenderingOperation.h
parent0bc680acc776bd83dd9f0300015fc85b5e9aad7f (diff)
parent798a4b1117527acc1de523b13577d86fe7df990b (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/objc/imap/MCOIMAPMessageRenderingOperation.h')
-rw-r--r--src/objc/imap/MCOIMAPMessageRenderingOperation.h35
1 files changed, 35 insertions, 0 deletions
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 <MailCore/MCOIMAPBaseOperation.h>
+
+/**
+ 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