+2005-07-15 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * iCalObject.[hm], iCalEntityObject.m, iCalToDo.m, iCalAlarm.m,
+ iCalPerson.m, iCalCalendar.m, iCalEvent.m, iCalTrigger.m,
+ iCalObject.m, iCalFreeBusy.m, iCalRepeatableEntityObject.m:
+ added NSCopying (v4.5.54)
+
2005-07-15 Helge Hess <helge.hess@opengroupware.org>
* v4.5.53
MAJOR_VERSION=4
MINOR_VERSION=5
-SUBMINOR_VERSION:=53
+SUBMINOR_VERSION:=54
# v4.5.40 requires NGExtensions v4.5.145
# v4.5.37 requires NGExtensions v4.5.140
[super dealloc];
}
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+ iCalAlarm *new;
+
+ new = [super copyWithZone:_zone];
+
+ ASSIGNCOPY(new->trigger, self->trigger);
+ ASSIGNCOPY(new->comment, self->comment);
+ ASSIGNCOPY(new->action, self->action);
+ ASSIGNCOPY(new->attach, self->attach);
+ ASSIGNCOPY(new->recurrenceRule, self->recurrenceRule);
+
+ return new;
+}
+
/* accessors */
- (void)setTrigger:(id)_value {
[super dealloc];
}
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+ iCalCalendar *new;
+
+ new = [super copyWithZone:_zone];
+
+ ASSIGNCOPY(new->version, self->version);
+ ASSIGNCOPY(new->calscale, self->calscale);
+ ASSIGNCOPY(new->prodId, self->prodId);
+ ASSIGNCOPY(new->method, self->method);
+
+ ASSIGNCOPY(new->todos, self->todos);
+ ASSIGNCOPY(new->events, self->events);
+ ASSIGNCOPY(new->journals, self->journals);
+ ASSIGNCOPY(new->freeBusys, self->freeBusys);
+ ASSIGNCOPY(new->timezones, self->timezones);
+
+ return new;
+}
+
/* accessors */
- (void)setCalscale:(NSString *)_value {
[super dealloc];
}
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+ iCalEntityObject *new;
+
+ new = [super copyWithZone:_zone];
+
+ ASSIGNCOPY(new->uid, self->uid);
+ ASSIGNCOPY(new->summary, self->summary);
+ new->timestamp = self->timestamp;
+ ASSIGNCOPY(new->created, self->created);
+ ASSIGNCOPY(new->lastModified, self->lastModified);
+ ASSIGNCOPY(new->startDate, self->startDate);
+ ASSIGNCOPY(new->accessClass, self->accessClass);
+ ASSIGNCOPY(new->priority, self->priority);
+ ASSIGNCOPY(new->alarms, self->alarms);
+ ASSIGNCOPY(new->organizer, self->organizer);
+ ASSIGNCOPY(new->attendees, self->attendees);
+ ASSIGNCOPY(new->comment, self->comment);
+ ASSIGNCOPY(new->sequence, self->sequence);
+ ASSIGNCOPY(new->location, self->location);
+ ASSIGNCOPY(new->status, self->status);
+ ASSIGNCOPY(new->categories, self->categories);
+ ASSIGNCOPY(new->userComment, self->userComment);
+
+ return new;
+}
+
/* accessors */
- (void)setUid:(NSString *)_value {
[super dealloc];
}
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+ iCalEvent *new;
+
+ new = [super copyWithZone:_zone];
+
+ ASSIGNCOPY(new->endDate, self->endDate);
+ ASSIGNCOPY(new->duration, self->duration);
+ ASSIGNCOPY(new->transparency, self->transparency);
+
+ return new;
+}
+
/* accessors */
- (void)setEndDate:(NSCalendarDate *)_date {
[super dealloc];
}
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+ iCalFreeBusy *new;
+
+ new = [super copyWithZone:_zone];
+
+ ASSIGNCOPY(new->entries, self->entries);
+ ASSIGNCOPY(new->organizer, self->organizer);
+ ASSIGNCOPY(new->startDate, self->startDate);
+ ASSIGNCOPY(new->endDate, self->endDate);
+ ASSIGNCOPY(new->url, self->url);
+
+ return new;
+}
+
/* accessors */
- (void)setUrl:(NSString *)_url {
@class NSTimeZone;
-@interface iCalObject : NSObject
+@interface iCalObject : NSObject <NSCopying>
{
}
[super dealloc];
}
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+ iCalObject *new;
+
+ new = [[iCalObject allocWithZone:_zone] init];
+ return new;
+}
+
/* KVC */
- (void)takeValue:(id)_value forXKey:(id)_key {
[super dealloc];
}
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+ iCalPerson *new;
+
+ new = [super copyWithZone:_zone];
+
+ ASSIGNCOPY(new->cn, self->cn);
+ ASSIGNCOPY(new->email, self->email);
+ ASSIGNCOPY(new->rsvp, self->rsvp);
+ ASSIGNCOPY(new->partStat, self->partStat);
+ ASSIGNCOPY(new->role, self->role);
+ ASSIGNCOPY(new->xuid, self->xuid);
+
+ return new;
+}
+
/* accessors */
- (void)setCn:(NSString *)_s {
[super dealloc];
}
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+ iCalRepeatableEntityObject *new;
+
+ new = [super copyWithZone:_zone];
+
+ ASSIGNCOPY(new->rRules, self->rRules);
+ ASSIGNCOPY(new->exRules, self->exRules);
+ ASSIGNCOPY(new->exDates, self->exDates);
+
+ return new;
+}
+
/* Accessors */
- (void)removeAllRecurrenceRules {
[super dealloc];
}
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+ iCalToDo *new;
+
+ new = [super copyWithZone:_zone];
+
+ ASSIGNCOPY(new->due, self->due);
+ ASSIGNCOPY(new->percentComplete, self->percentComplete);
+ ASSIGNCOPY(new->completed, self->completed);
+
+ return new;
+}
+
/* accessors */
- (void)setPercentComplete:(NSString *)_value {
[super dealloc];
}
+/* NSCopying */
+
+- (id)copyWithZone:(NSZone *)_zone {
+ iCalTrigger *new;
+
+ new = [super copyWithZone:_zone];
+
+ ASSIGNCOPY(new->valueType, self->valueType);
+ ASSIGNCOPY(new->value, self->value);
+
+ return new;
+}
+
/* accessors */
- (void)setValue:(NSString *)_value {