diff options
author | 2013-05-05 12:55:13 -0700 | |
---|---|---|
committer | 2013-05-05 12:55:13 -0700 | |
commit | 0bd999438fdae6944b3d520066a530c9eb63d909 (patch) | |
tree | df97216066e5005cf9080b39c87de770ffc63881 /src/objc/abstract | |
parent | 1efc3506bf90862ee07662a08cf5d15de8b9495c (diff) |
Implemented collection of attachments
Diffstat (limited to 'src/objc/abstract')
-rw-r--r-- | src/objc/abstract/MCOAbstractMessage.h | 3 | ||||
-rw-r--r-- | src/objc/abstract/MCOAbstractMessage.mm | 10 |
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 |