gvolumemonitor.html
来自「最新gtk中文资料集」· HTML 代码 · 共 781 行 · 第 1/3 页
HTML
781 行
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>GVolumeMonitor</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="GIO Reference Manual"><link rel="up" href="volume_mon.html" title="Volumes and Drives"><link rel="prev" href="volume_mon.html" title="Volumes and Drives"><link rel="next" href="GVolume.html" title="GVolume"><meta name="generator" content="GTK-Doc V1.9 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="pt01.html" title="Part I. GIO Overview"><link rel="chapter" href="ch01.html" title="Introduction"><link rel="chapter" href="ch02.html" title="Compiling GIO applications"><link rel="chapter" href="ch03.html" title="Running GIO applications"><link rel="chapter" href="gio-extension-points.html" title="Extending GIO"><link rel="part" href="pt02.html" title="Part II. API Reference"><link rel="chapter" href="file_ops.html" title="File Operations"><link rel="chapter" href="file_mon.html" title="File System Monitoring"><link rel="chapter" href="async.html" title="Asynchronous I/O"><link rel="chapter" href="streaming.html" title="Streaming I/O"><link rel="chapter" href="types.html" title="File types and applications"><link rel="chapter" href="volume_mon.html" title="Volumes and Drives"><link rel="chapter" href="icons.html" title="Icons"><link rel="chapter" href="utils.html" title="Utilities"><link rel="chapter" href="extending.html" title="Extending GIO"><link rel="part" href="migrating.html" title="Part III. Migrating to GIO"><link rel="chapter" href="ch14.html" title="Migrating from POSIX to GIO"><link rel="chapter" href="ch15.html" title="Migrating from GnomeVFS to GIO"><link rel="chapter" href="gio-hierarchy.html" title="Object Hierarchy"><link rel="index" href="ix01.html" title="Index"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="volume_mon.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="volume_mon.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIO Reference Manual</th><td><a accesskey="n" href="GVolume.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr><tr><td colspan="5" class="shortcuts"><nobr><a href="#id3093062" class="shortcut">Top</a>  |  <a href="#id3212484" class="shortcut">Description</a>  |  <a href="#id3205281" class="shortcut">Object Hierarchy</a>  |  <a href="#id3205305" class="shortcut">Signals</a></nobr></td></tr></table><div class="refentry" lang="en"><a name="GVolumeMonitor"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><a name="id3093062"></a><span class="refentrytitle">GVolumeMonitor</span></h2><p>GVolumeMonitor — Volume Monitor</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">#include <gio/gio.h> <a class="link" href="GVolumeMonitor.html#GVolumeMonitor-struct">GVolumeMonitor</a>;#define <a class="link" href="GVolumeMonitor.html#G-VOLUME-MONITOR-EXTENSION-POINT-NAME:CAPS">G_VOLUME_MONITOR_EXTENSION_POINT_NAME</a><a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a>* <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get">g_volume_monitor_get</a> (void);<ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a>* <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get-connected-drives">g_volume_monitor_get_connected_drives</a> (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor);<ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a>* <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get-volumes">g_volume_monitor_get_volumes</a> (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor);<ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a>* <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get-mounts">g_volume_monitor_get_mounts</a> (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor);<a class="link" href="GVolume.html" title="GVolume">GVolume</a>* <a class="link" href="GVolumeMonitor.html#g-volume-monitor-adopt-orphan-mount">g_volume_monitor_adopt_orphan_mount</a> (<a class="link" href="GMount.html" title="GMount">GMount</a> *mount);<a class="link" href="GMount.html" title="GMount">GMount</a>* <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get-mount-for-uuid">g_volume_monitor_get_mount_for_uuid</a> (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor, const char *uuid);<a class="link" href="GVolume.html" title="GVolume">GVolume</a>* <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get-volume-for-uuid">g_volume_monitor_get_volume_for_uuid</a> (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor, const char *uuid);</pre></div><div class="refsect1" lang="en"><a name="id3205281"></a><h2>Object Hierarchy</h2><pre class="synopsis"> <ahref="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a> +----GVolumeMonitor</pre></div><div class="refsect1" lang="en"><a name="id3205305"></a><h2>Signals</h2><pre class="synopsis"> "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-drive-changed">drive-changed</a>" : Run Last "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-drive-connected">drive-connected</a>" : Run Last "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-drive-disconnected">drive-disconnected</a>" : Run Last "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-mount-added">mount-added</a>" : Run Last "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-mount-changed">mount-changed</a>" : Run Last "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-mount-pre-unmount">mount-pre-unmount</a>" : Run Last "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-mount-removed">mount-removed</a>" : Run Last "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-volume-added">volume-added</a>" : Run Last "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-volume-changed">volume-changed</a>" : Run Last "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-volume-removed">volume-removed</a>" : Run Last</pre></div><div class="refsect1" lang="en"><a name="id3212484"></a><h2>Description</h2><p><a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a> is for listing the user interesting devices and volumeson the computer. In other words, what a file selector or file managerwould show in a sidebar.</p><p></p></div><div class="refsect1" lang="en"><a name="id3212513"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id3212524"></a><h3><a name="GVolumeMonitor-struct"></a>GVolumeMonitor</h3><a class="indexterm" name="id3212535"></a><pre class="programlisting">typedef struct _GVolumeMonitor GVolumeMonitor;</pre><p>A Volume Monitor that watches for volume events.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3212561"></a><h3><a name="G-VOLUME-MONITOR-EXTENSION-POINT-NAME:CAPS"></a>G_VOLUME_MONITOR_EXTENSION_POINT_NAME</h3><a class="indexterm" name="id3212572"></a><pre class="programlisting">#define G_VOLUME_MONITOR_EXTENSION_POINT_NAME "gio-volume-monitor"</pre><p>Extension point for volume monitor functionality.See Extending GIO.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3209593"></a><h3><a name="g-volume-monitor-get"></a>g_volume_monitor_get ()</h3><a class="indexterm" name="id3209605"></a><pre class="programlisting"><a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a>* g_volume_monitor_get (void);</pre><p>Gets the volume monitor used by gio.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a reference to the <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a> used by gio. Call <ahref="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when done with it.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3209661"></a><h3><a name="g-volume-monitor-get-connected-drives"></a>g_volume_monitor_get_connected_drives ()</h3><a class="indexterm" name="id3209675"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a>* g_volume_monitor_get_connected_drives (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor);</pre><p>Gets a list of drives connected to the system.</p><p>The returned list should be freed with <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>, afterits elements have been unreffed with <ahref="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</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_monitor</code></em> :</span></p></td><td> a <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of connected <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a>s</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3209785"></a><h3><a name="g-volume-monitor-get-volumes"></a>g_volume_monitor_get_volumes ()</h3><a class="indexterm" name="id3209798"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a>* g_volume_monitor_get_volumes (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor);</pre><p>Gets a list of the volumes on the system.</p><p>The returned list should be freed with <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>, afterits elements have been unreffed with <ahref="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</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_monitor</code></em> :</span></p></td><td> a <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>s.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3218347"></a><h3><a name="g-volume-monitor-get-mounts"></a>g_volume_monitor_get_mounts ()</h3><a class="indexterm" name="id3218357"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?