]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/volume.h
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     interface of wxFSVolume 
   4 // Author:      wxWidgets team 
   6 // Licence:     wxWindows license 
   7 ///////////////////////////////////////////////////////////////////////////// 
  14     /// Is the volume mounted? 
  15     wxFS_VOL_MOUNTED 
= 0x0001, 
  17     /// Is the volume removable (floppy, CD, ...)? 
  18     wxFS_VOL_REMOVABLE 
= 0x0002, 
  20     /// Read only? (otherwise read write). 
  21     wxFS_VOL_READONLY 
= 0x0004, 
  23     /// Network resources. 
  24     wxFS_VOL_REMOTE 
= 0x0008 
  42     Icon types used by wxFSVolume. 
  46     wxFS_VOL_ICO_SMALL 
= 0, 
  48     wxFS_VOL_ICO_SEL_SMALL
, 
  49     wxFS_VOL_ICO_SEL_LARGE
, 
  56     wxFSVolume represents a volume (also known as 'drive') in a file system 
  59     Unix ports of wxWidgets do not have the concept of volumes and thus do 
  60     not implement wxFSVolume. 
  71         Default ctor. Use Create() later. 
  76         Create the volume object with the given @a name (which should be one of 
  77         those returned by GetVolumes()). 
  79     wxFSVolumeBase(const wxString
& name
); 
  82         Create the volume object with the given @a name (which should be one of 
  83         those returned by GetVolumes()). 
  85     bool Create(const wxString
& name
); 
  88         Returns an array containing the names of the volumes of this system. 
  90         Only the volumes with @e flags such that the expression 
  91         @code (flags & flagsSet) == flagsSet && !(flags & flagsUnset) @endcode 
  92         is @true, are returned. By default, all mounted ones are returned. 
  94         This operation may take a while and, even if this function is 
  95         synchronous, it can be stopped using CancelSearch(). 
  97     static wxArrayString 
GetVolumes(int flagsSet 
= wxFS_VOL_MOUNTED
, 
 101         Stops execution of GetVolumes() called previously (should be called from 
 102         another thread, of course). 
 104     static void CancelSearch(); 
 107         Is this a valid volume? 
 112         Returns the kind of this volume. 
 114     wxFSVolumeKind 
GetKind() const; 
 117         Returns the flags of this volume. See wxFSVolumeFlags. 
 119     int GetFlags() const; 
 122         Returns @true if this volume is writable. 
 124     bool IsWritable() const; 
 127         Returns the name of the volume; this is the internal name 
 128         for the volume used by the operating system. 
 130     wxString 
GetName() const; 
 133         Returns the name of the volume meant to be shown to the user. 
 135     wxString 
GetDisplayName() const; 
 138         This function is available only when @c wxUSE_GUI is @c 1. 
 140         Returns the icon used by the native toolkit for the given file system type. 
 142     wxIcon 
GetIcon(wxFSIconType type
) const;