Monotone-Parent: 4fb71d76cac3b87ffc098133f9c93d0e753c5284
Monotone-Revision: de6d837f5c2b62b4ad465872fdc54602b3d1009c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-05-05T13:48:06 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
37cbdd4378
commit
82a38c87fb
|
@ -1,5 +1,9 @@
|
||||||
2010-05-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2010-05-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* iCalPerson.m (-setParticipationStatus:, -participationStatus):
|
||||||
|
added handling of the new partstat value
|
||||||
|
"iCalPersonPartStatUndefined".
|
||||||
|
|
||||||
* iCalEntityObject.m (-resources): removed useless method.
|
* iCalEntityObject.m (-resources): removed useless method.
|
||||||
(-nonParticipants): new method returning ATTENDEE objects having
|
(-nonParticipants): new method returning ATTENDEE objects having
|
||||||
their ROLE attribute set to "NON-PARTICIPANT".
|
their ROLE attribute set to "NON-PARTICIPANT".
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#import "CardElement.h"
|
#import "CardElement.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
iCalPersonPartStatUndefined = -1, /* empty/undefined */
|
||||||
iCalPersonPartStatNeedsAction = 0, /* NEEDS-ACTION (DEFAULT) */
|
iCalPersonPartStatNeedsAction = 0, /* NEEDS-ACTION (DEFAULT) */
|
||||||
iCalPersonPartStatAccepted = 1, /* ACCEPTED */
|
iCalPersonPartStatAccepted = 1, /* ACCEPTED */
|
||||||
iCalPersonPartStatDeclined = 2, /* DECLINED */
|
iCalPersonPartStatDeclined = 2, /* DECLINED */
|
||||||
|
|
|
@ -133,6 +133,9 @@
|
||||||
NSString *stat;
|
NSString *stat;
|
||||||
|
|
||||||
switch (_status) {
|
switch (_status) {
|
||||||
|
case iCalPersonPartStatUndefined:
|
||||||
|
stat = @"";
|
||||||
|
break;
|
||||||
case iCalPersonPartStatAccepted:
|
case iCalPersonPartStatAccepted:
|
||||||
stat = @"ACCEPTED";
|
stat = @"ACCEPTED";
|
||||||
break;
|
break;
|
||||||
|
@ -170,7 +173,9 @@
|
||||||
NSString *stat;
|
NSString *stat;
|
||||||
|
|
||||||
stat = [[self partStat] uppercaseString];
|
stat = [[self partStat] uppercaseString];
|
||||||
if (![stat length] || [stat isEqualToString:@"NEEDS-ACTION"])
|
if (![stat length])
|
||||||
|
return iCalPersonPartStatUndefined;
|
||||||
|
else if ([stat isEqualToString:@"NEEDS-ACTION"])
|
||||||
return iCalPersonPartStatNeedsAction;
|
return iCalPersonPartStatNeedsAction;
|
||||||
else if ([stat isEqualToString:@"ACCEPTED"])
|
else if ([stat isEqualToString:@"ACCEPTED"])
|
||||||
return iCalPersonPartStatAccepted;
|
return iCalPersonPartStatAccepted;
|
||||||
|
|
Loading…
Reference in New Issue