From 4682a2e52b9417a4b21f9163730f2db93031e06e Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 8 Feb 2008 14:28:35 +0000 Subject: [PATCH] Monotone-Parent: 82cca2aa8fca5845f6acd17503b0f8798ff2190d Monotone-Revision: 06c6a5389bef2ae8c3c3132393a63e65916538ca Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-02-08T14:28:35 Monotone-Branch: ca.inverse.sogo --- .../Appointments/SOGoAppointmentFolders.m | 100 ++++++++++++++++++ SoObjects/SOGo/SOGoUserFolder.m | 38 +++---- 2 files changed, 119 insertions(+), 19 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentFolders.m b/SoObjects/Appointments/SOGoAppointmentFolders.m index 151f66fc8..dbb0277eb 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolders.m +++ b/SoObjects/Appointments/SOGoAppointmentFolders.m @@ -20,6 +20,7 @@ * Boston, MA 02111-1307, USA. */ +#import #import #import "SOGoAppointmentFolder.h" @@ -43,4 +44,103 @@ return @"Personal calendar"; } +// /* CalDAV support */ +// - (NSArray *) davComplianceClassesInContext: (WOContext *) localContext +// { +// NSMutableArray *newClasses; + +// newClasses +// = [NSMutableArray arrayWithArray: +// [super davComplianceClassesInContext: localContext]]; +// [newClasses addObject: @"calendar-access"]; + +// return newClasses; +// } + +// - (NSArray *) davCalendarHomeSet +// { +// /* +// +// http://cal.example.com/home/bernard/calendars/ +// + +// Note: this is the *container* for calendar collections, not the +// collections itself. So for use its the home folder, the +// public folder and the groups folder. +// */ +// NSArray *tag; + +// tag = [NSArray arrayWithObjects: @"href", @"DAV:", @"D", +// [self davURL], nil]; + +// return [NSArray arrayWithObject: tag]; +// } + +// - (NSArray *) davCalendarUserAddressSet +// { +// NSArray *tag, *allEmails; +// NSMutableArray *addresses; +// NSEnumerator *emails; +// NSString *currentEmail; + +// addresses = [NSMutableArray array]; + +// allEmails = [[context activeUser] allEmails]; +// emails = [allEmails objectEnumerator]; +// while ((currentEmail = [emails nextObject])) +// { +// tag = [NSArray arrayWithObjects: @"href", @"DAV:", @"D", +// [NSString stringWithFormat: @"mailto:%@", currentEmail], +// nil]; +// [addresses addObject: tag]; +// } + +// return addresses; +// } + +// - (NSArray *) davCalendarScheduleInboxURL +// { +// NSArray *tag; + +// tag = [NSArray arrayWithObjects: @"href", @"DAV:", @"D", +// [NSString stringWithFormat: @"%@personal/", [self davURL]], +// nil]; + +// return [NSArray arrayWithObject: tag]; +// } + +// - (NSString *) davCalendarScheduleOutboxURL +// { +// NSArray *tag; + +// tag = [NSArray arrayWithObjects: @"href", @"DAV:", @"D", +// [NSString stringWithFormat: @"%@personal/", [self davURL]], +// nil]; + +// return [NSArray arrayWithObject: tag]; +// } + +// - (NSString *) davDropboxHomeURL +// { +// NSArray *tag; + +// tag = [NSArray arrayWithObjects: @"href", @"DAV:", @"D", +// [NSString stringWithFormat: @"%@personal/", [self davURL]], +// nil]; + +// return [NSArray arrayWithObject: tag]; +// } + +// - (NSString *) davNotificationsURL +// { +// NSArray *tag; + +// tag = [NSArray arrayWithObjects: @"href", @"DAV:", @"D", +// [NSString stringWithFormat: @"%@personal/", [self davURL]], +// nil]; + +// return [NSArray arrayWithObject: tag]; +// } + @end diff --git a/SoObjects/SOGo/SOGoUserFolder.m b/SoObjects/SOGo/SOGoUserFolder.m index efd551e77..1df3b3045 100644 --- a/SoObjects/SOGo/SOGoUserFolder.m +++ b/SoObjects/SOGo/SOGoUserFolder.m @@ -462,28 +462,28 @@ return YES; } -/* CalDAV support */ -- (NSArray *) davCalendarHomeSet -{ - /* - - http://cal.example.com/home/bernard/calendars/ - +// /* CalDAV support */ +// - (NSArray *) davCalendarHomeSet +// { +// /* +// +// http://cal.example.com/home/bernard/calendars/ +// - Note: this is the *container* for calendar collections, not the - collections itself. So for use its the home folder, the - public folder and the groups folder. - */ - NSArray *tag; - SOGoAppointmentFolders *parent; +// Note: this is the *container* for calendar collections, not the +// collections itself. So for use its the home folder, the +// public folder and the groups folder. +// */ +// NSArray *tag; +// SOGoAppointmentFolders *parent; - parent = [self privateCalendars: @"Calendar" inContext: context]; - tag = [NSArray arrayWithObjects: @"href", @"DAV:", @"D", - [parent davURL], nil]; +// parent = [self privateCalendars: @"Calendar" inContext: context]; +// tag = [NSArray arrayWithObjects: @"href", @"DAV:", @"D", +// [parent davURL], nil]; - return [NSArray arrayWithObject: tag]; -} +// return [NSArray arrayWithObject: tag]; +// } // - (NSArray *) davCalendarUserAddressSet // {