Debian Codegraph @

Framework/Pantomime/CWPOP3Message.h

raw symbols SCIP
1 /*
2 ** CWPOP3Message.h
3 **
4 ** Copyright (c) 2001-2006 Ludovic Marcotte
5 **
6 ** Author: Ludovic Marcotte <[email protected]>
7 **
8 ** This library is free software; you can redistribute it and/or
9 ** modify it under the terms of the GNU Lesser General Public
10 ** License as published by the Free Software Foundation; either
11 ** version 2.1 of the License, or (at your option) any later version.
12 **
13 ** This library is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ** Lesser General Public License for more details.
17 **
18 ** You should have received a copy of the GNU General Public License
19 ** along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 #ifndef _Pantomime_H_CWPOP3Message
23 #define _Pantomime_H_CWPOP3Message
24
25 #import <Foundation/NSCoder.h>
26
27 #include <Pantomime/CWMessage.h>
28
29 /*!
30 @class CWPOP3Message
31 @discussion This class, which extends CWMessage, adds POP3 specific information.
32 */
33 @interface CWPOP3Message : CWMessage <NSCoding>
34 {
35 @private
36 NSString *_UID;
37 }
38
39 /*!
40 @method UID
41 @discussion This method is used to obtain the UID of a message.
42 @result The UID of the message. RFC 1939 says:
43 "The unique-id of a message is an arbitrary server-determined
44 string, consisting of one to 70 characters in the range 0x21
45 to 0x7E, which uniquely identifies a message within a
46 maildrop and which persists across sessions.".
47 */
48 - (NSString *) UID;
49
50 /*!
51 @method setUID:
52 @discussion This method is used to set the UID of a message.
53 Normally, you shouldn't invoke this method directly.
54 @param theUID The UID of the message.
55 */
56 - (void) setUID: (NSString *) theUID;
57
58 /*!
59 @method rawSource
60 @discussion POP3 specific implementation of the rawSource method. This method
61 is always non-blocking. It might return nil if the raw source of the
62 message hasn't yet been fetched from the POP3 server. The POP3Store
63 notifies the delegate when the fetch has been completed using the
64 PantomimeMessagePrefetchCompleted notification. It also calls
65 -messagePrefetchCompleted on the delegate, if any.
66 @result The raw source of the message, nil if not yet fully fetched.
67 */
68 - (NSData *) rawSource;
69
70 /*!
71 @method setFlags:
72 @discussion This method, which overrides the one found in
73 CWMessage, can be used to delete message on the
74 POP3 server. The only fact that is honored
75 from this method is PantomimeDeleted. If not
76 specified in theFlags, this method does nothing.
77 @param theIndex The flags to use.
78 */
79 - (void) setFlags: (CWFlags *) theFlags;
80 @end
81
82 #endif // _Pantomime_H_CWPOP3Message