diff --git a/UI/Scheduler/GNUmakefile b/UI/Scheduler/GNUmakefile index 300d2cd93a..b169d0521d 100644 --- a/UI/Scheduler/GNUmakefile +++ b/UI/Scheduler/GNUmakefile @@ -37,8 +37,8 @@ SchedulerUI_OBJC_FILES = \ UIxAppointmentEditor.m \ UIxTaskEditor.m \ UIxRecurrenceEditor.m \ - UIxReminderEditor.m - + UIxReminderEditor.m \ + UIxOccurenceEditor.m SchedulerUI_RESOURCE_FILES += \ product.plist diff --git a/UI/Scheduler/UIxOccurenceEditor.h b/UI/Scheduler/UIxOccurenceEditor.h new file mode 100644 index 0000000000..68b2e08d7b --- /dev/null +++ b/UI/Scheduler/UIxOccurenceEditor.h @@ -0,0 +1,33 @@ +/* UIxOccurenceEditor.h - this file is part of SOGo + * + * Copyright (C) 2008-2020 Inverse inc. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef UIXOCCURENCEEDITOR_H +#define UIXOCCURENCEEDITOR_H + + +@class NSString; + +#import + +@interface UIxOccurenceEditor : SOGoDirectAction + +@end + +#endif /* UIXOCCURENCEEDITOR_H */ diff --git a/UI/Scheduler/UIxOccurenceEditor.m b/UI/Scheduler/UIxOccurenceEditor.m new file mode 100644 index 0000000000..283a021fdc --- /dev/null +++ b/UI/Scheduler/UIxOccurenceEditor.m @@ -0,0 +1,43 @@ +/* UIxOccurenceEditor.m - this file is part of SOGo + * + * Copyright (C) 2008-2020 Inverse inc. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +#import + +#import + +#import "UIxOccurenceEditor.h" + +@implementation UIxOccurenceEditor + +- (WOResponse *) deleteAction +{ + SOGoCalendarComponent *component; + WOResponse *response; + + component = [self clientObject]; + response = (WOResponse *) [component prepareDelete]; + if (!response) + response = [self responseWithStatus: 204]; + + return response; +} + +@end