gvolume.html

来自「最新gtk中文资料集」· HTML 代码 · 共 1,003 行 · 第 1/4 页

HTML
1,003
字号
  char *   (*get_identifier)           (GVolume             *volume,					const char          *kind);  char **  (*enumerate_identifiers)    (GVolume             *volume);  gboolean (*should_automount)         (GVolume             *volume);} GVolumeIface;</pre><p>Interface for implementing operations for mountable volumes.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GTypeInterface">GTypeInterface</a>&#160;<em class="structfield"><code>g_iface</code></em>;</span></p></td><td> The parent interface.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>changed</code></em>&#160;()</span></p></td><td> Changed signal that is emitted when the volume's state has changed.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>removed</code></em>&#160;()</span></p></td><td> The removed signal that is emitted when the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> have been removed. If the recipient is holding references to the object they should release them so the object can be finalized.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_name</code></em>&#160;()</span></p></td><td> Gets a string containing the name of the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_icon</code></em>&#160;()</span></p></td><td> Gets a <a class="link" href="GIcon.html" title="GIcon"><span class="type">GIcon</span></a> for the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_uuid</code></em>&#160;()</span></p></td><td> Gets the UUID for the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>. The reference is typically based on the file system UUID for the mount in question and should be considered an opaque string. Returns <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no UUID available.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_drive</code></em>&#160;()</span></p></td><td> Gets a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a> the volume is located on. Returns <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> is not associated with a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_mount</code></em>&#160;()</span></p></td><td> Gets a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> representing the mounted volume. Returns <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> is not mounted.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>can_mount</code></em>&#160;()</span></p></td><td> Returns <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> can be mounted.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>can_eject</code></em>&#160;()</span></p></td><td> Checks if a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> can be ejected.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>mount_fn</code></em>&#160;()</span></p></td><td> Mounts a given <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>mount_finish</code></em>&#160;()</span></p></td><td> Finishes a mount operation.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>eject</code></em>&#160;()</span></p></td><td> Ejects a given <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>eject_finish</code></em>&#160;()</span></p></td><td> Finishes an eject operation.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_identifier</code></em>&#160;()</span></p></td><td> Returns the <a class="link" href="GVolume.html#volume-identifier">identifier</a> of the given kind, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if    the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> doesn't have one.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>enumerate_identifiers</code></em>&#160;()</span></p></td><td> Returns an array strings listing the kinds   of <a class="link" href="GVolume.html#volume-identifier">identifiers</a> which the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> has.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>should_automount</code></em>&#160;()</span></p></td><td> Returns <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> should be automatically mounted.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3220658"></a><h3><a name="g-volume-get-name"></a>g_volume_get_name ()</h3><a class="indexterm" name="id3220670"></a><pre class="programlisting">char*               g_volume_get_name                   (<a class="link" href="GVolume.html" title="GVolume">GVolume</a> *volume);</pre><p>Gets the name of <em class="parameter"><code>volume</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>volume</code></em>&#160;:</span></p></td><td> a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the name for the given <em class="parameter"><code>volume</code></em>. The returned string should be freed when no longer needed.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3220750"></a><h3><a name="g-volume-get-uuid"></a>g_volume_get_uuid ()</h3><a class="indexterm" name="id3220763"></a><pre class="programlisting">char*               g_volume_get_uuid                   (<a class="link" href="GVolume.html" title="GVolume">GVolume</a> *volume);</pre><p>Gets the UUID for the <em class="parameter"><code>volume</code></em>. The reference is typically based onthe file system UUID for the volume in question and should beconsidered an opaque string. Returns <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no UUIDavailable.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>volume</code></em>&#160;:</span></p></td><td> a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the UUID for <em class="parameter"><code>volume</code></em> or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if no UUID can be computed.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3220863"></a><h3><a name="g-volume-get-icon"></a>g_volume_get_icon ()</h3><a class="indexterm" name="id3220876"></a><pre class="programlisting"><a class="link" href="GIcon.html" title="GIcon">GIcon</a>*              g_volume_get_icon                   (<a class="link" href="GVolume.html" title="GVolume">GVolume</a> *volume);</pre><p>Gets the icon for <em class="parameter"><code>volume</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>volume</code></em>&#160;:</span></p></td><td> a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a <a class="link" href="GIcon.html" title="GIcon"><span class="type">GIcon</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3220956"></a><h3><a name="g-volume-get-drive"></a>g_volume_get_drive ()</h3><a class="indexterm" name="id3220969"></a><pre class="programlisting"><a class="link" href="GDrive.html" title="GDrive">GDrive</a>*             g_volume_get_drive                  (<a class="link" href="GVolume.html" title="GVolume">GVolume</a> *volume);</pre><p>Gets the drive for the <em class="parameter"><code>volume</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>volume</code></em>&#160;:</span></p></td><td> a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a> or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>volume</code></em> is not associated with a drive.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3221064"></a><h3><a name="g-volume-get-mount"></a>g_volume_get_mount ()</h3><a class="indexterm" name="id3221077"></a><pre class="programlisting"><a class="link" href="GMount.html" title="GMount">GMount</a>*             g_volume_get_mount                  (<a class="link" href="GVolume.html" title="GVolume">GVolume</a> *volume);</pre><p>Gets the mount for the <em class="parameter"><code>volume</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>volume</code></em>&#160;:</span></p></td><td> a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>.</td></tr>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?