mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-09 00:43:22 +00:00
Monotone-Parent: 82cca2aa8fca5845f6acd17503b0f8798ff2190d
Monotone-Revision: 06c6a5389bef2ae8c3c3132393a63e65916538ca Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-02-08T14:28:35 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#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
|
||||
// {
|
||||
// /*
|
||||
// <C:calendar-home-set xmlns:D="DAV:"
|
||||
// xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||
// <D:href>http://cal.example.com/home/bernard/calendars/</D:href>
|
||||
// </C:calendar-home-set>
|
||||
|
||||
// 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
|
||||
|
||||
@@ -462,28 +462,28 @@
|
||||
return YES;
|
||||
}
|
||||
|
||||
/* CalDAV support */
|
||||
- (NSArray *) davCalendarHomeSet
|
||||
{
|
||||
/*
|
||||
<C:calendar-home-set xmlns:D="DAV:"
|
||||
xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||
<D:href>http://cal.example.com/home/bernard/calendars/</D:href>
|
||||
</C:calendar-home-set>
|
||||
// /* CalDAV support */
|
||||
// - (NSArray *) davCalendarHomeSet
|
||||
// {
|
||||
// /*
|
||||
// <C:calendar-home-set xmlns:D="DAV:"
|
||||
// xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||
// <D:href>http://cal.example.com/home/bernard/calendars/</D:href>
|
||||
// </C:calendar-home-set>
|
||||
|
||||
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
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user