Monotone-Parent: 9004babc502ac0232d7659ba8ada6726ad286662

Monotone-Revision: fe15a52bbb65b7147dfd596fd4f0791b716d1b26

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-11-22T07:20:22
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-11-22 07:20:22 +00:00
parent d00bd0dca8
commit ff9a299ed8
10 changed files with 159 additions and 59 deletions
@@ -27,9 +27,11 @@
#import <NGCards/iCalCalendar.h>
#import <NGCards/iCalRepeatableEntityObject.h>
#import "SOGoAppointmentObject.h"
#import "SOGoCalendarComponent.h"
#import "SOGoComponentOccurence.h"
#import "SOGoCalendarComponent.h"
@interface SOGoCalendarComponent (OccurenceExtensions)
- (void) prepareDeleteOccurence: (iCalRepeatableEntityObject *) component;
@@ -135,7 +137,7 @@
return component;
}
- (NSException *) delete;
- (NSException *) prepareDelete;
{
NSException *error;
iCalCalendar *parent;
@@ -149,7 +151,10 @@
[master addToExceptionDates: [component startDate]];
parent = [component parent];
[[parent children] removeObject: component];
// changes participant status & send invitation email - as if it was a new event! :(
[container saveComponent: master];
error = nil;
}
@@ -163,9 +168,13 @@
#warning most of SOGoCalendarComponent and SOGoComponentOccurence share the same external interface... \
they should be siblings or SOGoComponentOccurence the parent class of SOGoCalendarComponent...
- (NSException *) changeParticipationStatus: (NSString *) newPartStat
- (NSException *) changeParticipationStatus: (NSString *) newStatus
{
return [container changeParticipationStatus: newPartStat];
NSCalendarDate *date;
date = [component recurrenceId];
return [container changeParticipationStatus: newStatus forRecurrenceId: date];
}
@end