blob: fec04cc091378e288a090fc8e1026134dfebc512 (
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
+ (NSString *) mimeTypeForFilename:(NSString *)filename;
+ (MCOAttachment *) attachmentWithContentsOfFile:(NSString *)filename;
+ (MCOAttachment *) attachmentWithHTMLString:(NSString *)htmlString;
+ (MCOAttachment *) attachmentWithRFC822Message:(NSData *)messageData;
+ (MCOAttachment *) attachmentWithText:(NSString *)text;
@property (nonatomic, retain) NSData * data;
@end
#endif
|