84
84
<td class="function_type">
85
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
85
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
87
87
<td class="function_name">
88
88
<a class="link" href="GMountOperation.html#g-mount-operation-get-anonymous" title="g_mount_operation_get_anonymous ()">g_mount_operation_get_anonymous</a> <span class="c_punctuation">()</span>
167
<td class="property_type"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
167
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
168
168
<td class="property_name"><a class="link" href="GMountOperation.html#GMountOperation--anonymous" title="The “anonymous” property">anonymous</a></td>
169
169
<td class="property_flags">Read / Write</td>
172
<td class="property_type"><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
172
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
173
173
<td class="property_name"><a class="link" href="GMountOperation.html#GMountOperation--choice" title="The “choice” property">choice</a></td>
174
174
<td class="property_flags">Read / Write</td>
177
177
<td class="property_type">
178
<a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
178
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
179
179
<td class="property_name"><a class="link" href="GMountOperation.html#GMountOperation--domain" title="The “domain” property">domain</a></td>
180
180
<td class="property_flags">Read / Write</td>
183
183
<td class="property_type">
184
<a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
184
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
185
185
<td class="property_name"><a class="link" href="GMountOperation.html#GMountOperation--password" title="The “password” property">password</a></td>
186
186
<td class="property_flags">Read / Write</td>
194
194
<td class="property_type">
195
<a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
195
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
196
196
<td class="property_name"><a class="link" href="GMountOperation.html#GMountOperation--username" title="The “username” property">username</a></td>
197
197
<td class="property_flags">Read / Write</td>
212
212
<td class="signal_type"><span class="returnvalue">void</span></td>
213
213
<td class="signal_name"><a class="link" href="GMountOperation.html#GMountOperation-aborted" title="The “aborted” signal">aborted</a></td>
214
<td class="signal_flags">Run Last</td>
214
<td class="signal_flags"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
217
217
<td class="signal_type"><span class="returnvalue">void</span></td>
218
218
<td class="signal_name"><a class="link" href="GMountOperation.html#GMountOperation-ask-password" title="The “ask-password” signal">ask-password</a></td>
219
<td class="signal_flags">Run Last</td>
219
<td class="signal_flags"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
222
222
<td class="signal_type"><span class="returnvalue">void</span></td>
223
223
<td class="signal_name"><a class="link" href="GMountOperation.html#GMountOperation-ask-question" title="The “ask-question” signal">ask-question</a></td>
224
<td class="signal_flags">Run Last</td>
224
<td class="signal_flags"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
227
227
<td class="signal_type"><span class="returnvalue">void</span></td>
228
228
<td class="signal_name"><a class="link" href="GMountOperation.html#GMountOperation-reply" title="The “reply” signal">reply</a></td>
229
<td class="signal_flags">Run Last</td>
229
<td class="signal_flags"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
232
232
<td class="signal_type"><span class="returnvalue">void</span></td>
233
233
<td class="signal_name"><a class="link" href="GMountOperation.html#GMountOperation-show-processes" title="The “show-processes” signal">show-processes</a></td>
234
<td class="signal_flags">Run Last</td>
234
<td class="signal_flags"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
237
237
<td class="signal_type"><span class="returnvalue">void</span></td>
238
238
<td class="signal_name"><a class="link" href="GMountOperation.html#GMountOperation-show-unmount-progress" title="The “show-unmount-progress” signal">show-unmount-progress</a></td>
239
<td class="signal_flags">Run Last</td>
239
<td class="signal_flags"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
271
271
<div class="refsect1">
272
272
<a name="GMountOperation.object-hierarchy"></a><h2>Object Hierarchy</h2>
273
<pre class="screen"> <a href="/home/desrt/.cache/jhbuild/install/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GFlags</a>
273
<pre class="screen"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Enumeration-and-Flag-Types.html">GFlags</a>
274
274
<span class="lineart">╰──</span> GAskPasswordFlags
275
<a href="../gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
275
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
276
276
<span class="lineart">╰──</span> GMountOperation
293
293
<a class="link" href="GDrive.html#g-drive-stop" title="g_drive_stop ()"><code class="function">g_drive_stop()</code></a>.</p>
294
294
<p>Users should instantiate a subclass of this that implements all the
295
295
various callbacks to show the required dialogs, such as
296
<span class="type">GtkMountOperation</span>. If no user interaction is desired (for example
297
when automounting filesystems at login time), usually <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> can be
296
<a href="http://developer.gnome.org/gtk2/gtk3-Filesystem-utilities.html#GtkMountOperation"><span class="type">GtkMountOperation</span></a>. If no user interaction is desired (for example
297
when automounting filesystems at login time), usually <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> can be
298
298
passed, see each method taking a <a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> for details.</p>
300
300
<div class="refsect1">
432
432
<div class="refsect2">
433
433
<a name="g-mount-operation-get-anonymous"></a><h3>g_mount_operation_get_anonymous ()</h3>
434
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
434
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
435
435
g_mount_operation_get_anonymous (<em class="parameter"><code><a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> *op</code></em>);</pre>
436
436
<p>Check to see whether the mount operation is being used
437
437
for an anonymous user.</p>
461
461
<a name="g-mount-operation-set-anonymous"></a><h3>g_mount_operation_set_anonymous ()</h3>
462
462
<pre class="programlisting"><span class="returnvalue">void</span>
463
463
g_mount_operation_set_anonymous (<em class="parameter"><code><a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> *op</code></em>,
464
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> anonymous</code></em>);</pre>
464
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> anonymous</code></em>);</pre>
465
465
<p>Sets the mount operation to use an anonymous user if <em class="parameter"><code>anonymous</code></em>
466
is <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.</p>
466
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.</p>
467
467
<div class="refsect3">
468
468
<a name="id-1.4.2.7.10.8.5"></a><h4>Parameters</h4>
469
469
<div class="informaltable"><table width="100%" border="0">
839
839
<a name="GMountOperation.property-details"></a><h2>Property Details</h2>
840
840
<div class="refsect2">
841
841
<a name="GMountOperation--anonymous"></a><h3>The <code class="literal">“anonymous”</code> property</h3>
842
<pre class="programlisting"> “anonymous” <a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
842
<pre class="programlisting"> “anonymous” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
843
843
<p>Whether to use an anonymous user when authenticating.</p>
844
844
<p>Flags: Read / Write</p>
845
845
<p>Default value: FALSE</p>
848
848
<div class="refsect2">
849
849
<a name="GMountOperation--choice"></a><h3>The <code class="literal">“choice”</code> property</h3>
850
<pre class="programlisting"> “choice” <a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
850
<pre class="programlisting"> “choice” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
851
851
<p>The index of the user's choice when a question is asked during the
853
853
mount operation. See the <a class="link" href="GMountOperation.html#GMountOperation-ask-question" title="The “ask-question” signal"><span class="type">“ask-question”</span></a> signal.</p>
859
859
<div class="refsect2">
860
860
<a name="GMountOperation--domain"></a><h3>The <code class="literal">“domain”</code> property</h3>
861
<pre class="programlisting"> “domain” <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
861
<pre class="programlisting"> “domain” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
862
862
<p>The domain to use for the mount operation.</p>
863
863
<p>Flags: Read / Write</p>
864
864
<p>Default value: NULL</p>
867
867
<div class="refsect2">
868
868
<a name="GMountOperation--password"></a><h3>The <code class="literal">“password”</code> property</h3>
869
<pre class="programlisting"> “password” <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
869
<pre class="programlisting"> “password” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
870
870
<p>The password that is used for authentication when carrying out
871
871
the mount operation.</p>
872
872
<p>Flags: Read / Write</p>
884
884
<div class="refsect2">
885
885
<a name="GMountOperation--username"></a><h3>The <code class="literal">“username”</code> property</h3>
886
<pre class="programlisting"> “username” <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
886
<pre class="programlisting"> “username” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
887
887
<p>The user name that is used for authentication when carrying out
888
888
the mount operation.</p>
889
889
<p>Flags: Read / Write</p>
896
896
<a name="GMountOperation-aborted"></a><h3>The <code class="literal">“aborted”</code> signal</h3>
897
897
<pre class="programlisting"><span class="returnvalue">void</span>
898
898
user_function (<a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> *arg0,
899
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
899
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
900
900
<p>Emitted by the backend when e.g. a device becomes unavailable
901
901
while a mount operation is in progress.</p>
902
902
<p>Implementations of GMountOperation should handle this signal
924
924
<a name="GMountOperation-ask-password"></a><h3>The <code class="literal">“ask-password”</code> signal</h3>
925
925
<pre class="programlisting"><span class="returnvalue">void</span>
926
926
user_function (<a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> *op,
927
<a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message,
928
<a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *default_user,
929
<a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *default_domain,
927
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message,
928
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *default_user,
929
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *default_domain,
930
930
<a class="link" href="GMountOperation.html#GAskPasswordFlags" title="enum GAskPasswordFlags"><span class="type">GAskPasswordFlags</span></a> flags,
931
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
931
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
932
932
<p>Emitted when a mount operation asks the user for a password.</p>
933
933
<p>If the message contains a line break, the first line should be
934
934
presented as a heading. For example, it may be used as the
935
primary text in a <span class="type">GtkMessageDialog</span>.</p>
935
primary text in a <a href="http://developer.gnome.org/gtk2/GtkMessageDialog.html"><span class="type">GtkMessageDialog</span></a>.</p>
936
936
<div class="refsect3">
937
937
<a name="id-1.4.2.7.13.3.6"></a><h4>Parameters</h4>
938
938
<div class="informaltable"><table width="100%" border="0">
978
<p>Flags: Run Last</p>
978
<p>Flags: <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
981
981
<div class="refsect2">
982
982
<a name="GMountOperation-ask-question"></a><h3>The <code class="literal">“ask-question”</code> signal</h3>
983
983
<pre class="programlisting"><span class="returnvalue">void</span>
984
984
user_function (<a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> *op,
985
<a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message,
986
<a href="../gobject/gobject-Boxed-Types.html#GStrv"><span class="type">GStrv</span></a> choices,
987
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
985
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message,
986
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#GStrv"><span class="type">GStrv</span></a> choices,
987
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
988
988
<p>Emitted when asking the user a question and gives a list of
989
989
choices for the user to choose from.</p>
990
990
<p>If the message contains a line break, the first line should be
991
991
presented as a heading. For example, it may be used as the
992
primary text in a <span class="type">GtkMessageDialog</span>.</p>
992
primary text in a <a href="http://developer.gnome.org/gtk2/GtkMessageDialog.html"><span class="type">GtkMessageDialog</span></a>.</p>
993
993
<div class="refsect3">
994
994
<a name="id-1.4.2.7.13.4.6"></a><h4>Parameters</h4>
995
995
<div class="informaltable"><table width="100%" border="0">
1030
1030
<pre class="programlisting"><span class="returnvalue">void</span>
1031
1031
user_function (<a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> *op,
1032
1032
<a class="link" href="GMountOperation.html#GMountOperationResult" title="enum GMountOperationResult"><span class="type">GMountOperationResult</span></a> result,
1033
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
1033
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
1034
1034
<p>Emitted when the user has replied to the mount operation.</p>
1035
1035
<div class="refsect3">
1036
1036
<a name="id-1.4.2.7.13.5.5"></a><h4>Parameters</h4>
1062
<p>Flags: Run Last</p>
1062
<p>Flags: <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
1065
1065
<div class="refsect2">
1066
1066
<a name="GMountOperation-show-processes"></a><h3>The <code class="literal">“show-processes”</code> signal</h3>
1067
1067
<pre class="programlisting"><span class="returnvalue">void</span>
1068
1068
user_function (<a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> *op,
1069
<a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message,
1070
<a href="../glib/glib-Arrays.html#GArray"><span class="type">GArray</span></a> *processes,
1071
<a href="../gobject/gobject-Boxed-Types.html#GStrv"><span class="type">GStrv</span></a> choices,
1072
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
1069
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message,
1070
<a href="http://library.gnome.org/devel/glib/unstable/glib-Arrays.html#GArray"><span class="type">GArray</span></a> *processes,
1071
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#GStrv"><span class="type">GStrv</span></a> choices,
1072
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
1073
1073
<p>Emitted when one or more processes are blocking an operation
1074
1074
e.g. unmounting/ejecting a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> or stopping a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a>.</p>
1075
1075
<p>Note that this signal may be emitted several times to update the
1079
1079
the user made).</p>
1080
1080
<p>If the message contains a line break, the first line should be
1081
1081
presented as a heading. For example, it may be used as the
1082
primary text in a <span class="type">GtkMessageDialog</span>.</p>
1082
primary text in a <a href="http://developer.gnome.org/gtk2/GtkMessageDialog.html"><span class="type">GtkMessageDialog</span></a>.</p>
1083
1083
<div class="refsect3">
1084
1084
<a name="id-1.4.2.7.13.6.7"></a><h4>Parameters</h4>
1085
1085
<div class="informaltable"><table width="100%" border="0">
1103
1103
<td class="parameter_name"><p>processes</p></td>
1104
<td class="parameter_description"><p> an array of <a href="../glib/glib-The-Main-Event-Loop.html#GPid"><span class="type">GPid</span></a> for processes
1104
<td class="parameter_description"><p> an array of <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GPid"><span class="type">GPid</span></a> for processes
1105
1105
blocking the operation. </p></td>
1106
1106
<td class="parameter_annotations"><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GPid]</span></td>
1126
1126
<a name="GMountOperation-show-unmount-progress"></a><h3>The <code class="literal">“show-unmount-progress”</code> signal</h3>
1127
1127
<pre class="programlisting"><span class="returnvalue">void</span>
1128
1128
user_function (<a class="link" href="GMountOperation.html" title="GMountOperation"><span class="type">GMountOperation</span></a> *op,
1129
<a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message,
1130
<a href="../glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> time_left,
1131
<a href="../glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> bytes_left,
1132
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
1129
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message,
1130
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> time_left,
1131
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> bytes_left,
1132
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
1133
1133
<p>Emitted when an unmount operation has been busy for more than some time
1134
1134
(typically 1.5 seconds).</p>
1135
1135
<p>When unmounting or ejecting a volume, the kernel might need to flush
1144
1144
reaches zero.</p>
1145
1145
<p>If the message contains a line break, the first line should be
1146
1146
presented as a heading. For example, it may be used as the
1147
primary text in a <span class="type">GtkMessageDialog</span>.</p>
1147
primary text in a <a href="http://developer.gnome.org/gtk2/GtkMessageDialog.html"><span class="type">GtkMessageDialog</span></a>.</p>
1148
1148
<div class="refsect3">
1149
1149
<a name="id-1.4.2.7.13.7.8"></a><h4>Parameters</h4>
1150
1150
<div class="informaltable"><table width="100%" border="0">