mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-21 04:49:29 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user