From b1d6a77cb59fa0d608e03b721b9ca91ce03f2ec0 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 14 Jul 2009 14:35:35 +0000 Subject: [PATCH] Monotone-Parent: a891c51c800c8bcf46a3cc4342794d975147ddb5 Monotone-Revision: 26b4af664f5a42a3f2629266129ea4e4a9bbcd2b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-07-14T14:35:35 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++ .../Appointments/SOGoAppointmentFolders.m | 34 ++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fdc71f777..97f33dfba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-07-14 Wolfgang Sourdeau + + * SoObjects/Appointments/SOGoAppointmentFolders.m + (-davCalendarComponentSet): new method, copied from + SOGoAppointmentFolder. + 2009-07-10 Wolfgang Sourdeau * SoObjects/SOGo/SOGoContentObject.m (-davResourceType): new diff --git a/SoObjects/Appointments/SOGoAppointmentFolders.m b/SoObjects/Appointments/SOGoAppointmentFolders.m index c64afa030..4917c6abd 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolders.m +++ b/SoObjects/Appointments/SOGoAppointmentFolders.m @@ -1,3 +1,4 @@ + /* SOGoAppointmentFolders.m - this file is part of SOGo * * Copyright (C) 2007 Inverse inc. @@ -21,14 +22,17 @@ */ #import +#import #import #import #import #import #import - +#import #import +#import +#import #import "SOGoAppointmentFolder.h" #import "SOGoAppointmentFolders.h" @@ -167,4 +171,32 @@ return classes; } +- (SOGoWebDAVValue *) davCalendarComponentSet +{ + static SOGoWebDAVValue *componentSet = nil; + NSMutableArray *components; + + if (!componentSet) + { + components = [NSMutableArray array]; + /* Totally hackish.... we use the "n1" prefix because we know our + extensions will assign that one to ..:caldav but we really need to + handle element attributes */ + [components addObject: [SOGoWebDAVValue + valueForObject: @"" + attributes: nil]]; + [components addObject: [SOGoWebDAVValue + valueForObject: @"" + attributes: nil]]; + componentSet + = [davElementWithContent (@"supported-calendar-component-set", + XMLNS_CALDAV, + components) + asWebDAVValue]; + [componentSet retain]; + } + + return componentSet; +} + @end