From f79e1b7e72bb4104fabcd704fbda26b9afcf44b6 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Sun, 22 Jul 2007 20:44:46 +0000 Subject: [PATCH] Monotone-Parent: 873e19c6a1402fe9683b74b247566e9aced6d354 Monotone-Revision: 744c3e733b57edb33736f8baa6507148efdf032a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-22T20:44:46 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 +++++ SoObjects/Contacts/SOGoContactGCSFolder.m | 33 +++++++++++++++++++++-- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 389a0f4f4..8c87a9450 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-07-22 Wolfgang Sourdeau + * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder -davNamespaces]): added new overriden + method that declares the DAV namespace related to CardDAV. + ([SOGoContactGCSFolder -davComplianceClassesInContext:]): new + method that declares the "access-control" and "addressbook-access" + classes to the list. + * SoObjects/Appointments/SOGoAppointmentFolder.m ([-lookupActionForCalDAVMethod:]): removed method. ([SOGoAppointmentFolder -davNamespaces]): added new overriden diff --git a/SoObjects/Contacts/SOGoContactGCSFolder.m b/SoObjects/Contacts/SOGoContactGCSFolder.m index 04263df9e..df3f08341 100644 --- a/SoObjects/Contacts/SOGoContactGCSFolder.m +++ b/SoObjects/Contacts/SOGoContactGCSFolder.m @@ -19,10 +19,17 @@ 02111-1307, USA. */ +#import +#import +#import +#import +#import +#import +#import +#import +#import #import -#import "common.h" - #import "SOGoContactGCSEntry.h" #import "SOGoContactGCSFolder.h" @@ -180,6 +187,28 @@ return records; } +- (NSArray *) davNamespaces +{ + return [NSArray arrayWithObject: @"urn:ietf:params:xml:ns:carddav"]; +} + +- (NSArray *) davComplianceClassesInContext: (id)_ctx +{ + NSMutableArray *classes; + NSArray *primaryClasses; + + classes = [NSMutableArray new]; + [classes autorelease]; + + primaryClasses = [super davComplianceClassesInContext: _ctx]; + if (primaryClasses) + [classes addObjectsFromArray: primaryClasses]; + [classes addObject: @"access-control"]; + [classes addObject: @"addressbook-access"]; + + return classes; +} + - (NSString *) groupDavResourceType { return @"vcard-collection";