| 1 | <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> |
| 2 | <node xmlns:dox="http://www.ayatana.org/dbus/dox.dtd"> |
| 3 | <dox:d><![CDATA[ |
| 4 | @mainpage |
| 5 | |
| 6 | An interface to register menus that are associated with a window in an application. |
| 7 | |
| 8 | The actual menus are transported using the gmenumodel protocol |
| 9 | ]]></dox:d> |
| 10 | <interface name="com.lomiri.MenuRegistrar" xmlns:dox="http://www.ayatana.org/dbus/dox.dtd"> |
| 11 | <dox:d> |
| 12 | An interface to register a menu from an application to be displayed in another |
| 13 | window. This manages that association between processes and/or Mir surface IDs and the dbus |
| 14 | address and object that provides the menus using the org.gtk.Menus interface. |
| 15 | </dox:d> |
| 16 | <method name="RegisterAppMenu"> |
| 17 | <dox:d><![CDATA[ |
| 18 | Associates a gmenumodel with an application |
| 19 | |
| 20 | /note this method assumes that the connection from the caller is the DBus connection |
| 21 | to use for the object. Applications that use multiple DBus connections will need to |
| 22 | ensure this method is called with the same connection that implements the object. |
| 23 | ]]></dox:d> |
| 24 | <arg name="pid" type="u" direction="in"> |
| 25 | <dox:d>The process ID of the application for which the menu is associated</dox:d> |
| 26 | </arg> |
| 27 | <arg name="menuObjectPath" type="o" direction="in"> |
| 28 | <dox:d>The dbus path where the gmenumodel interface for the application menu has been exported</dox:d> |
| 29 | </arg> |
| 30 | <arg name="actionObjectPath" type="o" direction="in"> |
| 31 | <dox:d>The dbus path where the gactionmenu interface for the application menu actions has been exported</dox:d> |
| 32 | </arg> |
| 33 | <arg name="service" type="s" direction="in"> |
| 34 | <dox:d>The dbus conection name of the client application to be registered (e.g. :1.23 or org.example.service)</dox:d> |
| 35 | </arg> |
| 36 | </method> |
| 37 | <method name="UnregisterAppMenu"> |
| 38 | <dox:d> |
| 39 | A method to allow removing an application menu from the database. |
| 40 | </dox:d> |
| 41 | <arg name="pid" type="u" direction="in"> |
| 42 | <dox:d>The process id of the application</dox:d> |
| 43 | </arg> |
| 44 | <arg name="menuObjectPath" type="o" direction="in"> |
| 45 | <dox:d>The dbus path for the registered application menu to be unregistered</dox:d> |
| 46 | </arg> |
| 47 | </method> |
| 48 | |
| 49 | <method name="RegisterSurfaceMenu"> |
| 50 | <dox:d><![CDATA[ |
| 51 | Associates a gmenumodel with a surface |
| 52 | |
| 53 | /note this method assumes that the connection from the caller is the DBus connection |
| 54 | to use for the object. Applications that use multiple DBus connections will need to |
| 55 | ensure this method is called with the same connection that implements the object. |
| 56 | ]]></dox:d> |
| 57 | <arg name="surface" type="s" direction="in"> |
| 58 | <dox:d>The surface ID of the surface</dox:d> |
| 59 | </arg> |
| 60 | <arg name="menuObjectPath" type="o" direction="in"> |
| 61 | <dox:d>The dbus path where the gmenumodel interface for the surface menu has been exported</dox:d> |
| 62 | </arg> |
| 63 | <arg name="actionObjectPath" type="o" direction="in"> |
| 64 | <dox:d>The dbus path where the gactionmenu interface for the surface menu actions has been exported</dox:d> |
| 65 | </arg> |
| 66 | <arg name="service" type="s" direction="in"> |
| 67 | <dox:d>The dbus conection name of the client application to be registered (e.g. :1.23 or org.example.service)</dox:d> |
| 68 | </arg> |
| 69 | </method> |
| 70 | <method name="UnregisterSurfaceMenu"> |
| 71 | <dox:d> |
| 72 | A method to allow removing a surface menu from the database. |
| 73 | </dox:d> |
| 74 | <arg name="surfaceId" type="s" direction="in"> |
| 75 | <dox:d>The surface id of the surface</dox:d> |
| 76 | </arg> |
| 77 | <arg name="menuObjectPath" type="o" direction="in"> |
| 78 | <dox:d>The dbus path for the registered surface menu to be unregistered</dox:d> |
| 79 | </arg> |
| 80 | </method> |
| 81 | </interface> |
| 82 | </node> |