Monotone-Parent: 5de6813223eb9a48072c97c7a682bcf2e4ed8d2f

Monotone-Revision: 7b063b6baee92602dac99dd40f043d618eb1213d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-03-19T15:37:37
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-03-19 15:37:37 +00:00
parent e9b4f04d1f
commit 67a80e7a88
2 changed files with 39 additions and 10 deletions

View File

@@ -429,16 +429,6 @@
}
}
- (id) acceptAction
{
return [self acceptOrDeclineAction:YES];
}
- (id) declineAction
{
return [self acceptOrDeclineAction:NO];
}
// TODO: add tentatively
- (id) acceptOrDeclineAction: (BOOL) _accept
@@ -450,4 +440,40 @@
return self;
}
- (id) acceptAction
{
return [self acceptOrDeclineAction:YES];
}
- (id) declineAction
{
return [self acceptOrDeclineAction:NO];
}
- (id) changeStatusAction
{
SOGoTaskObject *clientObject;
NSString *newStatus, *iCalString;
clientObject = [self clientObject];
todo = (iCalToDo *) [clientObject component: NO];
if (todo)
{
newStatus = [self queryParameterForKey: @"status"];
if ([newStatus intValue])
[todo setCompleted: [NSCalendarDate date]];
else
{
[todo setCompleted: nil];
[todo setPercentComplete: 0];
[todo setStatus: @"IN-PROCESS"];
}
iCalString = [[clientObject calendar: NO] versitString];
[clientObject saveContentString: iCalString];
}
return self;
}
@end