mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 04:47:14 +00:00
Monotone-Parent: 538aedd7d01174f61f329561b71c913f2c048a26
Monotone-Revision: d4724feea77a2bfe4a1315b1572ab4ae3ea3afc9 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-01-19T12:28:10 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
943b044622
commit
4639bf6b99
49 files changed
+616
-400
No files matched your search
@@ -55,65 +55,19 @@ static Class SOGoUserProfileKlass = Nil;
|
||||
return ud;
|
||||
}
|
||||
|
||||
/* the calendars that we publish to our proxy subscribers */
|
||||
- (void) setProxiedCalendars: (NSArray *) proxiedCalendars
|
||||
- (NSArray *) _subscribedFoldersForModule: (NSString *) module
|
||||
{
|
||||
[self setObject: proxiedCalendars forKey: @"ProxiedCalendars"];
|
||||
return [[self dictionaryForKey: module] objectForKey: @"SubscribedFolders"];
|
||||
}
|
||||
|
||||
- (NSArray *) proxiedCalendars
|
||||
- (NSArray *) subscribedCalendars
|
||||
{
|
||||
NSArray *proxiedCalendars;
|
||||
|
||||
proxiedCalendars = [self arrayForKey: @"ProxiedCalendars"];
|
||||
if (!proxiedCalendars)
|
||||
proxiedCalendars = [NSArray arrayWithObject: @"personal"];
|
||||
|
||||
return proxiedCalendars;
|
||||
return [self _subscribedFoldersForModule: @"Calendar"];
|
||||
}
|
||||
|
||||
/* the users that we have subscribed us as a proxy to our calendars */
|
||||
- (void) setCalendarProxyUsers: (NSArray *) proxyUsers
|
||||
withWriteAccess: (BOOL) writeAccess
|
||||
- (NSArray *) subscribedAddressBooks
|
||||
{
|
||||
NSString *key;
|
||||
|
||||
key = [NSString stringWithFormat: @"CalendarProxy%@Users",
|
||||
(writeAccess ? @"Write" : @"Read")];
|
||||
|
||||
[self setObject: proxyUsers forKey: key];
|
||||
}
|
||||
|
||||
- (NSArray *) calendarProxyUsersWithWriteAccess: (BOOL) writeAccess
|
||||
{
|
||||
NSString *key;
|
||||
|
||||
key = [NSString stringWithFormat: @"CalendarProxy%@Users",
|
||||
(writeAccess ? @"Write" : @"Read")];
|
||||
|
||||
return [self arrayForKey: key];
|
||||
}
|
||||
|
||||
/* the users that have subscribed us as a proxy to their calendars */
|
||||
- (void) setCalendarProxySubscriptionUsers: (NSArray *) subscriptionUsers
|
||||
withWriteAccess: (BOOL) writeAccess
|
||||
{
|
||||
NSString *key;
|
||||
|
||||
key = [NSString stringWithFormat: @"CalendarProxy%@SubscriptionUsers",
|
||||
(writeAccess ? @"Write" : @"Read")];
|
||||
|
||||
[self setObject: subscriptionUsers forKey: key];
|
||||
}
|
||||
|
||||
- (NSArray *) calendarProxySubscriptionUsersWithWriteAccess: (BOOL) writeAccess
|
||||
{
|
||||
NSString *key;
|
||||
|
||||
key = [NSString stringWithFormat: @"CalendarProxy%@SubscriptionUsers",
|
||||
(writeAccess ? @"Write" : @"Read")];
|
||||
|
||||
return [self arrayForKey: key];
|
||||
return [self _subscribedFoldersForModule: @"Contacts"];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user