diff --git a/ChangeLog b/ChangeLog index 6ebb5bf54..420281a78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-05-30 Wolfgang Sourdeau + * SoObjects/SOGo/SOGoContentObject.m (-version, -createDate) + (-lastModified): new accessors that return the value of the + corresponding ivar. + * SoObjects/SOGo/SOGoGCSFolder.m (-davCollectionTag): base the return value on the new -[GCSFolder lastModificationDate] method. (_isValidSyncToken): same as above. diff --git a/SoObjects/SOGo/SOGoContentObject.h b/SoObjects/SOGo/SOGoContentObject.h index ea8ca594c..866e2dfb2 100644 --- a/SoObjects/SOGo/SOGoContentObject.h +++ b/SoObjects/SOGo/SOGoContentObject.h @@ -56,6 +56,11 @@ - (BOOL) isNew; - (void) setIsNew: (BOOL) newIsNew; +- (unsigned int) version; + +- (NSCalendarDate *) creationDate; +- (NSCalendarDate *) lastModified; + - (NSString *) contentAsString; - (NSException *) saveContentString: (NSString *) _str baseVersion: (unsigned int) _baseVersion; diff --git a/SoObjects/SOGo/SOGoContentObject.m b/SoObjects/SOGo/SOGoContentObject.m index 6ebb8968f..6090fdde7 100644 --- a/SoObjects/SOGo/SOGoContentObject.m +++ b/SoObjects/SOGo/SOGoContentObject.m @@ -167,6 +167,21 @@ isNew = newIsNew; } +- (unsigned int) version +{ + return version; +} + +- (NSCalendarDate *) creationDate +{ + return creationDate; +} + +- (NSCalendarDate *) lastModified +{ + return lastModified; +} + - (NSString *) contentAsString { return content;