1{ Parsed from Foundation.framework NSFileVersion.h }
2
3
4{$ifdef TYPES}
5type
6  NSFileVersionPtr = ^NSFileVersion;
7{$endif}
8
9{$ifdef TYPES}
10type
11  NSFileVersionAddingOptions = NSUInteger;
12  NSFileVersionAddingOptionsPtr = ^NSFileVersionAddingOptions;
13
14const
15  NSFileVersionAddingByMoving = 1 shl 0;
16
17type
18  NSFileVersionReplacingOptions = NSUInteger;
19  NSFileVersionReplacingOptionsPtr = ^NSFileVersionReplacingOptions;
20
21const
22  NSFileVersionReplacingByMoving = 1 shl 0;
23{$endif}
24
25{$ifdef CLASSES}
26
27type
28  NSFileVersion = objcclass external (NSObject)
29  private
30    _fileURL: NSURL;
31    _addition: id;
32    _deadVersionIdentifier: id;
33    _nonLocalVersion: id;
34    _contentsURL: NSURL;
35    _isBackup: ObjCBOOL;
36    _localizedName: NSString;
37    _localizedComputerName: NSString;
38    _modificationDate: NSDate;
39    _isResolved: ObjCBOOL;
40    _contentsURLIsAccessed: ObjCBOOL;
41    _clientID: NSString;
42    _name: NSString;
43  public
44    class function currentVersionOfItemAtURL (url: NSURL): NSFileVersion; message 'currentVersionOfItemAtURL:';
45    class function otherVersionsOfItemAtURL (url: NSURL): NSArray; message 'otherVersionsOfItemAtURL:';
46    class function unresolvedConflictVersionsOfItemAtURL (url: NSURL): NSArray; message 'unresolvedConflictVersionsOfItemAtURL:';
47    class procedure getNonlocalVersionsOfItemAtURL_completionHandler (url: NSURL; completionHandler: OpaqueCBlock); message 'getNonlocalVersionsOfItemAtURL:completionHandler:'; { available in 10_10, 8_0 }
48    class function versionOfItemAtURL_forPersistentIdentifier (url: NSURL; persistentIdentifier: id): NSFileVersion; message 'versionOfItemAtURL:forPersistentIdentifier:';
49    class function addVersionOfItemAtURL_withContentsOfURL_options_error (url: NSURL; contentsURL: NSURL; options: NSFileVersionAddingOptions; outError: NSErrorPtr): NSFileVersion; message 'addVersionOfItemAtURL:withContentsOfURL:options:error:'; { available in 10_7 }
50    class function temporaryDirectoryURLForNewVersionOfItemAtURL (url: NSURL): NSURL; message 'temporaryDirectoryURLForNewVersionOfItemAtURL:'; { available in 10_7 }
51    function URL: NSURL; message 'URL';
52    function localizedName: NSString; message 'localizedName';
53    function localizedNameOfSavingComputer: NSString; message 'localizedNameOfSavingComputer';
54    function modificationDate: NSDate; message 'modificationDate';
55    function persistentIdentifier: NSCodingProtocol; message 'persistentIdentifier';
56    function isConflict: ObjCBOOL; message 'isConflict';
57    procedure setResolved(newValue: ObjCBOOL); message 'setResolved:';
58    function isResolved: ObjCBOOL; message 'isResolved';
59    procedure setDiscardable(newValue: ObjCBOOL); message 'setDiscardable:';
60    function isDiscardable: ObjCBOOL; message 'isDiscardable';
61    function hasLocalContents: ObjCBOOL; message 'hasLocalContents';
62    function hasThumbnail: ObjCBOOL; message 'hasThumbnail';
63    function replaceItemAtURL_options_error (url_: NSURL; options: NSFileVersionReplacingOptions; error: NSErrorPtr): NSURL; message 'replaceItemAtURL:options:error:';
64    function removeAndReturnError (outError: NSErrorPtr): ObjCBOOL; message 'removeAndReturnError:';
65    class function removeOtherVersionsOfItemAtURL_error (url_: NSURL; outError: NSErrorPtr): ObjCBOOL; message 'removeOtherVersionsOfItemAtURL:error:';
66  end;
67{$endif}
68
69