1
<refentry id="ThunarVfsVolume">
3
<refentrytitle role="top_of_page" id="ThunarVfsVolume.top_of_page">ThunarVfsVolume</refentrytitle>
4
<manvolnum>3</manvolnum>
5
<refmiscinfo>THUNAR-VFS Library</refmiscinfo>
9
<refname>ThunarVfsVolume</refname>
10
<refpurpose></refpurpose>
11
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
14
<refsynopsisdiv id="ThunarVfsVolume.synopsis" role="synopsis">
15
<title role="synopsis.title">Synopsis</title>
19
#include <thunar-vfs/thunar-vfs.h>
21
enum <link linkend="ThunarVfsVolumeKind">ThunarVfsVolumeKind</link>;
22
enum <link linkend="ThunarVfsVolumeStatus">ThunarVfsVolumeStatus</link>;
23
<link linkend="ThunarVfsVolume-struct">ThunarVfsVolume</link>;
24
<link linkend="ThunarVfsVolumeKind">ThunarVfsVolumeKind</link> <link linkend="thunar-vfs-volume-get-kind">thunar_vfs_volume_get_kind</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);
25
const <link linkend="gchar">gchar</link>* <link linkend="thunar-vfs-volume-get-name">thunar_vfs_volume_get_name</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);
26
<link linkend="ThunarVfsVolumeStatus">ThunarVfsVolumeStatus</link> <link linkend="thunar-vfs-volume-get-status">thunar_vfs_volume_get_status</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);
27
<link linkend="ThunarVfsPath">ThunarVfsPath</link>* <link linkend="thunar-vfs-volume-get-mount-point">thunar_vfs_volume_get_mount_point</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);
28
<link linkend="gboolean">gboolean</link> <link linkend="thunar-vfs-volume-is-mounted">thunar_vfs_volume_is_mounted</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);
29
<link linkend="gboolean">gboolean</link> <link linkend="thunar-vfs-volume-is-present">thunar_vfs_volume_is_present</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);
30
<link linkend="gboolean">gboolean</link> <link linkend="thunar-vfs-volume-is-ejectable">thunar_vfs_volume_is_ejectable</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);
31
<link linkend="gboolean">gboolean</link> <link linkend="thunar-vfs-volume-is-removable">thunar_vfs_volume_is_removable</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);
32
const <link linkend="gchar">gchar</link>* <link linkend="thunar-vfs-volume-lookup-icon-name">thunar_vfs_volume_lookup_icon_name</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
33
<link linkend="GtkIconTheme">GtkIconTheme</link> *icon_theme);
34
<link linkend="gboolean">gboolean</link> <link linkend="thunar-vfs-volume-eject">thunar_vfs_volume_eject</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
35
<link linkend="GtkWidget">GtkWidget</link> *window,
36
<link linkend="GError">GError</link> **error);
37
<link linkend="gboolean">gboolean</link> <link linkend="thunar-vfs-volume-mount">thunar_vfs_volume_mount</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
38
<link linkend="GtkWidget">GtkWidget</link> *window,
39
<link linkend="GError">GError</link> **error);
40
<link linkend="gboolean">gboolean</link> <link linkend="thunar-vfs-volume-unmount">thunar_vfs_volume_unmount</link> (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
41
<link linkend="GtkWidget">GtkWidget</link> *window,
42
<link linkend="GError">GError</link> **error);
46
<refsect1 id="ThunarVfsVolume.object-hierarchy" role="object_hierarchy">
47
<title role="object_hierarchy.title">Object Hierarchy</title>
49
<link linkend="GObject">GObject</link>
60
<refsect1 id="ThunarVfsVolume.signals" role="signal_proto">
61
<title role="signal_proto.title">Signals</title>
63
"<link linkend="ThunarVfsVolume-changed">changed</link>" : Run Last
64
"<link linkend="ThunarVfsVolume-mounted">mounted</link>" : Run Last
65
"<link linkend="ThunarVfsVolume-pre-unmount">pre-unmount</link>" : Run Last
66
"<link linkend="ThunarVfsVolume-unmounted">unmounted</link>" : Run Last
71
<refsect1 id="ThunarVfsVolume.description" role="desc">
72
<title role="desc.title">Description</title>
78
<refsect1 id="ThunarVfsVolume.details" role="details">
79
<title role="details.title">Details</title>
80
<refsect2 id="ThunarVfsVolumeKind" role="enum">
81
<title>enum ThunarVfsVolumeKind</title>
82
<indexterm zone="ThunarVfsVolumeKind"><primary>ThunarVfsVolumeKind</primary></indexterm><programlisting>typedef enum
84
THUNAR_VFS_VOLUME_KIND_UNKNOWN,
85
THUNAR_VFS_VOLUME_KIND_CDROM,
86
THUNAR_VFS_VOLUME_KIND_CDR,
87
THUNAR_VFS_VOLUME_KIND_CDRW,
88
THUNAR_VFS_VOLUME_KIND_DVDROM,
89
THUNAR_VFS_VOLUME_KIND_DVDRAM,
90
THUNAR_VFS_VOLUME_KIND_DVDR,
91
THUNAR_VFS_VOLUME_KIND_DVDRW,
92
THUNAR_VFS_VOLUME_KIND_DVDPLUSR,
93
THUNAR_VFS_VOLUME_KIND_DVDPLUSRW,
94
THUNAR_VFS_VOLUME_KIND_FLOPPY,
95
THUNAR_VFS_VOLUME_KIND_HARDDISK,
96
THUNAR_VFS_VOLUME_KIND_USBSTICK,
97
THUNAR_VFS_VOLUME_KIND_AUDIO_PLAYER,
98
THUNAR_VFS_VOLUME_KIND_AUDIO_CD,
99
THUNAR_VFS_VOLUME_KIND_MEMORY_CARD,
100
THUNAR_VFS_VOLUME_KIND_REMOVABLE_DISK,
101
} ThunarVfsVolumeKind;
104
Describes the type of a VFS volume.</para>
107
</para><variablelist role="enum">
108
<varlistentry id="THUNAR-VFS-VOLUME-KIND-UNKNOWN:CAPS" role="constant">
109
<term><literal>THUNAR_VFS_VOLUME_KIND_UNKNOWN</literal></term>
110
<listitem><simpara> Unknown volume.
111
</simpara></listitem>
113
<varlistentry id="THUNAR-VFS-VOLUME-KIND-CDROM:CAPS" role="constant">
114
<term><literal>THUNAR_VFS_VOLUME_KIND_CDROM</literal></term>
115
<listitem><simpara> CD-ROMs.
116
</simpara></listitem>
118
<varlistentry id="THUNAR-VFS-VOLUME-KIND-CDR:CAPS" role="constant">
119
<term><literal>THUNAR_VFS_VOLUME_KIND_CDR</literal></term>
120
<listitem><simpara> CD-Rs.
121
</simpara></listitem>
123
<varlistentry id="THUNAR-VFS-VOLUME-KIND-CDRW:CAPS" role="constant">
124
<term><literal>THUNAR_VFS_VOLUME_KIND_CDRW</literal></term>
125
<listitem><simpara> CD-RWs.
126
</simpara></listitem>
128
<varlistentry id="THUNAR-VFS-VOLUME-KIND-DVDROM:CAPS" role="constant">
129
<term><literal>THUNAR_VFS_VOLUME_KIND_DVDROM</literal></term>
130
<listitem><simpara> DVD-ROMs.
131
</simpara></listitem>
133
<varlistentry id="THUNAR-VFS-VOLUME-KIND-DVDRAM:CAPS" role="constant">
134
<term><literal>THUNAR_VFS_VOLUME_KIND_DVDRAM</literal></term>
135
<listitem><simpara> DVD-RAMs.
136
</simpara></listitem>
138
<varlistentry id="THUNAR-VFS-VOLUME-KIND-DVDR:CAPS" role="constant">
139
<term><literal>THUNAR_VFS_VOLUME_KIND_DVDR</literal></term>
140
<listitem><simpara> DVD-Rs.
141
</simpara></listitem>
143
<varlistentry id="THUNAR-VFS-VOLUME-KIND-DVDRW:CAPS" role="constant">
144
<term><literal>THUNAR_VFS_VOLUME_KIND_DVDRW</literal></term>
145
<listitem><simpara> DVD-RWs.
146
</simpara></listitem>
148
<varlistentry id="THUNAR-VFS-VOLUME-KIND-DVDPLUSR:CAPS" role="constant">
149
<term><literal>THUNAR_VFS_VOLUME_KIND_DVDPLUSR</literal></term>
150
<listitem><simpara> DVD+Rs.
151
</simpara></listitem>
153
<varlistentry id="THUNAR-VFS-VOLUME-KIND-DVDPLUSRW:CAPS" role="constant">
154
<term><literal>THUNAR_VFS_VOLUME_KIND_DVDPLUSRW</literal></term>
155
<listitem><simpara> DVD+RWs.
156
</simpara></listitem>
158
<varlistentry id="THUNAR-VFS-VOLUME-KIND-FLOPPY:CAPS" role="constant">
159
<term><literal>THUNAR_VFS_VOLUME_KIND_FLOPPY</literal></term>
160
<listitem><simpara> Floppy drives.
161
</simpara></listitem>
163
<varlistentry id="THUNAR-VFS-VOLUME-KIND-HARDDISK:CAPS" role="constant">
164
<term><literal>THUNAR_VFS_VOLUME_KIND_HARDDISK</literal></term>
165
<listitem><simpara> Hard disk drives.
166
</simpara></listitem>
168
<varlistentry id="THUNAR-VFS-VOLUME-KIND-USBSTICK:CAPS" role="constant">
169
<term><literal>THUNAR_VFS_VOLUME_KIND_USBSTICK</literal></term>
170
<listitem><simpara> USB sticks.
171
</simpara></listitem>
173
<varlistentry id="THUNAR-VFS-VOLUME-KIND-AUDIO-PLAYER:CAPS" role="constant">
174
<term><literal>THUNAR_VFS_VOLUME_KIND_AUDIO_PLAYER</literal></term>
175
<listitem><simpara> Portable audio players (i.e. iPod).
176
</simpara></listitem>
178
<varlistentry id="THUNAR-VFS-VOLUME-KIND-AUDIO-CD:CAPS" role="constant">
179
<term><literal>THUNAR_VFS_VOLUME_KIND_AUDIO_CD</literal></term>
180
<listitem><simpara> Audio CDs.
181
</simpara></listitem>
183
<varlistentry id="THUNAR-VFS-VOLUME-KIND-MEMORY-CARD:CAPS" role="constant">
184
<term><literal>THUNAR_VFS_VOLUME_KIND_MEMORY_CARD</literal></term>
185
<listitem><simpara> Memory cards.
186
</simpara></listitem>
188
<varlistentry id="THUNAR-VFS-VOLUME-KIND-REMOVABLE-DISK:CAPS" role="constant">
189
<term><literal>THUNAR_VFS_VOLUME_KIND_REMOVABLE_DISK</literal></term>
190
<listitem><simpara> Other removable disks.
191
</simpara></listitem>
193
</variablelist></refsect2>
194
<refsect2 id="ThunarVfsVolumeStatus" role="enum">
195
<title>enum ThunarVfsVolumeStatus</title>
196
<indexterm zone="ThunarVfsVolumeStatus"><primary>ThunarVfsVolumeStatus</primary></indexterm><programlisting>typedef enum /*< flags >*/
198
THUNAR_VFS_VOLUME_STATUS_MOUNTED = 1 << 0,
199
THUNAR_VFS_VOLUME_STATUS_PRESENT = 1 << 1,
200
THUNAR_VFS_VOLUME_STATUS_MOUNTABLE = 1 << 2,
201
} ThunarVfsVolumeStatus;
204
Describes the current status of a VFS volume.</para>
207
</para><variablelist role="enum">
208
</variablelist></refsect2>
209
<refsect2 id="ThunarVfsVolume-struct" role="struct">
210
<title>ThunarVfsVolume</title>
211
<indexterm zone="ThunarVfsVolume-struct"><primary>ThunarVfsVolume</primary></indexterm><programlisting>typedef struct _ThunarVfsVolume ThunarVfsVolume;</programlisting>
215
<refsect2 id="thunar-vfs-volume-get-kind" role="function">
216
<title>thunar_vfs_volume_get_kind ()</title>
217
<indexterm zone="thunar-vfs-volume-get-kind"><primary>thunar_vfs_volume_get_kind</primary></indexterm><programlisting><link linkend="ThunarVfsVolumeKind">ThunarVfsVolumeKind</link> thunar_vfs_volume_get_kind (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);</programlisting>
219
Returns the kind of drive/device representd by <parameter>volume</parameter>.</para>
222
</para><variablelist role="params">
223
<varlistentry><term><parameter>volume</parameter> :</term>
224
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
225
</simpara></listitem></varlistentry>
226
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the kind of <parameter>volume</parameter>.
227
</simpara></listitem></varlistentry>
228
</variablelist></refsect2>
229
<refsect2 id="thunar-vfs-volume-get-name" role="function">
230
<title>thunar_vfs_volume_get_name ()</title>
231
<indexterm zone="thunar-vfs-volume-get-name"><primary>thunar_vfs_volume_get_name</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link>* thunar_vfs_volume_get_name (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);</programlisting>
233
Returns the name of the <parameter>volume</parameter>. This is usually the
234
name of the device or the label of the medium, if a
235
medium is present.</para>
238
</para><variablelist role="params">
239
<varlistentry><term><parameter>volume</parameter> :</term>
240
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
241
</simpara></listitem></varlistentry>
242
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the name of <parameter>volume</parameter>.
243
</simpara></listitem></varlistentry>
244
</variablelist></refsect2>
245
<refsect2 id="thunar-vfs-volume-get-status" role="function">
246
<title>thunar_vfs_volume_get_status ()</title>
247
<indexterm zone="thunar-vfs-volume-get-status"><primary>thunar_vfs_volume_get_status</primary></indexterm><programlisting><link linkend="ThunarVfsVolumeStatus">ThunarVfsVolumeStatus</link> thunar_vfs_volume_get_status (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);</programlisting>
249
Determines the current status of the <parameter>volume</parameter>, e.g. whether
250
or not the <parameter>volume</parameter> is currently mounted, or whether a
251
medium is present.</para>
254
</para><variablelist role="params">
255
<varlistentry><term><parameter>volume</parameter> :</term>
256
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
257
</simpara></listitem></varlistentry>
258
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the status for <parameter>volume</parameter>.
259
</simpara></listitem></varlistentry>
260
</variablelist></refsect2>
261
<refsect2 id="thunar-vfs-volume-get-mount-point" role="function">
262
<title>thunar_vfs_volume_get_mount_point ()</title>
263
<indexterm zone="thunar-vfs-volume-get-mount-point"><primary>thunar_vfs_volume_get_mount_point</primary></indexterm><programlisting><link linkend="ThunarVfsPath">ThunarVfsPath</link>* thunar_vfs_volume_get_mount_point (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);</programlisting>
265
Determines the current mount point for <parameter>volume</parameter>. If <parameter>volume</parameter>
266
is mounted this will be the location at which it is currently
267
mounted. Else it will be the location where <parameter>volume</parameter> is most
268
probably being mounted. Note that this location may change
269
during a call to <link linkend="thunar-vfs-volume-mount"><function>thunar_vfs_volume_mount()</function></link>, so be sure to
270
check the mount point after the call to <link linkend="thunar-vfs-volume-mount"><function>thunar_vfs_volume_mount()</function></link>.</para>
273
</para><variablelist role="params">
274
<varlistentry><term><parameter>volume</parameter> :</term>
275
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
276
</simpara></listitem></varlistentry>
277
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the path which identifies the path where
278
the volume will be mounted (or is already
280
</simpara></listitem></varlistentry>
281
</variablelist></refsect2>
282
<refsect2 id="thunar-vfs-volume-is-mounted" role="function">
283
<title>thunar_vfs_volume_is_mounted ()</title>
284
<indexterm zone="thunar-vfs-volume-is-mounted"><primary>thunar_vfs_volume_is_mounted</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> thunar_vfs_volume_is_mounted (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);</programlisting>
286
Determines whether <parameter>volume</parameter> is currently mounted into the
287
filesystem hierarchy.</para>
290
</para><variablelist role="params">
291
<varlistentry><term><parameter>volume</parameter> :</term>
292
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
293
</simpara></listitem></varlistentry>
294
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if <parameter>volume</parameter> is mounted, else <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>.
295
</simpara></listitem></varlistentry>
296
</variablelist></refsect2>
297
<refsect2 id="thunar-vfs-volume-is-present" role="function">
298
<title>thunar_vfs_volume_is_present ()</title>
299
<indexterm zone="thunar-vfs-volume-is-present"><primary>thunar_vfs_volume_is_present</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> thunar_vfs_volume_is_present (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);</programlisting>
301
Determines whether a medium is currently inserted for
302
<parameter>volume</parameter>, e.g. for a CD-ROM drive, this will be <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>
303
only if a disc is present in the slot.</para>
306
</para><variablelist role="params">
307
<varlistentry><term><parameter>volume</parameter> :</term>
308
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
309
</simpara></listitem></varlistentry>
310
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if <parameter>volume</parameter> is present, else <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>.
311
</simpara></listitem></varlistentry>
312
</variablelist></refsect2>
313
<refsect2 id="thunar-vfs-volume-is-ejectable" role="function">
314
<title>thunar_vfs_volume_is_ejectable ()</title>
315
<indexterm zone="thunar-vfs-volume-is-ejectable"><primary>thunar_vfs_volume_is_ejectable</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> thunar_vfs_volume_is_ejectable (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);</programlisting>
317
Determines whether the current user is allowed to eject the medium
318
for <parameter>volume</parameter>. This method should return <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> only if a medium is
319
present and the <parameter>volume</parameter> is removable. Still, there's no warranty
320
that a call to <link linkend="thunar-vfs-volume-eject"><function>thunar_vfs_volume_eject()</function></link> will succeed.</para>
323
</para><variablelist role="params">
324
<varlistentry><term><parameter>volume</parameter> :</term>
325
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
326
</simpara></listitem></varlistentry>
327
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> whether the medium for <parameter>volume</parameter> can be ejected.
328
</simpara></listitem></varlistentry>
329
</variablelist></refsect2>
330
<refsect2 id="thunar-vfs-volume-is-removable" role="function">
331
<title>thunar_vfs_volume_is_removable ()</title>
332
<indexterm zone="thunar-vfs-volume-is-removable"><primary>thunar_vfs_volume_is_removable</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> thunar_vfs_volume_is_removable (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume);</programlisting>
334
Determines whether <parameter>volume</parameter> is a removable device, for example
335
a CD-ROM, an USB stick or a floppy drive.</para>
338
</para><variablelist role="params">
339
<varlistentry><term><parameter>volume</parameter> :</term>
340
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
341
</simpara></listitem></varlistentry>
342
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if <parameter>volume</parameter> is a removable device, else <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>.
343
</simpara></listitem></varlistentry>
344
</variablelist></refsect2>
345
<refsect2 id="thunar-vfs-volume-lookup-icon-name" role="function">
346
<title>thunar_vfs_volume_lookup_icon_name ()</title>
347
<indexterm zone="thunar-vfs-volume-lookup-icon-name"><primary>thunar_vfs_volume_lookup_icon_name</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link>* thunar_vfs_volume_lookup_icon_name (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
348
<link linkend="GtkIconTheme">GtkIconTheme</link> *icon_theme);</programlisting>
350
Tries to find a suitable icon for <parameter>volume</parameter> in the given <parameter>icon_theme</parameter> and
351
returns its name. If no suitable icon is found in <parameter>icon_theme</parameter>, then
352
a fallback icon name will be returned. This way you can always count
353
on this method to return a valid string.</para>
356
</para><variablelist role="params">
357
<varlistentry><term><parameter>volume</parameter> :</term>
358
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
359
</simpara></listitem></varlistentry>
360
<varlistentry><term><parameter>icon_theme</parameter> :</term>
361
<listitem><simpara> a <link linkend="GtkIconTheme"><type>GtkIconTheme</type></link> instance.
362
</simpara></listitem></varlistentry>
363
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the icon name.
364
</simpara></listitem></varlistentry>
365
</variablelist></refsect2>
366
<refsect2 id="thunar-vfs-volume-eject" role="function">
367
<title>thunar_vfs_volume_eject ()</title>
368
<indexterm zone="thunar-vfs-volume-eject"><primary>thunar_vfs_volume_eject</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> thunar_vfs_volume_eject (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
369
<link linkend="GtkWidget">GtkWidget</link> *window,
370
<link linkend="GError">GError</link> **error);</programlisting>
372
Tries to eject the medium present for <parameter>volume</parameter> (or atleast to
373
unmount the <parameter>volume</parameter>).
376
If ejecting <parameter>volume</parameter> requires some complex user interaction
377
(basicly everything else than displaying an error dialog), it
378
should popup a modal dialog on <parameter>window</parameter> (or on the default
379
<link linkend="GdkScreen"><type>GdkScreen</type></link> if <parameter>window</parameter> is <link linkend="NULL:CAPS"><literal>NULL</literal></link>). But be aware, that if an
380
implementation of <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> performs user interaction
381
during a call to this method, it must implement this method
382
in a reentrant fashion!</para>
385
</para><variablelist role="params">
386
<varlistentry><term><parameter>volume</parameter> :</term>
387
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
388
</simpara></listitem></varlistentry>
389
<varlistentry><term><parameter>window</parameter> :</term>
390
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link> or <link linkend="NULL:CAPS"><literal>NULL</literal></link>.
391
</simpara></listitem></varlistentry>
392
<varlistentry><term><parameter>error</parameter> :</term>
393
<listitem><simpara> return location for errors or <link linkend="NULL:CAPS"><literal>NULL</literal></link>.
394
</simpara></listitem></varlistentry>
395
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the medium for <parameter>volume</parameter> was successfully
396
ejected (or atleast the <parameter>volume</parameter> was unmounted
397
successfully), else <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>.
398
</simpara></listitem></varlistentry>
399
</variablelist></refsect2>
400
<refsect2 id="thunar-vfs-volume-mount" role="function">
401
<title>thunar_vfs_volume_mount ()</title>
402
<indexterm zone="thunar-vfs-volume-mount"><primary>thunar_vfs_volume_mount</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> thunar_vfs_volume_mount (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
403
<link linkend="GtkWidget">GtkWidget</link> *window,
404
<link linkend="GError">GError</link> **error);</programlisting>
406
Tries to mount <parameter>volume</parameter>. Will return <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if either <parameter>volume</parameter>
407
was already mounted previously to this method invokation or
408
<parameter>volume</parameter> was successfully mounted now.
411
If mounting <parameter>volume</parameter> requires some complex user interaction
412
(basicly everything else than displaying an error dialog), it
413
should popup a modal dialog on <parameter>window</parameter> (or on the default
414
<link linkend="GdkScreen"><type>GdkScreen</type></link> if <parameter>window</parameter> is <link linkend="NULL:CAPS"><literal>NULL</literal></link>). But be aware, that if an
415
implementation of <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> performs user interaction
416
during a call to this method, it must implement this method
417
in a reentrant fashion!</para>
420
</para><variablelist role="params">
421
<varlistentry><term><parameter>volume</parameter> :</term>
422
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
423
</simpara></listitem></varlistentry>
424
<varlistentry><term><parameter>window</parameter> :</term>
425
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link> or <link linkend="NULL:CAPS"><literal>NULL</literal></link>.
426
</simpara></listitem></varlistentry>
427
<varlistentry><term><parameter>error</parameter> :</term>
428
<listitem><simpara> return location for errors or <link linkend="NULL:CAPS"><literal>NULL</literal></link>.
429
</simpara></listitem></varlistentry>
430
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the medium for <parameter>volume</parameter> was successfully
431
mounted or was already mounted previously, else
432
<link linkend="FALSE:CAPS"><literal>FALSE</literal></link>.
433
</simpara></listitem></varlistentry>
434
</variablelist></refsect2>
435
<refsect2 id="thunar-vfs-volume-unmount" role="function">
436
<title>thunar_vfs_volume_unmount ()</title>
437
<indexterm zone="thunar-vfs-volume-unmount"><primary>thunar_vfs_volume_unmount</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> thunar_vfs_volume_unmount (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
438
<link linkend="GtkWidget">GtkWidget</link> *window,
439
<link linkend="GError">GError</link> **error);</programlisting>
441
Tries to unmount <parameter>volume</parameter>. Will return <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if either <parameter>volume</parameter>
442
was already unmounted previously to this method invokation or
443
<parameter>volume</parameter> was successfully unmounted now.
446
If unmounting <parameter>volume</parameter> requires some complex user interaction
447
(basicly everything else than displaying an error dialog), it
448
should popup a modal dialog on <parameter>window</parameter> (or on the default
449
<link linkend="GdkScreen"><type>GdkScreen</type></link> if <parameter>window</parameter> is <link linkend="NULL:CAPS"><literal>NULL</literal></link>). But be aware, that if an
450
implementation of <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> performs user interaction
451
during a call to this method, it must implement this method
452
in a reentrant fashion!</para>
455
</para><variablelist role="params">
456
<varlistentry><term><parameter>volume</parameter> :</term>
457
<listitem><simpara> a <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
458
</simpara></listitem></varlistentry>
459
<varlistentry><term><parameter>window</parameter> :</term>
460
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link> or <link linkend="NULL:CAPS"><literal>NULL</literal></link>.
461
</simpara></listitem></varlistentry>
462
<varlistentry><term><parameter>error</parameter> :</term>
463
<listitem><simpara> return location for errors or <link linkend="NULL:CAPS"><literal>NULL</literal></link>.
464
</simpara></listitem></varlistentry>
465
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the medium for <parameter>volume</parameter> was successfully
466
unmounted or wasn't mounted previously, else
467
<link linkend="FALSE:CAPS"><literal>FALSE</literal></link>.
468
</simpara></listitem></varlistentry>
469
</variablelist></refsect2>
473
<refsect1 id="ThunarVfsVolume.signal-details" role="signals">
474
<title role="signals.title">Signal Details</title>
475
<refsect2 id="ThunarVfsVolume-changed"><title>The <literal>"changed"</literal> signal</title>
476
<indexterm zone="ThunarVfsVolume-changed"><primary>ThunarVfsVolume::changed</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
477
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
479
Emitted whenever the state of <parameter>volume</parameter> changed.</para>
482
</para><variablelist role="params">
483
<varlistentry><term><parameter>volume</parameter> :</term>
484
<listitem><simpara> the <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
485
</simpara></listitem></varlistentry>
486
<varlistentry><term><parameter>user_data</parameter> :</term>
487
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
488
</variablelist></refsect2><refsect2 id="ThunarVfsVolume-mounted"><title>The <literal>"mounted"</literal> signal</title>
489
<indexterm zone="ThunarVfsVolume-mounted"><primary>ThunarVfsVolume::mounted</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
490
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
492
Emitted by <parameter>volume</parameter> after a successfull mount
496
</para><variablelist role="params">
497
<varlistentry><term><parameter>volume</parameter> :</term>
498
<listitem><simpara> the <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
499
</simpara></listitem></varlistentry>
500
<varlistentry><term><parameter>user_data</parameter> :</term>
501
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
502
</variablelist></refsect2><refsect2 id="ThunarVfsVolume-pre-unmount"><title>The <literal>"pre-unmount"</literal> signal</title>
503
<indexterm zone="ThunarVfsVolume-pre-unmount"><primary>ThunarVfsVolume::pre-unmount</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
504
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
506
Emitted by <parameter>volume</parameter> right before an attempt
507
is made to unmount the <parameter>volume</parameter>.</para>
510
</para><variablelist role="params">
511
<varlistentry><term><parameter>volume</parameter> :</term>
512
<listitem><simpara> the <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
513
</simpara></listitem></varlistentry>
514
<varlistentry><term><parameter>user_data</parameter> :</term>
515
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
516
</variablelist></refsect2><refsect2 id="ThunarVfsVolume-unmounted"><title>The <literal>"unmounted"</literal> signal</title>
517
<indexterm zone="ThunarVfsVolume-unmounted"><primary>ThunarVfsVolume::unmounted</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="ThunarVfsVolume">ThunarVfsVolume</link> *volume,
518
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
520
Emitted by <parameter>volume</parameter> right after the <parameter>volume</parameter>
521
was successfully unmounted.</para>
524
</para><variablelist role="params">
525
<varlistentry><term><parameter>volume</parameter> :</term>
526
<listitem><simpara> the <link linkend="ThunarVfsVolume"><type>ThunarVfsVolume</type></link> instance.
527
</simpara></listitem></varlistentry>
528
<varlistentry><term><parameter>user_data</parameter> :</term>
529
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
530
</variablelist></refsect2>