From 6277fa062c5a14adf9679551dc30f3ad91446385 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 4 Mar 2008 20:57:36 +0000 Subject: [PATCH] Monotone-Parent: 1b85a9d7216f9937a44da6e0649a8b8f792b25c9 Monotone-Revision: 5c3fb5da8513ab5020b731e15b09dc99dab3047c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-03-04T20:57:36 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 7 +++++++ SoObjects/Appointments/SOGoFreeBusyObject.m | 5 +++++ SoObjects/Mailer/SOGoMailBaseObject.h | 2 ++ SoObjects/Mailer/SOGoMailBaseObject.m | 5 +++++ SoObjects/Mailer/SOGoMailBodyPart.m | 5 +++++ SoObjects/SOGo/SOGoContentObject.m | 4 ---- SoObjects/SOGo/SOGoObject.m | 12 ++++++++++++ 7 files changed, 36 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7742fdb82..740164b02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-03-04 Wolfgang Sourdeau + + * SoObjects/SOGo/SOGoObject.m ([SOGoObject -isFolderish]): new + parent method, meant to be overriden. + ([SOGoObject -davIsCollection]): moved method from SOGoFolder up + to this parent class. + 2008-02-25 Wolfgang Sourdeau * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder diff --git a/SoObjects/Appointments/SOGoFreeBusyObject.m b/SoObjects/Appointments/SOGoFreeBusyObject.m index b6ecfda2f..d8c3ea433 100644 --- a/SoObjects/Appointments/SOGoFreeBusyObject.m +++ b/SoObjects/Appointments/SOGoFreeBusyObject.m @@ -205,6 +205,11 @@ return r; } +- (BOOL) isFolderish +{ + return NO; +} + - (NSString *) davContentType { return @"text/calendar"; diff --git a/SoObjects/Mailer/SOGoMailBaseObject.h b/SoObjects/Mailer/SOGoMailBaseObject.h index 8d5967429..a7028b306 100644 --- a/SoObjects/Mailer/SOGoMailBaseObject.h +++ b/SoObjects/Mailer/SOGoMailBaseObject.h @@ -48,6 +48,8 @@ NGImap4Connection *imap4; } +- (BOOL) isFolderish; + - (id) initWithImap4URL: (NSURL *) _url inContainer: (id) _container; diff --git a/SoObjects/Mailer/SOGoMailBaseObject.m b/SoObjects/Mailer/SOGoMailBaseObject.m index cfeda797f..7c5ec4e78 100644 --- a/SoObjects/Mailer/SOGoMailBaseObject.m +++ b/SoObjects/Mailer/SOGoMailBaseObject.m @@ -60,6 +60,11 @@ static BOOL debugOn = YES; [super dealloc]; } +- (BOOL) isFolderish +{ + return YES; +} + /* hierarchy */ - (SOGoMailAccount *) mailAccountFolder diff --git a/SoObjects/Mailer/SOGoMailBodyPart.m b/SoObjects/Mailer/SOGoMailBodyPart.m index 3afd10e07..38671f819 100644 --- a/SoObjects/Mailer/SOGoMailBodyPart.m +++ b/SoObjects/Mailer/SOGoMailBodyPart.m @@ -449,6 +449,11 @@ static BOOL debugOn = NO; return klazz; } +- (BOOL) isFolderish +{ + return NO; +} + /* etag support */ - (id)davEntityTag { diff --git a/SoObjects/SOGo/SOGoContentObject.m b/SoObjects/SOGo/SOGoContentObject.m index ac27122be..a4bfbc377 100644 --- a/SoObjects/SOGo/SOGoContentObject.m +++ b/SoObjects/SOGo/SOGoContentObject.m @@ -377,10 +377,6 @@ reason:@"this object cannot be copied via WebDAV"]; } -- (BOOL)davIsCollection { - return [self isFolderish]; -} - /* acls */ - (NSArray *) aclUsers diff --git a/SoObjects/SOGo/SOGoObject.m b/SoObjects/SOGo/SOGoObject.m index 7fbace9f9..84d69356b 100644 --- a/SoObjects/SOGo/SOGoObject.m +++ b/SoObjects/SOGo/SOGoObject.m @@ -634,6 +634,18 @@ static BOOL sendACLAdvisories = NO; return [NSNumber numberWithBool:YES]; /* delete worked out ... */ } +- (BOOL) isFolderish +{ + [self subclassResponsibility: _cmd]; + + return NO; +} + +- (BOOL) davIsCollection +{ + return [self isFolderish]; +} + - (NSString *) davContentType { return @"text/plain";