Calendar Import

Monotone-Parent: 1e66868696d71db915497bde02848e689ed48c7a
Monotone-Revision: 49714b85ec1539aa299cf3397138aa2bd21086cb

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-09-02T19:14:15
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert committed 2009-09-02 19:14:15 +00:00
1 parent 5658838afd
commit 9111a196b2
20 files changed
+166 -12

No files matched your search

@@ -144,6 +144,8 @@
- (NSException *) setProxySubscribers: (NSArray *) newSubscribers
withWriteAccess: (BOOL) hasWriteAccess;
- (void) importComponent: (iCalEntityObject *) event;
@end
#endif /* __Appointments_SOGoAppointmentFolder_H__ */
@@ -3173,4 +3173,20 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
return error;
}
- (void) importComponent: (iCalEntityObject *) event
{
SOGoAppointmentObject *object;
NSString *uid;
NSString *content;
uid = [self globallyUniqueObjectId];
[event setUid: uid];
object = [SOGoAppointmentObject objectWithName: uid
inContainer: self];
content =
[NSString stringWithFormat: @"BEGIN:VCALENDAR\n%@END:VCALENDAR\n",
[event versitString]];
[object saveContentString: content];
}
@end /* SOGoAppointmentFolder */