Monotone-Parent: 8e107fb288c79a6ab48898f0f819a6f622daaab3
Monotone-Revision: 693f258d762745d4b943a8edf8adf8f691c787f1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-19T16:20:49 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
c2656306ed
commit
aa09636ec6
|
@ -4,6 +4,8 @@
|
|||
(-davResourceType): return the "schedule-inbox" and
|
||||
"schedule-inbox" caldav types when the user is the owner and the
|
||||
collection is its personal calendar.
|
||||
(-davCalendarComponentSet): new method that returns VEVENT and
|
||||
VTODO.
|
||||
|
||||
* SoObjects/SOGo/SOGoGCSFolder.m (davSyncCollection:): new method
|
||||
that implements the draft webdav sync specification
|
||||
|
|
|
@ -2240,6 +2240,33 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
|||
return colType;
|
||||
}
|
||||
|
||||
- (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: @"<n1:comp name=\"VEVENT\"/>"
|
||||
attributes: nil]];
|
||||
[components addObject: [SOGoWebDAVValue
|
||||
valueForObject: @"<n1:comp name=\"VTODO\"/>"
|
||||
attributes: nil]];
|
||||
componentSet
|
||||
= [davElementWithContent (@"supported-calendar-component-set",
|
||||
XMLNS_CALDAV,
|
||||
components)
|
||||
asWebDAVValue];
|
||||
}
|
||||
|
||||
return componentSet;
|
||||
}
|
||||
|
||||
- (NSString *) davDescription
|
||||
{
|
||||
return @"";
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
*/
|
||||
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <Foundation/NSCalendarDate.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSEnumerator.h>
|
||||
|
|
Loading…
Reference in New Issue