Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / platform / DARWIN / AFSPreference / FileUtil.h
1 //
2 // FileUtil.h
3 // AFSCommander
4 //
5 // Created by Claudio Bisegni on 21/06/07.
6 // Copyright 2007 INFN - National Institute of Nuclear Physics. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10 #include "AuthUtil.h"
11
12 @interface FileUtil : NSObject {
13 AuthUtil *autorization;
14 }
15
16 -(id) init;
17 -(void) dealloc;
18 -(OSStatus) startAutorization;
19 -(OSStatus) autorizedMoveFile:(NSString*)srcPath toPath:(NSString*)dstPath;
20 -(OSStatus) autorizedChown:(NSString*)filePath owner:(NSString*)owner group:(NSString*)group;
21 -(OSStatus) autorizedCopy:(NSString*)srcPath toPath:(NSString*)dstPath;
22 -(OSStatus) autorizedDelete:(NSString*)destFilePath;
23 -(void) endAutorization;
24 @end