mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 22:53:18 +00:00
merge of '06def9332cbc52ec43917206f7800e487623419f'
and '4716c9e3a88b72ca631ad4d08c69388764bf28d5' Monotone-Parent: 06def9332cbc52ec43917206f7800e487623419f Monotone-Parent: 4716c9e3a88b72ca631ad4d08c69388764bf28d5 Monotone-Revision: d964b6374c8b995e67d8bce06f4be5855ceb1428 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-02-09T21:17:12 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user