Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 28b57c8d20
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (43 sloc) 1.621 kb
//
// MFFilesystemController.h
// MacFusion2
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#import <Cocoa/Cocoa.h>
@class MFServerFS, MFServerPlugin;
@interface MFFilesystemController : NSObject {
NSMutableDictionary *_filesystemsDictionary;
NSMutableArray *_filesystems;
NSMutableArray *_recents;
NSMutableArray *_mountedPaths;
NSMutableDictionary *_tokens;
DASessionRef _appearSession;
DASessionRef _disappearSession;
}
// Init
+ (MFFilesystemController *)sharedController;
- (void)loadFilesystems;
// Action methods
- (MFServerFS *)newFilesystemWithPlugin:(MFServerPlugin *)plugin;
- (MFServerFS *)quickMountWithURL:(NSURL*)url error:(NSError **)error;
- (void)deleteFilesystem:(MFServerFS *)fs;
- (MFServerFS*)filesystemWithUUID:(NSString*)uuid;
// Security Tokens
- (NSString *)tokenForFilesystem:(MFServerFS *)fs;
- (void)invalidateToken:(NSString *)token;
- (MFServerFS *)filesystemForToken:(NSString *)token;
// Accessors
- (NSDictionary *)filesystemsDictionary;
@property(readonly, retain) NSMutableArray *filesystems;
@property(readonly, retain) NSMutableArray *recents;
@end
Jump to Line
Something went wrong with that request. Please try again.