+2005-07-19 Helge Hess <helge.hess@opengroupware.org>
+
+ * UIxAppointmentEditor.m: moved iCalRecurrenceRule to separate file
+ (v0.9.137)
+
2005-07-18 Marcus Mueller <znek@mulle-kybernetik.com>
* UIxCalView.m: provide label "empty title" as -titlePlaceholder for
UIxCalInlineAptView.m \
UIxCalScheduleOverview.m \
UIxCalParticipationStatusView.m \
+ \
+ iCalRecurrenceRule+SOGo.m \
SchedulerUI_RESOURCE_FILES += \
Version \
product.plist
-ifeq ($(bundlewox),yes)
-
-SchedulerUI_RESOURCE_FILES += \
- UIxAptTableView.wox \
- UIxCalDayOverview.wox \
- UIxCalDayChartview.wox \
- UIxCalDayListview.wox \
- UIxCalDayPrintview.wox \
- UIxCalWeekOverview.wox \
- UIxCalWeekChartview.wox \
- UIxCalWeekListview.wox \
- UIxCalWeekColumnsview.wox \
- UIxCalWeekPrintview.wox \
- UIxCalMonthOverview.wox \
- UIxCalMonthPrintview.wox \
- UIxCalYearOverview.wox \
- UIxCalInlineMonthOverview.wox \
- UIxAppointmentView.wox \
- UIxAppointmentPrintview.wox \
- UIxAppointmentEditor.wox \
- UIxCalSelectTab.wox \
- UIxCalDateLabel.wox \
- UIxCalBackForthNavView.wox \
- UIxAppointmentProposal.wox \
- UIxDatePicker.wox \
- UIxDatePickerScript.wox \
- UIxTimeSelector.wox \
- UIxTimeDateControl.wox \
- UIxCalInlineAptView.wox \
- UIxCalScheduleOverview.wox \
- UIxCalParticipationStatusView.wox \
-
-endif
-
SchedulerUI_RESOURCE_FILES += \
images/next_week.gif \
images/previous_week.gif \
[_appointment setTransparency:[self transparency]];
#if 0
- /* bad, bad, bad!
- * Organizer is no form value, thus we MUST NOT change it
- */
+ /*
+ Note: bad, bad, bad!
+ Organizer is no form value, thus we MUST NOT change it
+ */
[_appointment setOrganizer:self->organizer];
#endif
attendees = [self participants];
/* access */
- (BOOL)isMyApt {
- if (!self->organizer) return YES; // assume this is safe to do, right?
+ if (self->organizer == nil)
+ return YES; // assume this is safe to do, right?
+
+ // TODO: this should check a set of emails against the SoUser
return [[self->organizer rfc822Email] isEqualToString:[self emailForUser]];
}
reason:@"unable to parse appointment"];
}
- p = [apt findParticipantWithEmail:[self emailForUser]];
- if (!p) {
+ if ((p = [apt findParticipantWithEmail:[self emailForUser]]) == nil) {
/* 404 == Not found */
return [NSException exceptionWithHTTPStatus:404
reason:@"user does not participate in this "
@"appointment"];
}
- if(_accept)
+
+ // TODO: add tentative
+ if (_accept)
[p setParticipationStatus:iCalPersonPartStatAccepted];
else
[p setParticipationStatus:iCalPersonPartStatDeclined];
}
@end /* UIxAppointmentEditor */
-
-
-/* HACK ALERT
- This is a pretty ugly (unfortunately necessary) hack to map our limited
- set of recurrence rules back to the popup list
-*/
-@interface iCalRecurrenceRule (UsedPrivates)
-- (NSString *)freq;
-- (NSString *)byDayList;
-@end /* iCalRecurrenceRule (UsedPrivates) */
-
-@implementation iCalRecurrenceRule (SOGoExtensions)
-
-- (NSString *)cycleRepresentationForSOGo {
- NSMutableString *s;
-
- s = [NSMutableString stringWithCapacity:20];
- [s appendString:@"FREQ="];
- [s appendString:[self freq]];
- if ([self repeatInterval] != 1) {
- [s appendFormat:@";INTERVAL=%d", [self repeatInterval]];
- }
- if (self->byDay.mask != 0) {
- [s appendString:@";BYDAY="];
- [s appendString:[self byDayList]];
- }
- return s;
-}
-
-@end /* iCalRecurrenceRule (SOGoExtensions) */
# Version file
-SUBMINOR_VERSION:=136
+SUBMINOR_VERSION:=137
# v0.9.136 requires SOGoUI v0.9.30
# v0.9.123 requires Appointments v0.9.35
--- /dev/null
+/*
+ Copyright (C) 2004-2005 SKYRIX Software AG
+
+ This file is part of OpenGroupware.org.
+
+ OGo is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ OGo 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 Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+
+#include <NGiCal/NGiCal.h>
+#include "common.h"
+
+/* HACK ALERT
+ This is a pretty ugly (unfortunately necessary) hack to map our limited
+ set of recurrence rules back to the popup list
+*/
+@interface iCalRecurrenceRule (UsedPrivates)
+- (NSString *)freq;
+- (NSString *)byDayList;
+@end /* iCalRecurrenceRule (UsedPrivates) */
+
+@implementation iCalRecurrenceRule (SOGoExtensions)
+
+- (NSString *)cycleRepresentationForSOGo {
+ NSMutableString *s;
+
+ s = [NSMutableString stringWithCapacity:20];
+ [s appendString:@"FREQ="];
+ [s appendString:[self freq]];
+ if ([self repeatInterval] != 1) {
+ [s appendFormat:@";INTERVAL=%d", [self repeatInterval]];
+ }
+ if (self->byDay.mask != 0) {
+ [s appendString:@";BYDAY="];
+ [s appendString:[self byDayList]];
+ }
+ return s;
+}
+
+@end /* iCalRecurrenceRule (SOGoExtensions) */