aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/imap/MCIMAPMessageRenderingOperation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/async/imap/MCIMAPMessageRenderingOperation.h')
-rw-r--r--src/async/imap/MCIMAPMessageRenderingOperation.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/async/imap/MCIMAPMessageRenderingOperation.h b/src/async/imap/MCIMAPMessageRenderingOperation.h
new file mode 100644
index 00000000..b9634ee6
--- /dev/null
+++ b/src/async/imap/MCIMAPMessageRenderingOperation.h
@@ -0,0 +1,55 @@
+//
+// MCIMAPMessageRenderingOperation.h
+// mailcore2
+//
+// Created by Paul Young on 27/06/2013.
+// Copyright (c) 2013 MailCore. All rights reserved.
+//
+
+#ifndef __MAILCORE_MCIMAPMessageRenderingOperation_H_
+
+#define __MAILCORE_MCIMAPMessageRenderingOperation_H_
+
+#include <MailCore/MCIMAPOperation.h>
+#include <MailCore/MCIMAPMessage.h>
+
+#ifdef __cplusplus
+
+namespace mailcore {
+
+ // If this type becomes public it must be moved to MCConstants.h
+ typedef enum {
+ RenderingTypeHTML,
+ RenderingTypeHTMLBody,
+ RenderingTypePlainText,
+ RenderingTypePlainTextBody
+ } IMAPMessageRenderingType;
+
+ class IMAPMessageRenderingOperation : public IMAPOperation {
+ public:
+ IMAPMessageRenderingOperation();
+ virtual ~IMAPMessageRenderingOperation();
+
+ virtual void setRenderingType(IMAPMessageRenderingType type);
+ virtual IMAPMessageRenderingType renderingType();
+
+ virtual void setMessage(IMAPMessage * message);
+ virtual IMAPMessage * message();
+
+ // Result.
+ virtual String * result();
+
+ public: // subclass behavior
+ virtual void main();
+
+ private:
+ IMAPMessageRenderingType mRenderingType;
+ String * mResult;
+ IMAPMessage * mMessage;
+
+ };
+}
+
+#endif
+
+#endif