2022-06-20 10:35:29 +00:00
|
|
|
//
|
|
|
|
// SandboxBroker.h
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Christopher Snowhill on 6/20/22.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface SandboxBroker : NSObject {
|
|
|
|
NSMutableArray *storage;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (SandboxBroker *)sharedSandboxBroker;
|
|
|
|
|
2022-06-21 09:45:45 +00:00
|
|
|
+ (NSURL *)urlWithoutFragment:(NSURL *)url;
|
|
|
|
+ (BOOL)isPath:(NSURL *)path aSubdirectoryOf:(NSURL *)directory;
|
|
|
|
|
2022-06-20 10:35:29 +00:00
|
|
|
- (id)init;
|
|
|
|
- (void)shutdown;
|
|
|
|
|
2022-06-21 05:10:43 +00:00
|
|
|
- (const void *)beginFolderAccess:(NSURL *)fileUrl;
|
|
|
|
- (void)endFolderAccess:(const void *)handle;
|
2022-06-20 10:35:29 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|