2 Copyright (C) 2004 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __SOGo_SOGoMailConnectionEntry_H__
23 #define __SOGo_SOGoMailConnectionEntry_H__
25 #import <Foundation/NSObject.h>
28 SOGoMailConnectionEntry
30 A cached connection to an IMAP4 server plus some cached objects.
33 - the folder hierarchy
35 - 'myrights' permissions of mailboxes
39 @class NSString, NSDate, NSArray, NSDictionary, NSURL, NSMutableDictionary;
42 @interface SOGoMailConnectionEntry : NSObject
45 NGImap4Client *client;
50 NSDictionary *subfolders;
52 /* permission cache */
53 NSMutableDictionary *urlToRights;
61 - (id)initWithClient:(NGImap4Client *)_client password:(NSString *)_pwd;
65 - (NGImap4Client *)client;
66 - (BOOL)isValidPassword:(NSString *)_pwd;
68 - (NSDate *)creationTime;
70 - (void)cacheHierarchyResults:(NSDictionary *)_hierarchy;
71 - (NSDictionary *)cachedHierarchyResults;
72 - (void)flushFolderHierarchyCache;
74 - (id)cachedUIDsForURL:(NSURL *)_url qualifier:(id)_q sortOrdering:(id)_so;
75 - (void)cacheUIDs:(NSArray *)_uids forURL:(NSURL *)_url
76 qualifier:(id)_q sortOrdering:(id)_so;
78 - (NSString *)cachedMyRightsForURL:(NSURL *)_url;
79 - (void)cacheMyRights:(NSString *)_rights forURL:(NSURL *)_url;
81 - (void)flushMailCaches;
85 #endif /* __SOGo_SOGoMailConnectionEntry_H__ */