mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 22:38:51 +00:00
Monotone-Parent: 1f5d5360fc1b4cef37b7128d18ab019c6e3bae39
Monotone-Revision: 152425578a61ed0c1e8f2003e50224ca4097e4b4 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-12-12T15:57:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2007-12-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* GCSFolder.m ([GCSFolder -creationDateOfEntryWithName:]): new
|
||||
method that returns the creation date of the specified entry.
|
||||
([GCSFolder -lastModificationOfEntryWithName:]): same as above for
|
||||
the last modification time.
|
||||
|
||||
2007-11-27 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* GCSFolder.m ([GCSFolder -versionOfContentWithName:], [GCSFolder
|
||||
|
||||
@@ -105,6 +105,8 @@
|
||||
- (NSArray *)allSubFolderNames;
|
||||
|
||||
- (NSNumber *)versionOfContentWithName:(NSString *)_name;
|
||||
- (NSCalendarDate *)creationDateOfEntryWithName:(NSString *)_name;
|
||||
- (NSCalendarDate *)lastModificationOfEntryWithName:(NSString *)_name;
|
||||
|
||||
- (NSString *)fetchContentWithName:(NSString *)_name;
|
||||
- (NSException *)writeContent:(NSString *)_content toName:(NSString *)_name
|
||||
|
||||
@@ -305,6 +305,24 @@ static GCSStringFormatter *stringFormatter = nil;
|
||||
ignoreDeleted: YES];
|
||||
}
|
||||
|
||||
- (NSCalendarDate *)creationDateOfEntryWithName:(NSString *)_name {
|
||||
int seconds;
|
||||
|
||||
seconds = [[self _fetchValueOfColumn:@"c_creationdate" inContentWithName:_name
|
||||
ignoreDeleted: YES] intValue];
|
||||
|
||||
return [NSCalendarDate dateWithTimeIntervalSince1970: seconds];
|
||||
}
|
||||
|
||||
- (NSCalendarDate *)lastModificationOfEntryWithName:(NSString *)_name {
|
||||
int seconds;
|
||||
|
||||
seconds = [[self _fetchValueOfColumn:@"c_lastmodified" inContentWithName:_name
|
||||
ignoreDeleted: YES] intValue];
|
||||
|
||||
return [NSCalendarDate dateWithTimeIntervalSince1970: seconds];
|
||||
}
|
||||
|
||||
- (NSNumber *)deletionOfContentWithName:(NSString *)_name {
|
||||
return [self _fetchValueOfColumn:@"c_deleted" inContentWithName:_name
|
||||
ignoreDeleted: NO];
|
||||
|
||||
Reference in New Issue
Block a user