Debian Codegraph @

Framework/Pantomime/CWPOP3CacheManager.h

raw symbols SCIP
1 /*
2 ** CWPOP3CacheManager.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_CWPOP3CacheManager
23 #define _Pantomime_H_CWPOP3CacheManager
24
25 #import <Foundation/NSMapTable.h>
26
27 #include <Pantomime/CWCacheManager.h>
28
29 @class CWPOP3CacheObject;
30 @class NSCalendarDate;
31
32 /*!
33 @class CWPOP3CacheManager
34 @discussion This class provides trivial extensions to the
35 CWCacheManager superclass for CWPOP3Folder instances.
36 This cache manager makes use of CWPOP3CacheObject
37 instances instead of CWPOP3Message instance for
38 speed and size requirements restrictions.
39 */
40 @interface CWPOP3CacheManager: CWCacheManager
41 {
42 @private
43 NSMapTable *_table;
44 }
45
46 /*!
47 @method dateForUID:
48 @discussion This method is used to verify if the specific cache
49 record with the POP3 UID <i>theUID</i> is present
50 in the cache. It also returns the date associated
51 to this specific UID.
52 @param theUID The UID to verify.
53 @result The date of the associated UID, nil if not present in
54 the cache..
55 */
56 - (NSCalendarDate *) dateForUID: (NSString *) theUID;
57
58 /*!
59 @method writeRecord:
60 @discussion This method is used to write a cache record to disk.
61 @param theRecord The record to write.
62 */
63 - (void) writeRecord: (cache_record *) theRecord;
64 @end
65
66 #endif // _Pantomime_H_CWPOP3CacheManager