diff options
author | DINH Viet Hoa <dinh.viet.hoa@gmail.com> | 2013-03-23 13:15:32 -0700 |
---|---|---|
committer | DINH Viet Hoa <dinh.viet.hoa@gmail.com> | 2013-03-23 13:15:32 -0700 |
commit | 52224ddbbb9b858f27c5861d98c0d91f60db400b (patch) | |
tree | 83eb6cae884fff9be1da3d7d041b31e7fd75f996 /src/objc/rfc822/MCOMessageBuilder.h | |
parent | ae907e6582b9d8faa49c85834dc8b4213af759ed (diff) |
Simplified implementation of ObjC setter/getter by using a common implementation. Added RFC822 ObjC API.
Diffstat (limited to 'src/objc/rfc822/MCOMessageBuilder.h')
-rw-r--r-- | src/objc/rfc822/MCOMessageBuilder.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/objc/rfc822/MCOMessageBuilder.h b/src/objc/rfc822/MCOMessageBuilder.h new file mode 100644 index 00000000..8b36da8a --- /dev/null +++ b/src/objc/rfc822/MCOMessageBuilder.h @@ -0,0 +1,32 @@ +// +// MCOMessageBuilder.h +// mailcore2 +// +// Created by DINH Viêt Hoà on 3/22/13. +// Copyright (c) 2013 MailCore. All rights reserved. +// + +#ifndef __MAILCORE_MCOMESSAGEBUILDER_H_ + +#define __MAILCORE_MCOMESSAGEBUILDER_H_ + +#import <mailcore/MCOAbstractMessage.h> + +@class MCOAttachment; + +@interface MCOMessageBuilder : MCOAbstractMessage + +@property (nonatomic, copy, setter=setHTMLBody:) NSString * htmlBody; +@property (nonatomic, copy) NSString * textBody; +@property (nonatomic, copy) NSArray * attachments; +@property (nonatomic, copy) NSArray * relatedAttachments; +@property (nonatomic, copy) NSString * boundaryPrefix; + +- (void) addAttachment:(MCOAttachment *)attachment; +- (void) addRelatedAttachment:(MCOAttachment *)attachment; + +- (NSData *) data; + +@end + +#endif |