aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--build-mac/mailcore2.xcodeproj/project.pbxproj2
-rw-r--r--src/async/imap/MCIMAPAsyncConnection.cc1
-rw-r--r--src/async/imap/MCIMAPAsyncConnection.h1
-rw-r--r--src/async/imap/MCIMAPMessageRenderingOperation.h9
-rw-r--r--src/core/abstract/MCMessageConstantsPrivate.h27
5 files changed, 32 insertions, 8 deletions
diff --git a/build-mac/mailcore2.xcodeproj/project.pbxproj b/build-mac/mailcore2.xcodeproj/project.pbxproj
index eb168476..01b38ed6 100644
--- a/build-mac/mailcore2.xcodeproj/project.pbxproj
+++ b/build-mac/mailcore2.xcodeproj/project.pbxproj
@@ -1459,6 +1459,7 @@
C6F61FB41702AB2F0073032E /* MCOIMAPBaseOperation.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MCOIMAPBaseOperation.mm; sourceTree = "<group>"; };
DA0F1C79177C07B300F0D3B4 /* MCIMAPMessageRenderingOperation.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MCIMAPMessageRenderingOperation.cc; sourceTree = "<group>"; };
DA0F1C7A177C07B300F0D3B4 /* MCIMAPMessageRenderingOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MCIMAPMessageRenderingOperation.h; sourceTree = "<group>"; };
+ DA81EECD178E2AC500A8C678 /* MCMessageConstantsPrivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MCMessageConstantsPrivate.h; sourceTree = "<group>"; };
DA89896B178A47D200F6D90A /* MCOIMAPMessageRenderingOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MCOIMAPMessageRenderingOperation.h; sourceTree = "<group>"; };
DA89896C178A47D200F6D90A /* MCOIMAPMessageRenderingOperation.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MCOIMAPMessageRenderingOperation.mm; sourceTree = "<group>"; };
DAACAD4F17886807000B4517 /* MCHTMLRendererIMAPDataCallback.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MCHTMLRendererIMAPDataCallback.cc; sourceTree = "<group>"; };
@@ -1797,6 +1798,7 @@
C64EA69E169E847800778456 /* MCMessageConstants.h */,
C64EA69F169E847800778456 /* MCMessageHeader.cc */,
C64EA6A0169E847800778456 /* MCMessageHeader.h */,
+ DA81EECD178E2AC500A8C678 /* MCMessageConstantsPrivate.h */,
);
path = abstract;
sourceTree = "<group>";
diff --git a/src/async/imap/MCIMAPAsyncConnection.cc b/src/async/imap/MCIMAPAsyncConnection.cc
index f2db76be..9b8ba92d 100644
--- a/src/async/imap/MCIMAPAsyncConnection.cc
+++ b/src/async/imap/MCIMAPAsyncConnection.cc
@@ -35,6 +35,7 @@
#include "MCIMAPAsyncSession.h"
#include "MCConnectionLogger.h"
#include "MCIMAPMessageRenderingOperation.h"
+#include "MCMessageConstantsPrivate.h"
using namespace mailcore;
diff --git a/src/async/imap/MCIMAPAsyncConnection.h b/src/async/imap/MCIMAPAsyncConnection.h
index 45acb707..65c793bb 100644
--- a/src/async/imap/MCIMAPAsyncConnection.h
+++ b/src/async/imap/MCIMAPAsyncConnection.h
@@ -4,6 +4,7 @@
#include <MailCore/MCBaseTypes.h>
#include <MailCore/MCMessageConstants.h>
+#include "MCMessageConstantsPrivate.h"
#ifdef __cplusplus
diff --git a/src/async/imap/MCIMAPMessageRenderingOperation.h b/src/async/imap/MCIMAPMessageRenderingOperation.h
index dc6302d8..c0fcc92c 100644
--- a/src/async/imap/MCIMAPMessageRenderingOperation.h
+++ b/src/async/imap/MCIMAPMessageRenderingOperation.h
@@ -12,19 +12,12 @@
#include <MailCore/MCIMAPOperation.h>
#include <MailCore/MCIMAPMessage.h>
+#include "MCMessageConstantsPrivate.h"
#ifdef __cplusplus
namespace mailcore {
- // If this type becomes public it must be moved to MCConstants.h
- typedef enum {
- IMAPMessageRenderingTypeHTML,
- IMAPMessageRenderingTypeHTMLBody,
- IMAPMessageRenderingTypePlainText,
- IMAPMessageRenderingTypePlainTextBody
- } IMAPMessageRenderingType;
-
class IMAPMessageRenderingOperation : public IMAPOperation {
public:
IMAPMessageRenderingOperation();
diff --git a/src/core/abstract/MCMessageConstantsPrivate.h b/src/core/abstract/MCMessageConstantsPrivate.h
new file mode 100644
index 00000000..39312025
--- /dev/null
+++ b/src/core/abstract/MCMessageConstantsPrivate.h
@@ -0,0 +1,27 @@
+//
+// MCMessageConstantsPrivate.h
+// mailcore2
+//
+// Created by Paul Young on 10/07/2013.
+// Copyright (c) 2013 MailCore. All rights reserved.
+//
+
+#ifndef __MAILCORE_MCMESSAGECONSTANTSPRIVATE_H_
+#define __MAILCORE_MCMESSAGECONSTANTSPRIVATE_H_
+
+#ifdef __cplusplus
+
+namespace mailcore {
+
+ typedef enum {
+ IMAPMessageRenderingTypeHTML,
+ IMAPMessageRenderingTypeHTMLBody,
+ IMAPMessageRenderingTypePlainText,
+ IMAPMessageRenderingTypePlainTextBody
+ } IMAPMessageRenderingType;
+
+}
+
+#endif
+
+#endif