QTfrontend/NSWorkspace_RBAdditions.h
changeset 2400 2422ea85d100
child 2948 3f21a9dc93d0
equal deleted inserted replaced
2399:ddde0ac1472b 2400:2422ea85d100
       
     1 //
       
     2 //  NSWorkspace_RBAdditions.h
       
     3 //  PathProps
       
     4 //
       
     5 //  Created by Rainer Brockerhoff on 10/04/2007.
       
     6 //  Copyright 2007 Rainer Brockerhoff. All rights reserved.
       
     7 //
       
     8 
       
     9 #import <Cocoa/Cocoa.h>
       
    10 
       
    11 extern NSString* NSWorkspace_RBfstypename;
       
    12 extern NSString* NSWorkspace_RBmntonname;
       
    13 extern NSString* NSWorkspace_RBmntfromname;
       
    14 extern NSString* NSWorkspace_RBdeviceinfo;
       
    15 extern NSString* NSWorkspace_RBimagefilepath;
       
    16 extern NSString* NSWorkspace_RBconnectiontype;
       
    17 extern NSString* NSWorkspace_RBpartitionscheme;
       
    18 extern NSString* NSWorkspace_RBserverURL;
       
    19 
       
    20 @interface NSWorkspace (NSWorkspace_RBAdditions)
       
    21 
       
    22 // This method will return nil if the input path is invalid. Otherwise, the returned NSDictionary may contain
       
    23 // the following keys:
       
    24 //- NSWorkspace_RBfstypename: will always be present.Shows the filesystem type (usually "hfs"), from statfs.
       
    25 //- NSWorkspace_RBmntonname: will always be present. Shows the volume mount point.
       
    26 //- NSWorkspace_RBmntfromname: will always be present. Shows the BSD device path for local volumes; info for
       
    27 //		remote volumes depends on the filesystem type.
       
    28 //- NSWorkspace_RBconnectiontype: should always be present for local volumes. Shows the connection type ("SATA", "USB", etc.).
       
    29 //- NSWorkspace_RBpartitionscheme: should always be present for local volumes. Shows the partition scheme.
       
    30 //- NSWorkspace_RBdeviceinfo: should always be present for local volumes. Shows some information about the
       
    31 //		physical device; varies widely.
       
    32 //- NSWorkspace_RBimagefilepath: should be present for disk images only. Shows the path of the disk image file.
       
    33 //- NSWorkspace_RBserverURL: should be present for remote volumes only. Shows the server URL.
       
    34 
       
    35 - (NSDictionary*)propertiesForPath:(NSString*)path;
       
    36 
       
    37 @end