Monotone-Parent: 8a447d04163521d64bfb4168d80753ce1c557f3d

Monotone-Revision: 406832bc51a0849377951d10353a33568b33877b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-13T15:17:12
This commit is contained in:
Wolfgang Sourdeau
2012-04-13 15:17:12 +00:00
parent e7bfbd3f6f
commit 38ebd9e68c
2 changed files with 33 additions and 0 deletions

View File

@@ -3,6 +3,8 @@
* SoObjects/Appointments/SOGoAppointmentFolder.m (-bareFetchFields: ...),
(-fetchFields:from:to:title:component:additionalFilters:includeProtectedInformation:):
restored c-style escaping of sql-style escaping of quote characters.
(-davCalendarShowAlarms, setDavCalendarShowAlarms:): new proxy dav
accessors for "showCalendarAlarms" and "setShowCalendarAlarms:".
2012-04-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>

View File

@@ -2135,6 +2135,37 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
return error;
}
- (NSString *) davCalendarShowAlarms
{
NSString *boolean;
if ([self showCalendarAlarms])
boolean = @"true";
else
boolean = @"false";
return boolean;
}
- (NSException *) setDavCalendarShowAlarms: (id) newBoolean
{
NSException *error;
error = nil;
if ([newBoolean isEqualToString: @"true"]
|| [newBoolean isEqualToString: @"1"])
[self setShowCalendarAlarms: YES];
else if ([newBoolean isEqualToString: @"false"]
|| [newBoolean isEqualToString: @"0"])
[self setShowCalendarAlarms: NO];
else
error = [NSException exceptionWithHTTPStatus: 400
reason: @"Bad boolean value."];
return error;
}
/* vevent UID handling */
- (NSString *) resourceNameForEventUID: (NSString *) uid