~ubuntu-branches/ubuntu/saucy/sope/saucy

« back to all changes in this revision

Viewing changes to sope-mime/NGMail/NGMimeMessage.h

  • Committer: Package Import Robot
  • Author(s): Jeroen Dekkers
  • Date: 2012-05-09 15:39:17 UTC
  • Revision ID: package-import@ubuntu.com-20120509153917-nr4jlm8mktma1yv3
Tags: upstream-1.3.14
ImportĀ upstreamĀ versionĀ 1.3.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
@class NSString, NSArray, NSDictionary, NSEnumerator;
 
35
@class NGHashMap;
 
36
@class NGMimeType;
 
37
 
 
38
@interface NGMimeMessage : NSObject < NGMimePart >
 
39
{
 
40
@protected
 
41
  NGHashMap  *header;
 
42
  id         body;
 
43
  NGMimeType *mimeType;
 
44
}
 
45
 
 
46
+ (id)messageWithHeader:(NGHashMap *)_headers;
 
47
- (id)initWithHeader:(NGHashMap *)_headers; // designated initializer
 
48
 
 
49
/* NGPart */
 
50
 
 
51
- (NSEnumerator *)valuesOfHeaderFieldWithName:(NSString *)_name;
 
52
- (NSEnumerator *)headerFieldNames;
 
53
 
 
54
- (void)setBody:(id)_body;
 
55
- (id)body;
 
56
 
 
57
/* NGMimePart */
 
58
 
 
59
- (NGMimeType *)contentType;
 
60
- (NSString *)contentId;
 
61
- (NSArray *)contentLanguage;
 
62
- (NSString *)contentMd5;
 
63
- (NSString *)encoding;
 
64
- (NSString *)contentDescription;
 
65
 
 
66
/* convenience */
 
67
 
 
68
- (NSString *)headerForKey:(NSString *)_key;
 
69
- (NSArray *)headersForKey:(NSString *)_key;
 
70
- (NSArray *)headerKeys;
 
71
- (NSDictionary *)headers;
 
72
- (NSString *)headersAsString;
 
73
 
 
74
@end
 
75
 
 
76
#endif /* __NGMail_NGMimeMessage_H__ */