mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Make it compile cleanly
This commit is contained in:
parent
39d747f7e4
commit
2d565bb30a
2 changed files with 86 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Definition of class NSFilePresenter
|
||||
/* Definition of class NSFileVersion
|
||||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||
|
||||
Implemented by: Gregory Casamento <greg.casamento@gmail.com>
|
||||
|
@ -32,6 +32,11 @@
|
|||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7,GS_API_LATEST)
|
||||
|
||||
enum {
|
||||
NSFileVersionReplacingByMoving = 1 << 0
|
||||
};
|
||||
typedef NSUInteger NSFileVersionReplacingOptions;
|
||||
|
||||
@interface NSFileVersion : NSObject
|
||||
{
|
||||
@private
|
||||
|
@ -43,10 +48,10 @@
|
|||
BOOL _isDiscardable;
|
||||
BOOL _hasThumbnail;
|
||||
BOOL _hasLocalContents;
|
||||
BOOL _conflict;
|
||||
NSString *_localizedName;
|
||||
NSString *_localizedComputerName;
|
||||
NSString *_localizedNameOfSavingComputer;
|
||||
NSDate *_modificationDate;
|
||||
NSString *_name;
|
||||
}
|
||||
|
||||
- (BOOL) isDiscardable;
|
||||
|
@ -63,8 +68,8 @@
|
|||
- (BOOL) conflict;
|
||||
- (id<NSCoding>) persistentIdentifier;
|
||||
|
||||
- (BOOL)removeAndReturnError: (NSError **)outError;
|
||||
- (NSURL *)replaceItemAtURL: (NSURL *)url options:(NSFileVersionReplacingOptions)options error:(NSError **)error;
|
||||
- (BOOL) removeAndReturnError: (NSError **)outError;
|
||||
- (NSURL *) replaceItemAtURL: (NSURL *)url options:(NSFileVersionReplacingOptions)options error:(NSError **)error;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -1,4 +1,80 @@
|
|||
#include <Foundation/NSFileVersion.h>
|
||||
|
||||
@implementation NSFileVersion
|
||||
|
||||
- (BOOL) isDiscardable
|
||||
{
|
||||
return _isDiscardable;
|
||||
}
|
||||
- (void) setDiscardable: (BOOL)flag
|
||||
{
|
||||
_isDiscardable = flag;
|
||||
}
|
||||
|
||||
- (BOOL) isResolved
|
||||
{
|
||||
return _isResolved;
|
||||
}
|
||||
|
||||
- (void) setResolved: (BOOL)flag
|
||||
{
|
||||
_isResolved = flag;
|
||||
}
|
||||
|
||||
- (NSDate *) modificationDate
|
||||
{
|
||||
return _modificationDate;
|
||||
}
|
||||
|
||||
- (NSPersonNameComponents *) originatorNameComponents
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *) localizedName
|
||||
{
|
||||
return _localizedName;
|
||||
}
|
||||
|
||||
- (NSString *) localizedNameOfSavingComputer
|
||||
{
|
||||
return _localizedNameOfSavingComputer;
|
||||
}
|
||||
|
||||
- (BOOL) hasLocalContents
|
||||
{
|
||||
return _hasLocalContents;
|
||||
}
|
||||
|
||||
- (BOOL) hasThumbnail
|
||||
{
|
||||
return _hasThumbnail;
|
||||
}
|
||||
|
||||
- (NSURL *) URL
|
||||
{
|
||||
return _fileURL;
|
||||
}
|
||||
|
||||
- (BOOL) conflict
|
||||
{
|
||||
return _conflict;
|
||||
}
|
||||
|
||||
- (id<NSCoding>) persistentIdentifier
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (BOOL) removeAndReturnError: (NSError **)outError
|
||||
{
|
||||
outError = NULL;
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (NSURL *) replaceItemAtURL: (NSURL *)url options:(NSFileVersionReplacingOptions)options error:(NSError **)error
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue