/usr/share/doc/libghc-gio-doc/html/System-GIO-Volumes-Drive.html is in libghc-gio-doc 0.13.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>System.GIO.Volumes.Drive</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_System-GIO-Volumes-Drive.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-GIO-Volumes-Drive.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">gio-0.13.3.1: Binding to GIO</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Maintainer</th><td>gtk2hs-devel@lists.sourceforge.net</td></tr><tr><th>Stability</th><td>alpha</td></tr><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.GIO.Volumes.Drive</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Details</a></li><li><a href="#g:2">Types</a></li><li><a href="#g:3">Enums,</a></li><li><a href="#g:4">Methods</a></li><li><a href="#g:5">Signals</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc empty"> </div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">newtype</span> <a href="#t:Drive">Drive</a> = <a href="#v:Drive">Drive</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Foreign-ForeignPtr.html#t:ForeignPtr">ForeignPtr</a> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a>)</li><li class="src short"><span class="keyword">class</span> <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o => <a href="#t:DriveClass">DriveClass</a> o</li><li class="src short"><span class="keyword">data</span> <a href="#t:DriveStartStopType">DriveStartStopType</a><ul class="subs"><li>= <a href="#v:DriveStartStopTypeUnknown">DriveStartStopTypeUnknown</a></li><li>| <a href="#v:DriveStartStopTypeShutdown">DriveStartStopTypeShutdown</a></li><li>| <a href="#v:DriveStartStopTypeNetwork">DriveStartStopTypeNetwork</a></li><li>| <a href="#v:DriveStartStopTypeMultidisk">DriveStartStopTypeMultidisk</a></li><li>| <a href="#v:DriveStartStopTypePassword">DriveStartStopTypePassword</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:DriveStartFlags">DriveStartFlags</a> = <a href="#v:DriveStartNone">DriveStartNone</a></li><li class="src short"><a href="#v:driveGetName">driveGetName</a> :: (<a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string) => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> string</li><li class="src short"><a href="#v:driveGetIcon">driveGetIcon</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="System-GIO-Icons-Icon.html#t:Icon">Icon</a></li><li class="src short"><a href="#v:driveHasVolumes">driveHasVolumes</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:driveGetVolumes">driveGetVolumes</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [<a href="System-GIO-Volumes-Volume.html#t:Volume">Volume</a>]</li><li class="src short"><a href="#v:driveCanEject">driveCanEject</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:driveGetStartStopType">driveGetStartStopType</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a></li><li class="src short"><a href="#v:driveCanStart">driveCanStart</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:driveCanStartDegraded">driveCanStartDegraded</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:driveCanStop">driveCanStop</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:driveCanPollForMedia">driveCanPollForMedia</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:drivePollForMedia">drivePollForMedia</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-Async-Cancellable.html#t:Cancellable">Cancellable</a> -> <a href="System-GIO-Async-AsyncResult.html#t:AsyncReadyCallback">AsyncReadyCallback</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:driveHasMedia">driveHasMedia</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:driveIsMediaCheckAutomatic">driveIsMediaCheckAutomatic</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:driveIsMediaRemovable">driveIsMediaRemovable</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:driveEjectWithOperation">driveEjectWithOperation</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> [<a href="System-GIO-Enums.html#t:MountUnmountFlags">MountUnmountFlags</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-File-MountOperation.html#t:MountOperation">MountOperation</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-Async-Cancellable.html#t:Cancellable">Cancellable</a> -> <a href="System-GIO-Async-AsyncResult.html#t:AsyncReadyCallback">AsyncReadyCallback</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:driveEjectWithOperationFinish">driveEjectWithOperationFinish</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:driveStart">driveStart</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> [<a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-File-MountOperation.html#t:MountOperation">MountOperation</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-Async-Cancellable.html#t:Cancellable">Cancellable</a> -> <a href="System-GIO-Async-AsyncResult.html#t:AsyncReadyCallback">AsyncReadyCallback</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:driveStartFinish">driveStartFinish</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:driveStopFinish">driveStopFinish</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:driveEnumerateIdentifiers">driveEnumerateIdentifiers</a> :: (<a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string) => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [string]</li><li class="src short"><a href="#v:driveGetIdentifier">driveGetIdentifier</a> :: (<a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string) => drive -> string -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> string</li><li class="src short"><a href="#v:driveChanged">driveChanged</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> drive (<a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ())</li><li class="src short"><a href="#v:driveDisconnected">driveDisconnected</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> drive (<a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ())</li><li class="src short"><a href="#v:driveEjectButton">driveEjectButton</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> drive (<a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ())</li><li class="src short"><a href="#v:driveStopButton">driveStopButton</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> drive (<a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ())</li></ul></div><div id="interface"><h1 id="g:1">Details</h1><div class="doc"><p><code><a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></code> - this represent a piece of hardware connected to the machine. It's generally only created
for removable hardware or hardware with removable media.</p><p><code><a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></code> is a container class for <code><a href="System-GIO-Volumes-Volume.html#t:Volume">Volume</a></code> objects that stem from the same piece of media. As such,
<code><a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></code> abstracts a drive with (or without) removable media and provides operations for querying
whether media is available, determing whether media change is automatically detected and ejecting
the media.</p><p>If the <code><a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></code> reports that media isn't automatically detected, one can poll for media; typically one
should not do this periodically as a poll for media operation is potententially expensive and may
spin up the drive creating noise.</p><p><code><a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></code> supports starting and stopping drives with authentication support for the former. This can be
used to support a diverse set of use cases including connecting/disconnecting iSCSI devices,
powering down external disk enclosures and starting/stopping multi-disk devices such as RAID
devices. Note that the actual semantics and side-effects of starting/ stopping a <code><a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></code> may vary
according to implementation. To choose the correct verbs in e.g. a file manager, use
<code><a href="System-GIO-Volumes-Drive.html#v:driveGetStartStopType">driveGetStartStopType</a></code>.</p><p>For porting from GnomeVFS note that there is no equivalent of <code><a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></code> in that API.</p></div><h1 id="g:2">Types</h1><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:Drive" class="def">Drive</a> <a href="src/System-GIO-Types.html#Drive" class="link">Source</a> <a href="#t:Drive" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Drive" class="def">Drive</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Foreign-ForeignPtr.html#t:ForeignPtr">ForeignPtr</a> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a>)</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Drive" class="caption collapser" onclick="toggleSection('i:Drive')">Instances</p><div id="section.i:Drive" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Drive:Eq:1" class="instance expander" onclick="toggleSection('i:id:Drive:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></span> <a href="src/System-GIO-Types.html#line-960" class="link">Source</a> <a href="#t:Drive" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Drive:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Drive:Ord:2" class="instance expander" onclick="toggleSection('i:id:Drive:Ord:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></span> <a href="src/System-GIO-Types.html#line-960" class="link">Source</a> <a href="#t:Drive" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Drive:Ord:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(<)</a> :: <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(<=)</a> :: <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(>)</a> :: <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(>=)</a> :: <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Drive:GObjectClass:3" class="instance expander" onclick="toggleSection('i:id:Drive:GObjectClass:3')"></span> <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></span> <a href="src/System-GIO-Types.html#line-970" class="link">Source</a> <a href="#t:Drive" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Drive:GObjectClass:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toGObject">toGObject</a> :: <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObject">GObject</a> <a href="#v:toGObject" class="selflink">#</a></p><p class="src"><a href="#v:unsafeCastGObject">unsafeCastGObject</a> :: <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObject">GObject</a> -> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> <a href="#v:unsafeCastGObject" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Drive:DriveClass:4" class="instance expander" onclick="toggleSection('i:id:Drive:DriveClass:4')"></span> <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></span> <a href="src/System-GIO-Types.html#line-969" class="link">Source</a> <a href="#t:Drive" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Drive:DriveClass:4" class="inst-details hide"></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o => <a id="t:DriveClass" class="def">DriveClass</a> o <a href="src/System-GIO-Types.html#DriveClass" class="link">Source</a> <a href="#t:DriveClass" class="selflink">#</a></p><div class="subs instances"><p id="control.i:DriveClass" class="caption collapser" onclick="toggleSection('i:DriveClass')">Instances</p><div id="section.i:DriveClass" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:DriveClass:DriveClass:1" class="instance expander" onclick="toggleSection('i:ic:DriveClass:DriveClass:1')"></span> <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></span> <a href="src/System-GIO-Types.html#line-969" class="link">Source</a> <a href="#t:DriveClass" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:DriveClass:DriveClass:1" class="inst-details hide"></div></td></tr></table></div></div></div><h1 id="g:3">Enums,</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:DriveStartStopType" class="def">DriveStartStopType</a> <a href="src/System-GIO-Enums.html#DriveStartStopType" class="link">Source</a> <a href="#t:DriveStartStopType" class="selflink">#</a></p><div class="doc"><p>Enumeration describing how a drive can be started/stopped.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:DriveStartStopTypeUnknown" class="def">DriveStartStopTypeUnknown</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:DriveStartStopTypeShutdown" class="def">DriveStartStopTypeShutdown</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:DriveStartStopTypeNetwork" class="def">DriveStartStopTypeNetwork</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:DriveStartStopTypeMultidisk" class="def">DriveStartStopTypeMultidisk</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:DriveStartStopTypePassword" class="def">DriveStartStopTypePassword</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:DriveStartStopType" class="caption collapser" onclick="toggleSection('i:DriveStartStopType')">Instances</p><div id="section.i:DriveStartStopType" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DriveStartStopType:Bounded:1" class="instance expander" onclick="toggleSection('i:id:DriveStartStopType:Bounded:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Bounded">Bounded</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a></span> <a href="src/System-GIO-Enums.html#line-140" class="link">Source</a> <a href="#t:DriveStartStopType" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:DriveStartStopType:Bounded:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:minBound">minBound</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> <a href="#v:minBound" class="selflink">#</a></p><p class="src"><a href="#v:maxBound">maxBound</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> <a href="#v:maxBound" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DriveStartStopType:Enum:2" class="instance expander" onclick="toggleSection('i:id:DriveStartStopType:Enum:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Enum">Enum</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a></span> <a href="src/System-GIO-Enums.html#line-140" class="link">Source</a> <a href="#t:DriveStartStopType" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:DriveStartStopType:Enum:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:succ">succ</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> <a href="#v:succ" class="selflink">#</a></p><p class="src"><a href="#v:pred">pred</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> <a href="#v:pred" class="selflink">#</a></p><p class="src"><a href="#v:toEnum">toEnum</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> <a href="#v:toEnum" class="selflink">#</a></p><p class="src"><a href="#v:fromEnum">fromEnum</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="#v:fromEnum" class="selflink">#</a></p><p class="src"><a href="#v:enumFrom">enumFrom</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> [<a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a>] <a href="#v:enumFrom" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThen">enumFromThen</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> [<a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a>] <a href="#v:enumFromThen" class="selflink">#</a></p><p class="src"><a href="#v:enumFromTo">enumFromTo</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> [<a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a>] <a href="#v:enumFromTo" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThenTo">enumFromThenTo</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> [<a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a>] <a href="#v:enumFromThenTo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DriveStartStopType:Eq:3" class="instance expander" onclick="toggleSection('i:id:DriveStartStopType:Eq:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a></span> <a href="src/System-GIO-Enums.html#line-140" class="link">Source</a> <a href="#t:DriveStartStopType" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:DriveStartStopType:Eq:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DriveStartStopType:Ord:4" class="instance expander" onclick="toggleSection('i:id:DriveStartStopType:Ord:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a></span> <a href="src/System-GIO-Enums.html#line-140" class="link">Source</a> <a href="#t:DriveStartStopType" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:DriveStartStopType:Ord:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(<)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(<=)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(>)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(>=)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DriveStartStopType:Show:5" class="instance expander" onclick="toggleSection('i:id:DriveStartStopType:Show:5')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a></span> <a href="src/System-GIO-Enums.html#line-140" class="link">Source</a> <a href="#t:DriveStartStopType" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:DriveStartStopType:Show:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:DriveStartFlags" class="def">DriveStartFlags</a> <a href="src/System-GIO-Enums.html#DriveStartFlags" class="link">Source</a> <a href="#t:DriveStartFlags" class="selflink">#</a></p><div class="doc"><p>Flags used when starting a drive.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:DriveStartNone" class="def">DriveStartNone</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:DriveStartFlags" class="caption collapser" onclick="toggleSection('i:DriveStartFlags')">Instances</p><div id="section.i:DriveStartFlags" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DriveStartFlags:Bounded:1" class="instance expander" onclick="toggleSection('i:id:DriveStartFlags:Bounded:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Bounded">Bounded</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a></span> <a href="src/System-GIO-Enums.html#line-132" class="link">Source</a> <a href="#t:DriveStartFlags" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:DriveStartFlags:Bounded:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:minBound">minBound</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> <a href="#v:minBound" class="selflink">#</a></p><p class="src"><a href="#v:maxBound">maxBound</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> <a href="#v:maxBound" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DriveStartFlags:Enum:2" class="instance expander" onclick="toggleSection('i:id:DriveStartFlags:Enum:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Enum">Enum</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a></span> <a href="src/System-GIO-Enums.html#line-133" class="link">Source</a> <a href="#t:DriveStartFlags" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:DriveStartFlags:Enum:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:succ">succ</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> <a href="#v:succ" class="selflink">#</a></p><p class="src"><a href="#v:pred">pred</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> <a href="#v:pred" class="selflink">#</a></p><p class="src"><a href="#v:toEnum">toEnum</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> <a href="#v:toEnum" class="selflink">#</a></p><p class="src"><a href="#v:fromEnum">fromEnum</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="#v:fromEnum" class="selflink">#</a></p><p class="src"><a href="#v:enumFrom">enumFrom</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> [<a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a>] <a href="#v:enumFrom" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThen">enumFromThen</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> [<a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a>] <a href="#v:enumFromThen" class="selflink">#</a></p><p class="src"><a href="#v:enumFromTo">enumFromTo</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> [<a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a>] <a href="#v:enumFromTo" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThenTo">enumFromThenTo</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> [<a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a>] <a href="#v:enumFromThenTo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DriveStartFlags:Eq:3" class="instance expander" onclick="toggleSection('i:id:DriveStartFlags:Eq:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a></span> <a href="src/System-GIO-Enums.html#line-132" class="link">Source</a> <a href="#t:DriveStartFlags" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:DriveStartFlags:Eq:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DriveStartFlags:Ord:4" class="instance expander" onclick="toggleSection('i:id:DriveStartFlags:Ord:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a></span> <a href="src/System-GIO-Enums.html#line-132" class="link">Source</a> <a href="#t:DriveStartFlags" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:DriveStartFlags:Ord:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(<)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(<=)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(>)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(>=)</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DriveStartFlags:Show:5" class="instance expander" onclick="toggleSection('i:id:DriveStartFlags:Show:5')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a></span> <a href="src/System-GIO-Enums.html#line-132" class="link">Source</a> <a href="#t:DriveStartFlags" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:DriveStartFlags:Show:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:DriveStartFlags:Flags:6" class="instance expander" onclick="toggleSection('i:id:DriveStartFlags:Flags:6')"></span> <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Flags.html#t:Flags">Flags</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a></span> <a href="src/System-GIO-Enums.html#line-132" class="link">Source</a> <a href="#t:DriveStartFlags" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:DriveStartFlags:Flags:6" class="inst-details hide"></div></td></tr></table></div></div></div><h1 id="g:4">Methods</h1><div class="top"><p class="src"><a id="v:driveGetName" class="def">driveGetName</a> <a href="src/System-GIO-Volumes-Drive.html#driveGetName" class="link">Source</a> <a href="#v:driveGetName" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string)</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> string</td><td class="doc"><p>returns the name for the given drive.</p></td></tr></table></div><div class="doc"><p>Gets the name of drive.</p></div></div><div class="top"><p class="src"><a id="v:driveGetIcon" class="def">driveGetIcon</a> <a href="src/System-GIO-Volumes-Drive.html#driveGetIcon" class="link">Source</a> <a href="#v:driveGetIcon" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="System-GIO-Icons-Icon.html#t:Icon">Icon</a></td><td class="doc"><p>returns a <code><a href="System-GIO-Icons-Icon.html#t:Icon">Icon</a></code>.</p></td></tr></table></div><div class="doc"><p>Gets the icon for drive.</p></div></div><div class="top"><p class="src"><a id="v:driveHasVolumes" class="def">driveHasVolumes</a> <a href="src/System-GIO-Volumes-Drive.html#driveHasVolumes" class="link">Source</a> <a href="#v:driveHasVolumes" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:True">True</a></code> if the drive contains volumes, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:False">False</a></code> otherwise.</p></td></tr></table></div><div class="doc"><p>Check if drive has any mountable volumes.</p></div></div><div class="top"><p class="src"><a id="v:driveGetVolumes" class="def">driveGetVolumes</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [<a href="System-GIO-Volumes-Volume.html#t:Volume">Volume</a>] <a href="src/System-GIO-Volumes-Drive.html#driveGetVolumes" class="link">Source</a> <a href="#v:driveGetVolumes" class="selflink">#</a></p><div class="doc"><p>Get a list of mountable volumes for drive.</p></div></div><div class="top"><p class="src"><a id="v:driveCanEject" class="def">driveCanEject</a> <a href="src/System-GIO-Volumes-Drive.html#driveCanEject" class="link">Source</a> <a href="#v:driveCanEject" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:True">True</a></code> if the drive can be ejected.</p></td></tr></table></div><div class="doc"><p>Checks if drive can be eject.</p></div></div><div class="top"><p class="src"><a id="v:driveGetStartStopType" class="def">driveGetStartStopType</a> <a href="src/System-GIO-Volumes-Drive.html#driveGetStartStopType" class="link">Source</a> <a href="#v:driveGetStartStopType" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a></td><td class="doc"><p>returns A value from the <code><a href="System-GIO-Volumes-Drive.html#t:DriveStartStopType">DriveStartStopType</a></code> enumeration.</p></td></tr></table></div><div class="doc"><p>Gets a hint about how a drive can be started/stopped.</p></div></div><div class="top"><p class="src"><a id="v:driveCanStart" class="def">driveCanStart</a> <a href="src/System-GIO-Volumes-Drive.html#driveCanStart" class="link">Source</a> <a href="#v:driveCanStart" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:True">True</a></code> if the drive can be started, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:False">False</a></code> otherwise.</p></td></tr></table></div><div class="doc"><p>Checks if a drive can be started.</p></div></div><div class="top"><p class="src"><a id="v:driveCanStartDegraded" class="def">driveCanStartDegraded</a> <a href="src/System-GIO-Volumes-Drive.html#driveCanStartDegraded" class="link">Source</a> <a href="#v:driveCanStartDegraded" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:True">True</a></code> if the drive can be started degraded, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:False">False</a></code> otherwise.</p></td></tr></table></div><div class="doc"><p>Checks if a drive can be started degraded.</p></div></div><div class="top"><p class="src"><a id="v:driveCanStop" class="def">driveCanStop</a> <a href="src/System-GIO-Volumes-Drive.html#driveCanStop" class="link">Source</a> <a href="#v:driveCanStop" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:True">True</a></code> if the drive can be stoped, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:False">False</a></code> otherwise.</p></td></tr></table></div><div class="doc"><p>Checks if a drive can be stoped.</p></div></div><div class="top"><p class="src"><a id="v:driveCanPollForMedia" class="def">driveCanPollForMedia</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/System-GIO-Volumes-Drive.html#driveCanPollForMedia" class="link">Source</a> <a href="#v:driveCanPollForMedia" class="selflink">#</a></p><div class="doc"><p>Checks if a drive can be polled for media changes.</p></div></div><div class="top"><p class="src"><a id="v:drivePollForMedia" class="def">drivePollForMedia</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-Async-Cancellable.html#t:Cancellable">Cancellable</a> -> <a href="System-GIO-Async-AsyncResult.html#t:AsyncReadyCallback">AsyncReadyCallback</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> () <a href="src/System-GIO-Volumes-Drive.html#drivePollForMedia" class="link">Source</a> <a href="#v:drivePollForMedia" class="selflink">#</a></p><div class="doc"><p>Asynchronously polls drive to see if media has been inserted or removed.</p><p>When the operation is finished, callback will be called. You can then call
<code>drivePollForMediaFinish</code> to obtain the result of the operation.</p></div></div><div class="top"><p class="src"><a id="v:driveHasMedia" class="def">driveHasMedia</a> <a href="src/System-GIO-Volumes-Drive.html#driveHasMedia" class="link">Source</a> <a href="#v:driveHasMedia" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:True">True</a></code> if drive has media, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:False">False</a></code> otherwise.</p></td></tr></table></div><div class="doc"><p>Checks if the drive has media. Note that the OS may not be polling the drive for media changes; see
<code><a href="System-GIO-Volumes-Drive.html#v:driveIsMediaCheckAutomatic">driveIsMediaCheckAutomatic</a></code> for more details.</p></div></div><div class="top"><p class="src"><a id="v:driveIsMediaCheckAutomatic" class="def">driveIsMediaCheckAutomatic</a> <a href="src/System-GIO-Volumes-Drive.html#driveIsMediaCheckAutomatic" class="link">Source</a> <a href="#v:driveIsMediaCheckAutomatic" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:True">True</a></code> if the drive is capabable of automatically detecting media changes, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:False">False</a></code> otherwise.</p></td></tr></table></div><div class="doc"><p>Checks if drive is capabable of automatically detecting media changes.</p></div></div><div class="top"><p class="src"><a id="v:driveIsMediaRemovable" class="def">driveIsMediaRemovable</a> <a href="src/System-GIO-Volumes-Drive.html#driveIsMediaRemovable" class="link">Source</a> <a href="#v:driveIsMediaRemovable" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:True">True</a></code> if drive supports removable media, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:False">False</a></code> otherwise.</p></td></tr></table></div><div class="doc"><p>Checks if the drive supports removable media.</p></div></div><div class="top"><p class="src"><a id="v:driveEjectWithOperation" class="def">driveEjectWithOperation</a> <a href="src/System-GIO-Volumes-Drive.html#driveEjectWithOperation" class="link">Source</a> <a href="#v:driveEjectWithOperation" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> [<a href="System-GIO-Enums.html#t:MountUnmountFlags">MountUnmountFlags</a>]</td><td class="doc"><p><code>flags</code> flags affecting the unmount if required for eject</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-File-MountOperation.html#t:MountOperation">MountOperation</a></td><td class="doc"><p><code>mountOperation</code> a <code><a href="System-GIO-File-MountOperation.html#t:MountOperation">MountOperation</a></code> or <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> to avoid user interaction.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-Async-Cancellable.html#t:Cancellable">Cancellable</a></td><td class="doc"><p><code>cancellable</code> optional <code><a href="System-GIO-Async-Cancellable.html#t:Cancellable">Cancellable</a></code> object, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> to ignore.</p></td></tr><tr><td class="src">-> <a href="System-GIO-Async-AsyncResult.html#t:AsyncReadyCallback">AsyncReadyCallback</a></td><td class="doc"><p><code>callback</code> a <code><a href="System-GIO-Async-AsyncResult.html#t:AsyncReadyCallback">AsyncReadyCallback</a></code></p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Ejects a drive. This is an asynchronous operation, and is finished by calling
<code><a href="System-GIO-Volumes-Drive.html#v:driveEjectWithOperationFinish">driveEjectWithOperationFinish</a></code> with the drive and <code><a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a></code> data returned in the callback.</p></div></div><div class="top"><p class="src"><a id="v:driveEjectWithOperationFinish" class="def">driveEjectWithOperationFinish</a> <a href="src/System-GIO-Volumes-Drive.html#driveEjectWithOperationFinish" class="link">Source</a> <a href="#v:driveEjectWithOperationFinish" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a></td><td class="doc"><p><code>result</code> a <code><a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a></code>.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Finishes ejecting a drive. If any errors occurred during the operation, error will be set to contain
the errors and <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#v:False">False</a></code> will be returned.</p><p>Throws a <code><a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GError.html#t:GError">GError</a></code> if an error occurs.</p></div></div><div class="top"><p class="src"><a id="v:driveStart" class="def">driveStart</a> <a href="src/System-GIO-Volumes-Drive.html#driveStart" class="link">Source</a> <a href="#v:driveStart" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> [<a href="System-GIO-Volumes-Drive.html#t:DriveStartFlags">DriveStartFlags</a>]</td><td class="doc"><p><code>flags</code> flags affecting the start operation.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-File-MountOperation.html#t:MountOperation">MountOperation</a></td><td class="doc"><p><code>mountOperation</code> a <code><a href="System-GIO-File-MountOperation.html#t:MountOperation">MountOperation</a></code> or <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> to avoid user interaction.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-Async-Cancellable.html#t:Cancellable">Cancellable</a></td><td class="doc"><p><code>cancellable</code> optional <code><a href="System-GIO-Async-Cancellable.html#t:Cancellable">Cancellable</a></code> object, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> to ignore.</p></td></tr><tr><td class="src">-> <a href="System-GIO-Async-AsyncResult.html#t:AsyncReadyCallback">AsyncReadyCallback</a></td><td class="doc"><p><code>callback</code> a <code><a href="System-GIO-Async-AsyncResult.html#t:AsyncReadyCallback">AsyncReadyCallback</a></code></p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Asynchronously starts a drive.</p><p>When the operation is finished, callback will be called. You can then call <code><a href="System-GIO-Volumes-Drive.html#v:driveStartFinish">driveStartFinish</a></code> to
obtain the result of the operation.</p></div></div><div class="top"><p class="src"><a id="v:driveStartFinish" class="def">driveStartFinish</a> <a href="src/System-GIO-Volumes-Drive.html#driveStartFinish" class="link">Source</a> <a href="#v:driveStartFinish" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a></td><td class="doc"><p><code>result</code> a <code><a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a></code>.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Finishes starting a drive.</p><p>Throws a <code><a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GError.html#t:GError">GError</a></code> if an error occurs.</p></div></div><div class="top"><p class="src"><a id="v:driveStopFinish" class="def">driveStopFinish</a> <a href="src/System-GIO-Volumes-Drive.html#driveStopFinish" class="link">Source</a> <a href="#v:driveStopFinish" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a></td><td class="doc"><p><code>result</code> a <code><a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a></code>.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Finishes stoping a drive.</p><p>Throws a <code><a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GError.html#t:GError">GError</a></code> if an error occurs.</p></div></div><div class="top"><p class="src"><a id="v:driveEnumerateIdentifiers" class="def">driveEnumerateIdentifiers</a> :: (<a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string) => drive -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [string] <a href="src/System-GIO-Volumes-Drive.html#driveEnumerateIdentifiers" class="link">Source</a> <a href="#v:driveEnumerateIdentifiers" class="selflink">#</a></p><div class="doc"><p>Gets the kinds of identifiers that drive has. Use <code>driveGetIdentifer</code> to obtain the
identifiers themselves.</p></div></div><div class="top"><p class="src"><a id="v:driveGetIdentifier" class="def">driveGetIdentifier</a> <a href="src/System-GIO-Volumes-Drive.html#driveGetIdentifier" class="link">Source</a> <a href="#v:driveGetIdentifier" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string)</td><td class="doc empty"> </td></tr><tr><td class="src">=> drive</td><td class="doc empty"> </td></tr><tr><td class="src">-> string</td><td class="doc"><p><code>kind</code> the kind of identifier to return</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> string</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Gets the identifier of the given kind for drive. See the introduction for more information about
drive identifiers.</p></div></div><h1 id="g:5">Signals</h1><div class="top"><p class="src"><a id="v:driveChanged" class="def">driveChanged</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> drive (<a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()) <a href="src/System-GIO-Volumes-Drive.html#driveChanged" class="link">Source</a> <a href="#v:driveChanged" class="selflink">#</a></p><div class="doc"><p>Emitted when a drive changes.</p></div></div><div class="top"><p class="src"><a id="v:driveDisconnected" class="def">driveDisconnected</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> drive (<a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()) <a href="src/System-GIO-Volumes-Drive.html#driveDisconnected" class="link">Source</a> <a href="#v:driveDisconnected" class="selflink">#</a></p><div class="doc"><p>Emitted when a drive changes.</p></div></div><div class="top"><p class="src"><a id="v:driveEjectButton" class="def">driveEjectButton</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> drive (<a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()) <a href="src/System-GIO-Volumes-Drive.html#driveEjectButton" class="link">Source</a> <a href="#v:driveEjectButton" class="selflink">#</a></p><div class="doc"><p>Emitted when the eject button is pressed on drive.</p></div></div><div class="top"><p class="src"><a id="v:driveStopButton" class="def">driveStopButton</a> :: <a href="System-GIO-Volumes-Drive.html#t:DriveClass">DriveClass</a> drive => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> drive (<a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()) <a href="src/System-GIO-Volumes-Drive.html#driveStopButton" class="link">Source</a> <a href="#v:driveStopButton" class="selflink">#</a></p><div class="doc"><p>Emitted when the stop button is pressed on drive.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>
|