Debian Codegraph @

Framework/Pantomime/CWIMAPMessage.h

raw symbols SCIP
1 /*
2 ** CWIMAPMessage.h
3 **
4 ** Copyright (c) 2001-2006 Ludovic Marcotte
5 ** Copyright (C) 2018 Riccardo Mottola
6 **
7 ** Author: Ludovic Marcotte <[email protected]>
8 ** Riccardo Mottola <[email protected]>
9 **
10 ** This library is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU Lesser General Public
12 ** License as published by the Free Software Foundation; either
13 ** version 2.1 of the License, or (at your option) any later version.
14 **
15 ** This library is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** Lesser General Public License for more details.
19 **
20 ** You should have received a copy of the GNU General Public License
21 ** along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24 #ifndef _Pantomime_H_CWIMAPMessage
25 #define _Pantomime_H_CWIMAPMessage
26
27 #import <Foundation/NSCoder.h>
28
29 #import <Pantomime/CWMessage.h>
30
31 /*!
32 @class CWIMAPMessage
33 @discussion This class, which extends CWMessage, adds IMAP specific
34 information and redefines the behavior of some methods
35 from its superclass.
36 */
37 @interface CWIMAPMessage : CWMessage <NSCoding>
38 {
39 @private
40 BOOL _headers_were_prefetched;
41 NSUInteger _UID;
42 }
43
44 /*!
45 @method UID
46 @discussion This method is used to initialize a message given a cache_record,
47 as it can be read from CWIMAPCacheManager
48 @param a cache_record with the fields set for an IMAP message
49 @result A Message instance, nil on error.
50 */
51 - (id) initWithCacheRecord: (cache_record) r;
52
53 /*!
54 @method UID
55 @discussion This method is used to obtain the UID of a message.
56 See 2.3.1.1. Unique Identifier (UID) Message Attribute
57 of RFC 3501 for a detailed description of the UID
58 attribute of a message.
59 @result The UID, 0 if the receiver has no UID.
60 */
61 - (NSUInteger) UID;
62
63 /*!
64 @method setUID:
65 @discussion This method is used to set the UID of the receiver.
66 Normally, you shouldn't invoke this method directly.
67 @param theUID The UID of the message.
68 */
69 - (void) setUID: (NSUInteger) theUID;
70
71 /*!
72 @method rawSource
73 @discussion IMAP specific implementation of the rawSource method. This method
74 is always non-blocking. It might return nil if the raw source of the
75 message hasn't yet been fetched from the IMAP server. The IMAPStore
76 notifies the delegate when the fetch has been completed.
77 @result The raw source of the message, nil if not yet fully fetched.
78 */
79 - (NSData *) rawSource;
80
81 /*!
82 @method setFlags:
83 @discussion This method overrides the one found in CWMessage.
84 It will replace all the flags on the server
85 for this message with the flags specified in the argument.
86 @param theFlags The new flags for the receiver.
87 */
88 - (void) setFlags: (CWFlags *) theFlags;
89
90 @end
91
92 #endif // _Pantomime_H_CWIMAPMessage