mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 21:53:19 +00:00
Mantis 139: dialog boxes of webcalendar
Monotone-Parent: fe1684747671de5019121d2155b79f89a2f376eb Monotone-Revision: 525ded69698841a7e49b579ace037c3eca060d31 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-09-21T14:10:16 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -172,6 +172,31 @@
|
||||
[calendar setShowCalendarTasks: new];
|
||||
}
|
||||
|
||||
- (NSString *) webCalendarURL
|
||||
{
|
||||
NSUserDefaults *settings;
|
||||
NSMutableDictionary *calendarSettings;
|
||||
NSMutableDictionary *webCalendars;
|
||||
NSString *rc;
|
||||
|
||||
settings = [[context activeUser] userSettings];
|
||||
calendarSettings = [settings objectForKey: @"Calendar"];
|
||||
|
||||
if (calendarSettings)
|
||||
{
|
||||
webCalendars = [calendarSettings objectForKey: @"WebCalendars"];
|
||||
if (webCalendars)
|
||||
rc = [webCalendars objectForKey: [calendar nameInContainer]];
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (BOOL) isWebCalendar
|
||||
{
|
||||
return ([self webCalendarURL] != nil);
|
||||
}
|
||||
|
||||
- (BOOL) shouldTakeValuesFromRequest: (WORequest *) request
|
||||
inContext: (WOContext*) context
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user