/usr/share/doc/libghc-gio-doc/html/System-GIO-Volumes-Mount.html is in libghc-gio-doc 0.13.1.0-3build1.
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 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | <!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.Mount</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_System-GIO-Volumes-Mount.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-GIO-Volumes-Mount.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.1.0: Binding to the 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.Mount</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">Methods</a></li><li><a href="#g:4">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:Mount">Mount</a> = <a href="#v:Mount">Mount</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Foreign-ForeignPtr.html#t:ForeignPtr">ForeignPtr</a> <a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</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:MountClass">MountClass</a> o</li><li class="src short"><a href="#v:mountGetName">mountGetName</a> :: (<a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string) => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> string</li><li class="src short"><a href="#v:mountGetUUID">mountGetUUID</a> :: (<a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string) => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> string)</li><li class="src short"><a href="#v:mountGetIcon">mountGetIcon</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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:mountGetDrive">mountGetDrive</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a>)</li><li class="src short"><a href="#v:mountGetRoot">mountGetRoot</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="System-GIO-File-File.html#t:File">File</a></li><li class="src short"><a href="#v:mountGetVolume">mountGetVolume</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-Volumes-Volume.html#t:Volume">Volume</a>)</li><li class="src short"><a href="#v:mountGetDefaultLocation">mountGetDefaultLocation</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="System-GIO-File-File.html#t:File">File</a></li><li class="src short"><a href="#v:mountCanUnmount">mountCanUnmount</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:mountUnmountWithOperation">mountUnmountWithOperation</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> [<a href="System-GIO-Enums.html#t:MountUnmountFlags">MountUnmountFlags</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.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.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:mountUnmountWithOperationFinish">mountUnmountWithOperationFinish</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:mountRemount">mountRemount</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> [<a href="System-GIO-Enums.html#t:MountMountFlags">MountMountFlags</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.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.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:mountRemountFinish">mountRemountFinish</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:mountCanEject">mountCanEject</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:mountEjectWithOperation">mountEjectWithOperation</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> [<a href="System-GIO-Enums.html#t:MountUnmountFlags">MountUnmountFlags</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.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.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:mountEjectWithOperationFinish">mountEjectWithOperationFinish</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:mountGuessContentType">mountGuessContentType</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:mountGuessContentTypeFinish">mountGuessContentTypeFinish</a> :: (<a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string) => mount -> <a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> [string]</li><li class="src short"><a href="#v:mountGuessContentTypeSync">mountGuessContentTypeSync</a> :: (<a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string) => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-Async-Cancellable.html#t:Cancellable">Cancellable</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> [string]</li><li class="src short"><a href="#v:mountIsShadowed">mountIsShadowed</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:mountShadow">mountShadow</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:mountUnshadow">mountUnshadow</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:mountChanged">mountChanged</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> mount (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ())</li><li class="src short"><a href="#v:mountPreUnmount">mountPreUnmount</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> mount (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ())</li><li class="src short"><a href="#v:mountUnmounted">mountUnmounted</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> mount (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ())</li></ul></div><div id="interface"><h1 id="g:1">Details</h1><div class="doc"><p>The <code><a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></code> interface represents user-visible mounts. Note, when porting from GnomeVFS, <code><a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></code> is the
moral equivalent of GnomeVFSVolume.</p><p><code><a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></code> is a "mounted" filesystem that you can access. Mounted is in quotes because it's not the same
as a 1 mount, it might be a gvfs mount, but you can still access the files on it if you use
GIO. Might or might not be related to a volume object.</p><p>Unmounting a <code><a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></code> instance is an asynchronous operation. For more information about asynchronous
operations, see <code>AsyncReady</code> and GSimpleAsyncReady. To unmount a <code><a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></code> instance, first call
<code><a href="System-GIO-Volumes-Mount.html#v:mountUnmountWithOperation">mountUnmountWithOperation</a></code> the <code><a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></code> instance and a <code><a href="System-GIO-Async-AsyncResult.html#t:AsyncReadyCallback">AsyncReadyCallback</a></code>. The
callback will be fired when the operation has resolved (either with success or failure), and a
<code>AsyncReady</code> structure will be passed to the callback. That callback should then call
<code><a href="System-GIO-Volumes-Mount.html#v:mountUnmountWithOperationFinish">mountUnmountWithOperationFinish</a></code> with the <code><a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></code> and the <code>AsyncReady</code> data to see if the
operation was completed successfully. If an error is present when
<code><a href="System-GIO-Volumes-Mount.html#v:mountUnmountWithOperationFinish">mountUnmountWithOperationFinish</a></code> is called, then it will be filled with any error
information.</p></div><h1 id="g:2">Types</h1><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:Mount" class="def">Mount</a> <a href="src/System-GIO-Types.html#Mount" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Mount" class="def">Mount</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Foreign-ForeignPtr.html#t:ForeignPtr">ForeignPtr</a> <a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a>)</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Mount" class="caption collapser" onclick="toggleSection('i:Mount')">Instances</p><div id="section.i:Mount" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></span> <a href="src/System-GIO-Types.html#line-1006" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></span> <a href="src/System-GIO-Types.html#line-1006" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></span> <a href="src/System-GIO-Types.html#line-1016" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> <a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></span> <a href="src/System-GIO-Types.html#line-1015" class="link">Source</a></td><td class="doc empty"> </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 name="t:MountClass" class="def">MountClass</a> o <a href="src/System-GIO-Types.html#MountClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:MountClass" class="caption collapser" onclick="toggleSection('i:MountClass')">Instances</p><div id="section.i:MountClass" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> <a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></span> <a href="src/System-GIO-Types.html#line-1015" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:3">Methods</h1><div class="top"><p class="src"><a name="v:mountGetName" class="def">mountGetName</a> <a href="src/System-GIO-Volumes-Mount.html#mountGetName" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount, <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">=> mount</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> string</td><td class="doc"><p>returns the name for the given mount.</p></td></tr></table></div><div class="doc"><p>Gets the name of mount.</p></div></div><div class="top"><p class="src"><a name="v:mountGetUUID" class="def">mountGetUUID</a> <a href="src/System-GIO-Volumes-Mount.html#mountGetUUID" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount, <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">=> mount</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> string)</td><td class="doc"><p>returns the UUID for mount or <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if no UUID can be computed.</p></td></tr></table></div><div class="doc"><p>Gets the UUID for the mount. The reference is typically based on the file system UUID for the mount
in question and should be considered an opaque string. Returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if there is no UUID available.</p></div></div><div class="top"><p class="src"><a name="v:mountGetIcon" class="def">mountGetIcon</a> <a href="src/System-GIO-Volumes-Mount.html#mountGetIcon" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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 mount.</p></div></div><div class="top"><p class="src"><a name="v:mountGetDrive" class="def">mountGetDrive</a> <a href="src/System-GIO-Volumes-Mount.html#mountGetDrive" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a>)</td><td class="doc"><p>returns the <code><a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></code> for mount or <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if no <code><a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></code> can be computed.</p></td></tr></table></div><div class="doc"><p>Gets the drive for the mount.</p><p>This is a convenience method for getting the <code><a href="System-GIO-Volumes-Volume.html#t:Volume">Volume</a></code> and then using that object to get the <code><a href="System-GIO-Volumes-Drive.html#t:Drive">Drive</a></code>.</p></div></div><div class="top"><p class="src"><a name="v:mountGetRoot" class="def">mountGetRoot</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="System-GIO-File-File.html#t:File">File</a> <a href="src/System-GIO-Volumes-Mount.html#mountGetRoot" class="link">Source</a></p><div class="doc"><p>Gets the root directory on mount.</p></div></div><div class="top"><p class="src"><a name="v:mountGetVolume" class="def">mountGetVolume</a> <a href="src/System-GIO-Volumes-Mount.html#mountGetVolume" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="System-GIO-Volumes-Volume.html#t:Volume">Volume</a>)</td><td class="doc"><p>returns a <code><a href="System-GIO-Volumes-Volume.html#t:Volume">Volume</a></code> or <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if mount is not associated with a volume.</p></td></tr></table></div><div class="doc"><p>Gets the volume directory on mount.</p></div></div><div class="top"><p class="src"><a name="v:mountGetDefaultLocation" class="def">mountGetDefaultLocation</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="System-GIO-File-File.html#t:File">File</a> <a href="src/System-GIO-Volumes-Mount.html#mountGetDefaultLocation" class="link">Source</a></p><div class="doc"><p>Gets the default location of mount. The default location of the given mount is a path that reflects
the main entry point for the user (e.g. the home directory, or the root of the volume).
| Gets the root directory on mount.</p></div></div><div class="top"><p class="src"><a name="v:mountCanUnmount" class="def">mountCanUnmount</a> <a href="src/System-GIO-Volumes-Mount.html#mountCanUnmount" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.0/Data-Bool.html#v:True">True</a></code> if the mount can be unmounted.</p></td></tr></table></div><div class="doc"><p>Checks if mount can be mounted.</p></div></div><div class="top"><p class="src"><a name="v:mountUnmountWithOperation" class="def">mountUnmountWithOperation</a> <a href="src/System-GIO-Volumes-Mount.html#mountUnmountWithOperation" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</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.8.2.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.8.2.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.8.2.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.8.2.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.8.2.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Unmounts a mount. This is an asynchronous operation, and is finished by calling
<code><a href="System-GIO-Volumes-Mount.html#v:mountUnmountWithOperationFinish">mountUnmountWithOperationFinish</a></code> with the mount 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 name="v:mountUnmountWithOperationFinish" class="def">mountUnmountWithOperationFinish</a> <a href="src/System-GIO-Volumes-Mount.html#mountUnmountWithOperationFinish" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</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.8.2.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Finishes unmounting a mount. 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.8.2.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 name="v:mountRemount" class="def">mountRemount</a> <a href="src/System-GIO-Volumes-Mount.html#mountRemount" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</td><td class="doc empty"> </td></tr><tr><td class="src">-> [<a href="System-GIO-Enums.html#t:MountMountFlags">MountMountFlags</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.8.2.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.8.2.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.8.2.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.8.2.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.8.2.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Remounts a mount. This is an asynchronous operation, and is finished by calling
<code><a href="System-GIO-Volumes-Mount.html#v:mountRemountFinish">mountRemountFinish</a></code> with the mount and <code><a href="System-GIO-Async-AsyncResult.html#t:AsyncResult">AsyncResult</a></code>s data returned in the callback.</p><p>Remounting is useful when some setting affecting the operation of the volume has been changed, as
these may need a remount to take affect. While this is semantically equivalent with unmounting and
then remounting not all backends might need to actually be unmounted.</p></div></div><div class="top"><p class="src"><a name="v:mountRemountFinish" class="def">mountRemountFinish</a> <a href="src/System-GIO-Volumes-Mount.html#mountRemountFinish" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</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.8.2.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Finishes remounting a mount. 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.8.2.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 name="v:mountCanEject" class="def">mountCanEject</a> <a href="src/System-GIO-Volumes-Mount.html#mountCanEject" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.0/Data-Bool.html#v:True">True</a></code> if the mount can be ejected.</p></td></tr></table></div><div class="doc"><p>Checks if mount can be eject.</p></div></div><div class="top"><p class="src"><a name="v:mountEjectWithOperation" class="def">mountEjectWithOperation</a> <a href="src/System-GIO-Volumes-Mount.html#mountEjectWithOperation" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</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.8.2.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.8.2.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.8.2.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.8.2.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.8.2.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Ejects a mount. This is an asynchronous operation, and is finished by calling
<code><a href="System-GIO-Volumes-Mount.html#v:mountEjectWithOperationFinish">mountEjectWithOperationFinish</a></code> with the mount 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 name="v:mountEjectWithOperationFinish" class="def">mountEjectWithOperationFinish</a> <a href="src/System-GIO-Volumes-Mount.html#mountEjectWithOperationFinish" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</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.8.2.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Finishes ejecting a mount. If any errors occurred during the operation.</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 name="v:mountGuessContentType" class="def">mountGuessContentType</a> <a href="src/System-GIO-Volumes-Mount.html#mountGuessContentType" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>forceRescan</code> Whether to force a rescan of the content. Otherwise a cached result will be used if available</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.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.8.2.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Tries to guess the type of content stored on mount. Returns one or more textual identifiers of
well-known content types (typically prefixed with "x-content<em>"), e.g. x-content</em>image-dcf for camera
memory cards. See the shared-mime-info specification for more on x-content types.</p><p>This is an asynchronous operation (see <code><a href="System-GIO-Volumes-Mount.html#v:mountGuessContentTypeSync">mountGuessContentTypeSync</a></code> for the synchronous
version), and is finished by calling <code><a href="System-GIO-Volumes-Mount.html#v:mountGuessContentTypeFinish">mountGuessContentTypeFinish</a></code> with the mount 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 name="v:mountGuessContentTypeFinish" class="def">mountGuessContentTypeFinish</a> <a href="src/System-GIO-Volumes-Mount.html#mountGuessContentTypeFinish" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount, <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">=> mount</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.8.2.0/System-IO.html#t:IO">IO</a> [string]</td><td class="doc"><p>returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#v:True">True</a></code> if the mount was successfully ejected. <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#v:False">False</a></code> otherwise.</p></td></tr></table></div><div class="doc"><p>Finishes guessing content types of mount. If any errors occured 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.8.2.0/Data-Bool.html#v:False">False</a></code> will be returned. In particular, you may get an
<code><a href="System-GIO-Enums.html#v:IoErrorNotSupported">IoErrorNotSupported</a></code> if the mount does not support content guessing.</p></div></div><div class="top"><p class="src"><a name="v:mountGuessContentTypeSync" class="def">mountGuessContentTypeSync</a> <a href="src/System-GIO-Volumes-Mount.html#mountGuessContentTypeSync" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount, <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">=> mount</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>forceRescan</code> Whether to force a rescan of the content. Otherwise a cached result will be used if available</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.0/Data-Maybe.html#v:Nothing">Nothing</a></code> to ignore</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> [string]</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Tries to guess the type of content stored on mount. Returns one or more textual identifiers of
well-known content types (typically prefixed with "x-content<em>"), e.g. x-content</em>image-dcf for camera
memory cards. See the shared-mime-info specification for more on x-content types.</p><p>This is an synchronous operation and as such may block doing IO; see <code><a href="System-GIO-Volumes-Mount.html#v:mountGuessContentType">mountGuessContentType</a></code>
for the asynchronous version.</p></div></div><div class="top"><p class="src"><a name="v:mountIsShadowed" class="def">mountIsShadowed</a> <a href="src/System-GIO-Volumes-Mount.html#mountIsShadowed" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount</td><td class="doc empty"> </td></tr><tr><td class="src">=> mount</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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.8.2.0/Data-Bool.html#v:True">True</a></code> if mount is shadowed.</p></td></tr></table></div><div class="doc"><p>Determines if mount is shadowed. Applications or libraries should avoid displaying mount in the user
interface if it is shadowed.</p><p>A mount is said to be shadowed if there exists one or more user visible objects (currently <code><a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></code>
objects) with a root that is inside the root of mount.</p><p>One application of shadow mounts is when exposing a single file system that is used to address
several logical volumes. In this situation, a <code><a href="System-GIO-Volumes-VolumeMonitor.html#t:VolumeMonitor">VolumeMonitor</a></code> implementation would create two <code><a href="System-GIO-Volumes-Volume.html#t:Volume">Volume</a></code>
objects (for example, one for the camera functionality of the device and one for a SD card reader on
the device) with activation URIs gphoto2:
gphoto2:
mounted, said <code><a href="System-GIO-Volumes-VolumeMonitor.html#t:VolumeMonitor">VolumeMonitor</a></code> implementation would create two <code><a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></code> objects (each with their root
matching the corresponding volume activation root) that would shadow the original mount.</p><p>The proxy monitor in GVfs 2.26 and later, automatically creates and manage shadow mounts (and
shadows the underlying mount) if the activation root on a <code><a href="System-GIO-Volumes-Volume.html#t:Volume">Volume</a></code> is set.</p></div></div><div class="top"><p class="src"><a name="v:mountShadow" class="def">mountShadow</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/System-GIO-Volumes-Mount.html#mountShadow" class="link">Source</a></p><div class="doc"><p>Increments the shadow count on mount. Usually used by <code><a href="System-GIO-Volumes-VolumeMonitor.html#t:VolumeMonitor">VolumeMonitor</a></code> implementations when creating a
shadow mount for mount, see <code><a href="System-GIO-Volumes-Mount.html#v:mountIsShadowed">mountIsShadowed</a></code> for more information. The caller will need to emit
the "changed" signal on mount manually.</p></div></div><div class="top"><p class="src"><a name="v:mountUnshadow" class="def">mountUnshadow</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => mount -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/System-GIO-Volumes-Mount.html#mountUnshadow" class="link">Source</a></p><div class="doc"><p>Decrements the shadow count on mount. Usually used by <code><a href="System-GIO-Volumes-VolumeMonitor.html#t:VolumeMonitor">VolumeMonitor</a></code> implementations when destroying
a shadow mount for mount, see <code><a href="System-GIO-Volumes-Mount.html#v:mountIsShadowed">mountIsShadowed</a></code> for more information. The caller will need to
emit the "changed" signal on mount manually.</p></div></div><h1 id="g:4">Signals</h1><div class="top"><p class="src"><a name="v:mountChanged" class="def">mountChanged</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> mount (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()) <a href="src/System-GIO-Volumes-Mount.html#mountChanged" class="link">Source</a></p><div class="doc"><p>Emitted when the mount has been changed.</p></div></div><div class="top"><p class="src"><a name="v:mountPreUnmount" class="def">mountPreUnmount</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> mount (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()) <a href="src/System-GIO-Volumes-Mount.html#mountPreUnmount" class="link">Source</a></p><div class="doc"><p>This signal is emitted when the <code><a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></code> is about to be unmounted.</p></div></div><div class="top"><p class="src"><a name="v:mountUnmounted" class="def">mountUnmounted</a> :: <a href="System-GIO-Volumes-Mount.html#t:MountClass">MountClass</a> mount => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Signals.html#t:Signal">Signal</a> mount (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()) <a href="src/System-GIO-Volumes-Mount.html#mountUnmounted" class="link">Source</a></p><div class="doc"><p>This signal is emitted when the <code><a href="System-GIO-Volumes-Mount.html#t:Mount">Mount</a></code> have been unmounted. If the recipient is holding references
to the object they should release them so the object can be finalized.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|