2004-08-15 Helge Hess <helge.hess@skyrix.com>
+ * SOGoContentObject.m: implement first version of -delete (v0.9.9)
+
* SOGoObject.[hm], SOGoUserFolder.[hm]: implemented SOPE
-ownerInContext: (v0.9.8)
- (NSException *)saveContentString:(NSString *)_str {
OCSFolder *folder;
NSException *ex;
+
+#warning TODO: implement proper "multi-saves"
if ((folder = [self ocsFolder]) == nil) {
[self logWithFormat:@"did not find folder of appointment."];
return nil;
}
+- (NSException *)delete {
+ OCSFolder *folder;
+ NSException *ex;
+
+#warning TODO: implement proper "multi-saves"
+
+ if ((folder = [self ocsFolder]) == nil) {
+ [self logWithFormat:@"did not find folder of appointment."];
+ return nil;
+ }
+
+ if ((ex = [folder deleteContentWithName:[self nameInContainer]])) {
+ [self logWithFormat:@"delete failed: %@", ex];
+ return ex;
+ }
+
+ return nil;
+}
+
/* description */
- (void)appendAttributesToDescription:(NSMutableString *)_ms {