Debian Codegraph @

Framework/Pantomime/CWPOP3Store.h

raw symbols SCIP
1 /*
2 ** CWPOP3Store.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_CWPOP3Store
23 #define _Pantomime_H_CWPOP3Store
24
25 #include <Pantomime/CWService.h>
26 #include <Pantomime/CWStore.h>
27
28 #import <Foundation/NSObject.h>
29 #import <Foundation/NSString.h>
30
31 /*!
32 @typedef POP3Command
33 @abstract Supported POP3 commands.
34 @discussion This enum lists the supported POP3 commands available
35 in Pantomime's POP3 client code.
36 @constant POP3_APOP APOP authentication command.
37 @constant POP3_AUTHORIZATION Special command so that we know we are
38 in the authorization state.
39 @constant POP3_DELE The POP3 DELE command. See RFC 1939 for details.
40 @constant POP3_LIST The POP3 LIST command. See RFC 1939 for details.
41 @constant POP3_NOOP The POP3 NOOP command. See RFC 1939 for details.
42 @constant POP3_PASS The POP3 PASS command. See RFC 1939 for details.
43 @constant POP3_QUIT The POP3 QUIT command. See RFC 1939 for details.
44 @constant POP3_RETR The POP3 RETR command. See RFC 1939 for details.
45 @constant POP3_RETR_AND_INITIALIZE Same as POP3_RETR but also initialize the message with the received content.
46 @constant POP3_STAT The POP3 STAT command. See RFC 1939 for details.
47 @constant POP3_STLS The STLS POP3 command - see RFC2595.
48 @constant POP3_TOP The POP3 TOP command. See RFC 1939 for details.
49 @constant POP3_UIDL The POP3 UIDL command. See RFC 1939 for details.
50 @constant POP3_USER The POP3 USER command. See RFC 1939 for details.
51 @constant POP3_EMPTY_QUEUE Special command to empty the command queue.
52 @constant POP3_EXPUNGE_COMPLETED Special command to indicate we are
53 done expunging the deleted messages.
54 */
55 typedef enum {
56 POP3_APOP = 0x100,
57 POP3_AUTHORIZATION,
58 POP3_CAPA,
59 POP3_DELE,
60 POP3_LIST,
61 POP3_NOOP,
62 POP3_PASS,
63 POP3_QUIT,
64 POP3_RETR,
65 POP3_RETR_AND_INITIALIZE,
66 POP3_STAT,
67 POP3_STLS,
68 POP3_TOP,
69 POP3_UIDL,
70 POP3_USER,
71 POP3_EMPTY_QUEUE,
72 POP3_EXPUNGE_COMPLETED
73 } POP3Command;
74
75 @class CWPOP3Folder;
76
77 /*!
78 @class CWPOP3Store
79 @abstract Pantomime POP3 client code.
80 @discussion This class, which extends the CWService class and implements
81 the CWStore protocol, is Pantomime's POP3 client code.
82 */
83 @interface CWPOP3Store : CWService <CWStore>
84 {
85 @private
86 NSString *_timestamp;
87 CWPOP3Folder *_folder;
88 }
89
90
91 /*!
92 @method timestamp
93 @discussion This method is used to obtain the timestamp in the
94 server's greeting. Servers must send that if they do
95 support APOP.
96 @result The timestamp, as a NSString instance.
97 */
98 - (NSString *) timestamp;
99
100 /*!
101 @method sendCommand:arguments:...
102 @discussion This method is used to send commands to the POP3 server.
103 Normally, you should not call this method directly.
104 @param theCommand The POP3 command to send.
105 @param theFormat The format defining the variable arguments list.
106 */
107 - (void) sendCommand: (POP3Command) theCommand arguments: (NSString *) theFormat, ...;
108
109 @end
110
111 #endif // _Pantomime_H_CWPOP3Store