mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 15:02:40 +00:00
;
Monotone-Parent: fc267c7dc09cc05decc140411d1facce3f441866 Monotone-Revision: c2a5265bbdaf7810309bda5f2f3dd5f2c67b15ed Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-06-11T18:43:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
bfcaea41c0
commit
676194b020
8 files changed
+130
-123
No files matched your search
@@ -36,16 +36,16 @@
|
||||
[[self ocsFolder] deleteAllContent];
|
||||
}
|
||||
|
||||
- (int) loadWebCalendar: (NSString *) location
|
||||
- (int) loadWebCalendar
|
||||
{
|
||||
NSURL *url;
|
||||
NSData *data;
|
||||
NSString *contents;
|
||||
NSString *location, *contents;
|
||||
iCalCalendar *calendar;
|
||||
int imported = 0;
|
||||
|
||||
location = [self folderPropertyValueInCategory: @"WebCalendars"];
|
||||
url = [NSURL URLWithString: location];
|
||||
|
||||
if (url)
|
||||
{
|
||||
data = [url resourceDataUsingCache: NO];
|
||||
@@ -89,20 +89,10 @@
|
||||
- (NSException *) delete
|
||||
{
|
||||
NSException *error;
|
||||
SOGoUserSettings *settings;
|
||||
NSMutableDictionary *webCalendars;
|
||||
NSString *name;
|
||||
|
||||
error = [super delete];
|
||||
if (!error)
|
||||
{
|
||||
settings = [[context activeUser] userSettings];
|
||||
webCalendars = [[settings objectForKey: @"Calendar"]
|
||||
objectForKey: @"WebCalendars"];
|
||||
name = [self nameInContainer];
|
||||
[webCalendars removeObjectForKey: name];
|
||||
[settings synchronize];
|
||||
}
|
||||
[self setFolderPropertyValue: nil inCategory: @"WebCalendars"];
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user