summaryrefslogtreecommitdiff
path: root/gtk/gtkdbusinterfaces.xml
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-06-20 21:36:09 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-06-22 16:49:05 -0400
commit44fd03eb47b9492ffaf32ae6dfcca00b7d5a7618 (patch)
tree2e8925910f97f09d2ac29a5e9cd501392ba1fdf0 /gtk/gtkdbusinterfaces.xml
parentfb91fa2fbd5ca93afd44744d23c47518cef55ef4 (diff)
downloadgtk+-44fd03eb47b9492ffaf32ae6dfcca00b7d5a7618.tar.gz
mountoperation: use the Shell DBus proxy if available
Make GMountOperation look for an owner of org.Gtk.MountOperationHandler if possible, and use it instead of the GTK-based dialogs. This allows applications to use the implementation offered by the desktop shell, if available, through a DBus private interface: org.Gtk.MountOperationHandler. https://bugzilla.gnome.org/show_bug.cgi?id=674963
Diffstat (limited to 'gtk/gtkdbusinterfaces.xml')
-rw-r--r--gtk/gtkdbusinterfaces.xml91
1 files changed, 91 insertions, 0 deletions
diff --git a/gtk/gtkdbusinterfaces.xml b/gtk/gtkdbusinterfaces.xml
new file mode 100644
index 0000000000..31a748766f
--- /dev/null
+++ b/gtk/gtkdbusinterfaces.xml
@@ -0,0 +1,91 @@
+<node>
+<interface name="org.Gtk.MountOperationHandler">
+
+ <!--
+ AskPassword:
+ @id: an opaque ID identifying the object for which the operation is requested.
+ The ID must be unique in the context of the calling process.
+ @message: the message to display
+ @icon_name: the name of an icon to display
+ @default_user: the default username for display
+ @default_domain: the default domain for display
+ @flags: a set of GAskPasswordFlags
+ @response: a GMountOperationResult
+ @response_details: a dictionary containing the response details as
+ entered by the user. The dictionary MAY contain the following properties:
+ - "password" -> (s): a password to be used to complete the mount operation
+ - "password_save" -> (u): a GPasswordSave
+
+ The dialog will stay visible until clients call the Close() method, or
+ another dialog becomes visible.
+ Calling AskPassword again for the same id will have the effect to clear
+ the existing dialog and update it with a message indicating the previous
+ attempt went wrong.
+ -->
+<method name="AskPassword">
+ <arg type="s" direction="in" name="id"/>
+ <arg type="s" direction="in" name="message"/>
+ <arg type="s" direction="in" name="icon_name"/>
+ <arg type="s" direction="in" name="default_user"/>
+ <arg type="s" direction="in" name="default_domain"/>
+ <arg type="u" direction="in" name="flags"/>
+ <arg type="u" direction="out" name="response"/>
+ <arg type="a{sv}" direction="out" name="response_details"/>
+</method>
+ <!--
+ AskQuestion:
+ @id: an opaque ID identifying the object for which the operation is requested
+ The ID must be unique in the context of the calling process.
+ @message: the message to display
+ @icon_name: the name of an icon to display
+ @choices: an array of choice strings
+ GetResponse:
+ @response: a GMountOperationResult
+ @response_details: a dictionary containing the response details as
+ entered by the user. The dictionary MAY contain the following properties:
+ - "choice" -> (i): the chosen answer among the array of strings passed in
+
+ The dialog will stay visible until clients call the Close() method, or
+ another dialog becomes visible.
+ Calling AskQuestion again for the same id will have the effect to clear
+ update the dialog with the new question.
+ -->
+<method name="AskQuestion">
+ <arg type="s" direction="in" name="id"/>
+ <arg type="s" direction="in" name="message"/>
+ <arg type="s" direction="in" name="icon_name"/>
+ <arg type="as" direction="in" name="choices"/>
+ <arg type="u" direction="out" name="response"/>
+ <arg type="a{sv}" direction="out" name="response_details"/>
+</method>
+ <!--
+ ShowProcesses:
+ @id: an opaque ID identifying the object for which the operation is requested
+ The ID must be unique in the context of the calling process.
+ @message: the message to display
+ @icon_name: the name of an icon to display
+ @application_pids: the PIDs of the applications to display
+ @choices: an array of choice strings
+ @response: a GMountOperationResult
+ @response_details: a dictionary containing the response details as
+ entered by the user. The dictionary MAY contain the following properties:
+ - "choice" -> (i): the chosen answer among the array of strings passed in
+
+ The dialog will stay visible until clients call the Close() method, or
+ another dialog becomes visible.
+ Calling ShowProcesses again for the same id will have the effect to clear
+ the existing dialog and update it with the new message and the new list
+ of processes.
+ -->
+<method name="ShowProcesses">
+ <arg type="s" direction="in" name="id"/>
+ <arg type="s" direction="in" name="message"/>
+ <arg type="s" direction="in" name="icon_name"/>
+ <arg type="ai" direction="in" name="application_pids"/>
+ <arg type="as" direction="in" name="choices"/>
+ <arg type="u" direction="out" name="response"/>
+ <arg type="a{sv}" direction="out" name="response_details"/>
+</method>
+<method name="Close"/>
+</interface>
+</node>