aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/abstract
diff options
context:
space:
mode:
Diffstat (limited to 'src/objc/abstract')
-rw-r--r--src/objc/abstract/MCOAbstractMessage.h3
-rw-r--r--src/objc/abstract/MCOAbstractMessage.mm10
2 files changed, 13 insertions, 0 deletions
diff --git a/src/objc/abstract/MCOAbstractMessage.h b/src/objc/abstract/MCOAbstractMessage.h
index ea5df770..aa47d15a 100644
--- a/src/objc/abstract/MCOAbstractMessage.h
+++ b/src/objc/abstract/MCOAbstractMessage.h
@@ -26,6 +26,9 @@
// Returns the part with the given unique identifier.
- (MCOAbstractPart *) partForUniqueID:(NSString *)uniqueID;
+- (NSArray *) attachments;
+- (NSArray *) htmlInlineAttachments;
+
@end
#endif
diff --git a/src/objc/abstract/MCOAbstractMessage.mm b/src/objc/abstract/MCOAbstractMessage.mm
index 4a9e131b..6fedcc8a 100644
--- a/src/objc/abstract/MCOAbstractMessage.mm
+++ b/src/objc/abstract/MCOAbstractMessage.mm
@@ -61,4 +61,14 @@ MCO_OBJC_SYNTHESIZE(MessageHeader, setHeader, header)
return MCO_TO_OBJC(MCO_NATIVE_INSTANCE->partForUniqueID([uniqueID mco_mcString]));
}
+- (NSArray *) attachments
+{
+ return MCO_OBJC_BRIDGE_GET(attachments);
+}
+
+- (NSArray *) htmlInlineAttachments
+{
+ return MCO_OBJC_BRIDGE_GET(htmlInlineAttachments);
+}
+
@end