Added addressbook-home-set for principal URL

Monotone-Parent: 911b87d5ac8f4df7258d042280cb3980cc12fe69
Monotone-Revision: be11ede9b39c76d3a71c05143a448ab27a83a818

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-02-07T00:18:34
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle committed 2009-02-07 00:18:34 +00:00
1 parent 268f98e4af
commit 2a7d8eec65
5 files changed
+413 -304

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ Contacts_OBJC_FILES = \
SOGoContactGCSFolder.m \
SOGoContactLDIFEntry.m \
SOGoContactLDAPFolder.m \
SOGoUserFolder+Contacts.m \
Contacts_RESOURCE_FILES += \
Version \
@@ -0,0 +1,37 @@
/* SOGoUserFolder+Appointments.h - this file is part of SOGo
*
* Copyright (C) 2009 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef SOGOUSERFOLDER_CONTACTS_H
#define SOGOUSERFOLDER_CONTACTS_H
@class NSArray;
@class NSString;
#import <SOGo/SOGoUserFolder.h>
@interface SOGoUserFolder (SOGoCalDAVSupport)
- (NSArray *) davAddressbookHomeSet;
@end
#endif /* SOGOUSERFOLDER_CONTACTS_H */
@@ -0,0 +1,59 @@
/* SOGoUserFolder+Contacts.m - this file is part of SOGo
*
* Copyright (C) 2008 Inverse inc.
*
* Author: Francis Lachapelle <flachapelle@inverse.ca>
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#import <Foundation/NSArray.h>
#import <NGObjWeb/WOContext+SoObjects.h>
#import <NGObjWeb/WOResponse.h>
#import <NGExtensions/NSObject+Logs.h>
#import <NGExtensions/NSString+misc.h>
#import <SaxObjC/XMLNamespaces.h>
#import <SOGo/SOGoUser.h>
#import <SOGo/NSObject+DAV.h>
#import <SOGo/NSString+DAV.h>
#import "SOGoUserFolder+Contacts.h"
@interface SOGoUserFolder (private)
- (SOGoAppointmentFolders *) privateContacts: (NSString *) key
inContext: (WOContext *) localContext;
@end
@implementation SOGoUserFolder (SOGoCalDAVSupport)
/* CalDAV support */
- (NSArray *) davAddressbookHomeSet
{
NSArray *tag;
SOGoAppointmentFolders *parent;
parent = [self privateContacts: @"Contacts" inContext: context];
tag = [NSArray arrayWithObjects: @"href", @"DAV:", @"D",
[[parent davURL] path], nil];
return [NSArray arrayWithObject: tag];
}
@end