From: helge Date: Mon, 18 Jul 2005 09:10:38 +0000 (+0000) Subject: extended iCalPerson part-stat field X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38fbe3b881e4bc9591d61f4fa7f94090d1045af5;p=sope extended iCalPerson part-stat field git-svn-id: http://svn.opengroupware.org/SOPE/trunk@910 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-ical/NGiCal/ChangeLog b/sope-ical/NGiCal/ChangeLog index 9cfd6738..c3b5d768 100644 --- a/sope-ical/NGiCal/ChangeLog +++ b/sope-ical/NGiCal/ChangeLog @@ -1,3 +1,8 @@ +2005-07-18 Helge Hess + + * iCalPerson.m: added -partStatWithDefault method to retrieve the + partstat and return NEEDS-ACTION in case none is set (v4.5.57) + 2005-07-15 Marcus Mueller * iCalObject.[hm], iCalEntityObject.m, iCalToDo.m, iCalAlarm.m, diff --git a/sope-ical/NGiCal/Version b/sope-ical/NGiCal/Version index 2473f5b6..70d743ba 100644 --- a/sope-ical/NGiCal/Version +++ b/sope-ical/NGiCal/Version @@ -2,7 +2,7 @@ MAJOR_VERSION=4 MINOR_VERSION=5 -SUBMINOR_VERSION:=56 +SUBMINOR_VERSION:=57 # v4.5.40 requires NGExtensions v4.5.145 # v4.5.37 requires NGExtensions v4.5.140 diff --git a/sope-ical/NGiCal/iCalPerson.h b/sope-ical/NGiCal/iCalPerson.h index 903e7169..744078aa 100644 --- a/sope-ical/NGiCal/iCalPerson.h +++ b/sope-ical/NGiCal/iCalPerson.h @@ -72,6 +72,7 @@ typedef enum { - (void)setPartStat:(NSString *)_s; - (NSString *)partStat; +- (NSString *)partStatWithDefault; - (void)setParticipationStatus:(iCalPersonPartStat)_status; - (iCalPersonPartStat)participationStatus; diff --git a/sope-ical/NGiCal/iCalPerson.m b/sope-ical/NGiCal/iCalPerson.m index c1e9ade5..13f783a2 100644 --- a/sope-ical/NGiCal/iCalPerson.m +++ b/sope-ical/NGiCal/iCalPerson.m @@ -130,6 +130,15 @@ - (NSString *)partStat { return self->partStat; } +- (NSString *)partStatWithDefault { + NSString *s; + + s = [self partStat]; + if ([s length] > 0) + return s; + + return @"NEEDS-ACTION"; +} - (void)setParticipationStatus:(iCalPersonPartStat)_status { NSString *stat;