From ce4b9b0cd0a41b8c817c794c26aea06a6d1284af Mon Sep 17 00:00:00 2001 From: znek Date: Thu, 21 Jul 2005 10:48:55 +0000 Subject: [PATCH] added 'isRecurrentEvent' flag to rows flattened from recurrent events git-svn-id: http://svn.opengroupware.org/SOGo/trunk@866 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/SoObjects/Appointments/ChangeLog | 6 ++++++ SOGo/SoObjects/Appointments/SOGoAppointmentFolder.m | 9 ++++++--- SOGo/SoObjects/Appointments/Version | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/SOGo/SoObjects/Appointments/ChangeLog b/SOGo/SoObjects/Appointments/ChangeLog index 6e066473..7dd19f54 100644 --- a/SOGo/SoObjects/Appointments/ChangeLog +++ b/SOGo/SoObjects/Appointments/ChangeLog @@ -1,3 +1,9 @@ +2005-07-21 Marcus Mueller + + * SOGoAppointmentFolder.m: place a hint ('isRecurrent') into flattened + rows created from recurrent events so these can be signaled in the + UI (v0.9.49) + 2005-07-20 Marcus Mueller * v0.9.48 diff --git a/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.m b/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.m index 154d9d96..4f442be2 100644 --- a/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -37,8 +37,9 @@ @implementation SOGoAppointmentFolder -static NGLogger *logger = nil; -static NSTimeZone *MET = nil; +static NGLogger *logger = nil; +static NSTimeZone *MET = nil; +static NSNumber *sharedYes = nil; + (int)version { return [super version] + 1 /* v1 */; @@ -57,7 +58,8 @@ static NSTimeZone *MET = nil; lm = [NGLoggerManager defaultLoggerManager]; logger = [lm loggerForDefaultKey:@"SOGoAppointmentFolderDebugEnabled"]; - MET = [[NSTimeZone timeZoneWithAbbreviation:@"MET"] retain]; + MET = [[NSTimeZone timeZoneWithAbbreviation:@"MET"] retain]; + sharedYes = [[NSNumber numberWithBool:YES] retain]; } - (void)dealloc { @@ -255,6 +257,7 @@ static NSTimeZone *MET = nil; row = [self fixupRecord:_row fetchRange:_r]; [row removeObjectForKey:@"cycleinfo"]; + [row setObject:sharedYes forKey:@"isRecurrentEvent"]; startDate = [row objectForKey:@"startDate"]; endDate = [row objectForKey:@"endDate"]; diff --git a/SOGo/SoObjects/Appointments/Version b/SOGo/SoObjects/Appointments/Version index e5dcf616..c0a8a3e8 100644 --- a/SOGo/SoObjects/Appointments/Version +++ b/SOGo/SoObjects/Appointments/Version @@ -1,6 +1,6 @@ # Version file -SUBMINOR_VERSION:=48 +SUBMINOR_VERSION:=49 # v0.9.42 requires libSOGo v0.9.54 # v0.9.32 requires libGDLContentStore v4.5.26 -- 2.39.5