blob: 95f60321fc43c575982b9403b71616d4fba7486a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//
// MCOAttachment.h
// mailcore2
//
// Created by DINH Viêt Hoà on 3/22/13.
// Copyright (c) 2013 MailCore. All rights reserved.
//
#ifndef __MAILCORE_MCOATTACHMENT_H_
#define __MAILCORE_MCOATTACHMENT_H_
#import <MailCore/MCOAbstractPart.h>
@interface MCOAttachment : MCOAbstractPart <NSCopying>
+ (NSString *) mimeTypeForFilename:(NSString *)filename;
+ (MCOAttachment *) attachmentWithContentsOfFile:(NSString *)filename;
+ (MCOAttachment *) attachmentWithHTMLString:(NSString *)htmlString;
+ (MCOAttachment *) attachmentWithRFC822Message:(NSData *)messageData;
+ (MCOAttachment *) attachmentWithText:(NSString *)text;
@property (nonatomic, strong) NSData * data;
@end
#endif
|