sogo/SoObjects/SOGo/AgenorUserManager.h
Wolfgang Sourdeau 2dedb7d309 Monotone-Parent: 1aa812c42c241f2c5d21c2beac51ba74f407f6bb
Monotone-Revision: 825591a847de774d1464963d3c32fe5a6bd19140

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-05-03T18:46:45
Monotone-Branch: ca.inverse.sogo
2007-05-03 18:46:45 +00:00

90 lines
2.8 KiB
Objective-C

/*
Copyright (C) 2004-2005 SKYRIX Software AG
This file is part of OpenGroupware.org.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
OGo is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public
License along with OGo; see the file COPYING. If not, write to the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
#ifndef __AgenorUserManager_H_
#define __AgenorUserManager_H_
#import <Foundation/NSObject.h>
/*
AgenorUserManager
TODO: document
*/
@class NSString, NSArray, NSURL, NSUserDefaults, NSMutableDictionary, NSTimer;
@class NSDictionary;
@class iCalPerson;
@interface AgenorUserManager : NSObject
{
NSMutableDictionary *cnCache;
NSMutableDictionary *serverCache;
NSMutableDictionary *uidCache;
NSMutableDictionary *emailCache;
NSMutableDictionary *shareStoreCache;
NSMutableDictionary *shareEMailCache;
NSMutableDictionary *changeInternetAccessCache;
NSMutableDictionary *internetAutoresponderFlagCache;
NSMutableDictionary *intranetAutoresponderFlagCache;
NSTimer *gcTimer;
}
+ (id) sharedUserManager;
- (NSString *) getUIDForEmail: (NSString *) email;
- (NSString *) getEmailForUID: (NSString *) uid;
- (NSString *) getSystemEMailForUID: (NSString *) uid;
- (iCalPerson *) iCalPersonWithUid: (NSString *) uid;
- (NSString *) getUIDForICalPerson: (iCalPerson *) person;
/* may insert NSNulls into returned array if mapStrictly -> YES */
- (NSArray *) getUIDsForICalPersons: (NSArray *) persons
applyStrictMapping: (BOOL) mapStrictly;
/* i.e. BUTTO Hercule, CETE Lyon/DI/ET/TEST */
- (NSString *) getCNForUID: (NSString *) uid;
/* i.e. hercule.butto@amelie-ida01.melanie2.i2 */
- (NSString *) getIMAPAccountStringForUID: (NSString *) uid;
/* i.e. amelie-ida01.melanie2.i2 */
- (NSString *) getServerForUID: (NSString *) uid;
- (NSArray *) getSharedMailboxAccountStringsForUID: (NSString *) uid;
- (NSArray *) getSharedMailboxEMailsForUID: (NSString *) uid;
- (NSDictionary *) getSharedMailboxesAndEMailsForUID: (NSString *) uid;
- (NSURL *) getFreeBusyURLForUID: (NSString *) uid;
- (NSUserDefaults *) getUserDefaultsForUID: (NSString *) uid;
- (NSUserDefaults *) getUserSettingsForUID: (NSString *) uid;
- (BOOL) isUserAllowedToChangeSOGoInternetAccess: (NSString *) uid;
- (BOOL) isInternetAutoresponderEnabledForUser: (NSString *) uid;
- (BOOL) isIntranetAutoresponderEnabledForUser: (NSString *) uid;
@end
#endif /* __AgenorUserManager_H_ */