mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-06 15:46:23 +00:00
Monotone-Parent: 8a447d04163521d64bfb4168d80753ce1c557f3d
Monotone-Revision: 406832bc51a0849377951d10353a33568b33877b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-04-13T15:17:12
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user