Debian Codegraph @

Framework/Pantomime/CWLocalMessage.h

raw symbols SCIP
1 /*
2 ** CWLocalMessage.h
3 **
4 ** Copyright (c) 2001-2007 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_CWLocalMessage
23 #define _Pantomime_H_CWLocalMessage
24
25 #include <Pantomime/CWMessage.h>
26
27 #import <Foundation/NSCoder.h>
28 #import <Foundation/NSData.h>
29 #import <Foundation/NSString.h>
30
31 /*!
32 @class CWLocalMessage
33 @discussion This class, which extends CWMessage, adds local specific
34 information and redefines the behavior of some methods
35 from its superclass.
36 */
37 @interface CWLocalMessage : CWMessage <NSCoding>
38 {
39 @private
40 NSString *_mailFilename; // Name of file in which the message is stored (if using maildir)
41 PantomimeFolderFormat _type; // PantomimeFormatMbox or PantomimeFormatMaildir
42 long int _file_position;
43 }
44
45 - (id) initWithCacheRecord: (cache_record) cr;
46
47 /*!
48 @method filePosition
49 @discussion This method is used to obtain the position in the mbox file
50 from which the message begins at. This method isn't really
51 helpful if -type returns something other than PantomimeFormatMbox.
52 @result The position in the file.
53 */
54 - (long int) filePosition;
55
56 /*!
57 @method setFilePosition:
58 @discussion This method is used to set the position in the mbox file
59 from which the message begins at. This method isn't really
60 helpful if -type returns something other than PantomimeFormatMbox.
61 @param theFilePosition The position in the file.
62 */
63 - (void) setFilePosition: (long int) theFilePosition;
64
65 /*!
66 @method type
67 @discussion This method is used to obtain the type of receiver.
68 Possible values are part of the PantomimeFolderFormat enum.
69 @result The type of the message.
70 */
71 - (PantomimeFolderFormat) type;
72
73 /*!
74 @method setType:
75 @discussion This method is used to set the type of receiver.
76 Accepted values are part of the PantomimeFolderFormat enum.
77 @param theType The type of the receiver.
78 */
79 - (void) setType: (PantomimeFolderFormat) theType;
80
81 /*!
82 @method mailFilename
83 @discussion This method is used to obtain the associated filename
84 of the receiver, if -type is PantomimeFormatMaildir.
85 @result The filename, nil if none was defined or if -type returns
86 something other than PantomimeFormatMaildir.
87 */
88 - (NSString *) mailFilename;
89
90 /*!
91 @method setMailFilename:
92 @discussion This method is used to set the associated filename
93 for the receiver. This is useful and required if
94 -type returns PantomimeFormatMaildir.
95 @param theFilename The name of the file.
96 */
97 - (void) setMailFilename: (NSString *) theFilename;
98
99 @end
100
101 #endif // _Pantomime_H_CWLocalMessage