]> err.no Git - sope/blob - sope-mime/NGMail/NGMimeMessage.h
bumped Xcode dyld versions
[sope] / sope-mime / NGMail / NGMimeMessage.h
1 /*
2   Copyright (C) 2000-2005 SKYRIX Software AG
3
4   This file is part of SOPE.
5
6   SOPE is free software; you can redistribute it and/or modify it under
7   the terms of the GNU Lesser General Public License as published by the
8   Free Software Foundation; either version 2, or (at your option) any
9   later version.
10
11   SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12   WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
14   License for more details.
15
16   You should have received a copy of the GNU Lesser General Public
17   License along with SOPE; see the file COPYING.  If not, write to the
18   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19   02111-1307, USA.
20 */
21
22 #ifndef __NGMail_NGMimeMessage_H__
23 #define __NGMail_NGMimeMessage_H__
24
25 #import <Foundation/NSObject.h>
26 #include <NGMime/NGPart.h>
27
28 @class NGHashMap;
29
30 /*
31   NGMimeMessage represents a RFC822 message with MIME extensions.
32 */
33
34 @interface NGMimeMessage : NSObject < NGMimePart >
35 {
36 @protected
37   NGHashMap  *header;
38   id         body;
39   NGMimeType *mimeType;
40 }
41
42 + (id)messageWithHeader:(NGHashMap *)_headers;
43 - (id)initWithHeader:(NGHashMap *)_headers; // designated initializer
44
45 // NGPart
46
47 - (NSEnumerator *)valuesOfHeaderFieldWithName:(NSString *)_name;
48 - (NSEnumerator *)headerFieldNames;
49
50 - (void)setBody:(id)_body;
51 - (id)body;
52
53 // NGMimePart
54
55 - (NGMimeType *)contentType;
56 - (NSString *)contentId;
57 - (NSArray *)contentLanguage;
58 - (NSString *)contentMd5;
59 - (NSString *)encoding;
60 - (NSString *)contentDescription;
61
62 @end
63
64 #endif /* __NGMail_NGMimeMessage_H__ */