Stringify the xml definitions for E4X removal

https://bugzilla.gnome.org/show_bug.cgi?id=691409
This commit is contained in:
Tim Lunn 2013-10-25 08:51:58 +11:00
parent d519c7263e
commit b908a3d70a
25 changed files with 731 additions and 643 deletions

View File

@ -13,13 +13,15 @@ const _ = Gettext.gettext;
const Config = imports.misc.config; const Config = imports.misc.config;
const ExtensionUtils = imports.misc.extensionUtils; const ExtensionUtils = imports.misc.extensionUtils;
const GnomeShellIface = <interface name="org.gnome.Shell.Extensions"> const GnomeShellIface = '<node> \
<signal name="ExtensionStatusChanged"> <interface name="org.gnome.Shell.Extensions"> \
<arg type="s" name="uuid"/> <signal name="ExtensionStatusChanged"> \
<arg type="i" name="state"/> <arg type="s" name="uuid"/> \
<arg type="s" name="error"/> <arg type="i" name="state"/> \
</signal> <arg type="s" name="error"/> \
</interface>; </signal> \
</interface> \
</node>';
const GnomeShellProxy = Gio.DBusProxy.makeProxyWrapper(GnomeShellIface); const GnomeShellProxy = Gio.DBusProxy.makeProxyWrapper(GnomeShellIface);

View File

@ -5,11 +5,13 @@ const Lang = imports.lang;
const Shell = imports.gi.Shell; const Shell = imports.gi.Shell;
const Signals = imports.signals; const Signals = imports.signals;
const FprintManagerIface = <interface name='net.reactivated.Fprint.Manager'> const FprintManagerIface = '<node> \
<method name='GetDefaultDevice'> <interface name="net.reactivated.Fprint.Manager"> \
<arg type='o' direction='out' /> <method name="GetDefaultDevice"> \
</method> <arg type="o" direction="out" /> \
</interface>; </method> \
</interface> \
</node>';
const FprintManagerInfo = Gio.DBusInterfaceInfo.new_for_xml(FprintManagerIface); const FprintManagerInfo = Gio.DBusInterfaceInfo.new_for_xml(FprintManagerIface);

View File

@ -4,11 +4,13 @@ const Gio = imports.gi.Gio;
const Lang = imports.lang; const Lang = imports.lang;
const Signals = imports.signals; const Signals = imports.signals;
const OVirtCredentialsIface = <interface name='org.ovirt.vdsm.Credentials'> const OVirtCredentialsIface = '<node> \
<signal name="UserAuthenticated"> <interface name="org.ovirt.vdsm.Credentials"> \
<arg type="s" name="token"/> <signal name="UserAuthenticated"> \
</signal> <arg type="s" name="token"/> \
</interface>; </signal> \
</interface> \
</node>';
const OVirtCredentialsInfo = Gio.DBusInterfaceInfo.new_for_xml(OVirtCredentialsIface); const OVirtCredentialsInfo = Gio.DBusInterfaceInfo.new_for_xml(OVirtCredentialsIface);

View File

@ -5,52 +5,58 @@ const Lang = imports.lang;
const Shell = imports.gi.Shell; const Shell = imports.gi.Shell;
const Signals = imports.signals; const Signals = imports.signals;
const ProviderIface = <interface name='org.freedesktop.realmd.Provider'> const ProviderIface = '<node> \
<property name="Name" type="s" access="read"/> <interface name="org.freedesktop.realmd.Provider"> \
<property name="Version" type="s" access="read"/> <property name="Name" type="s" access="read"/> \
<property name="Realms" type="ao" access="read"/> <property name="Version" type="s" access="read"/> \
<method name="Discover"> <property name="Realms" type="ao" access="read"/> \
<arg name="string" type="s" direction="in"/> <method name="Discover"> \
<arg name="options" type="a{sv}" direction="in"/> <arg name="string" type="s" direction="in"/> \
<arg name="relevance" type="i" direction="out"/> <arg name="options" type="a{sv}" direction="in"/> \
<arg name="realm" type="ao" direction="out"/> <arg name="relevance" type="i" direction="out"/> \
</method> <arg name="realm" type="ao" direction="out"/> \
</interface>; </method> \
</interface> \
</node>';
const Provider = Gio.DBusProxy.makeProxyWrapper(ProviderIface); const Provider = Gio.DBusProxy.makeProxyWrapper(ProviderIface);
const ServiceIface = <interface name="org.freedesktop.realmd.Service"> const ServiceIface = '<node> \
<method name="Cancel"> <interface name="org.freedesktop.realmd.Service"> \
<arg name="operation" type="s" direction="in"/> <method name="Cancel"> \
</method> <arg name="operation" type="s" direction="in"/> \
<method name="Release" /> </method> \
<method name="SetLocale"> <method name="Release" /> \
<arg name="locale" type="s" direction="in"/> <method name="SetLocale"> \
</method> <arg name="locale" type="s" direction="in"/> \
<signal name="Diagnostics"> </method> \
<arg name="data" type="s"/> <signal name="Diagnostics"> \
<arg name="operation" type="s"/> <arg name="data" type="s"/> \
</signal> <arg name="operation" type="s"/> \
</interface>; </signal> \
</interface> \
</node>';
const Service = Gio.DBusProxy.makeProxyWrapper(ServiceIface); const Service = Gio.DBusProxy.makeProxyWrapper(ServiceIface);
const RealmIface = <interface name="org.freedesktop.realmd.Realm"> const RealmIface = '<node> \
<property name="Name" type="s" access="read"/> <interface name="org.freedesktop.realmd.Realm"> \
<property name="Configured" type="s" access="read"/> <property name="Name" type="s" access="read"/> \
<property name="Details" type="a(ss)" access="read"/> <property name="Configured" type="s" access="read"/> \
<property name="LoginFormats" type="as" access="read"/> <property name="Details" type="a(ss)" access="read"/> \
<property name="LoginPolicy" type="s" access="read"/> <property name="LoginFormats" type="as" access="read"/> \
<property name="PermittedLogins" type="as" access="read"/> <property name="LoginPolicy" type="s" access="read"/> \
<property name="SupportedInterfaces" type="as" access="read"/> <property name="PermittedLogins" type="as" access="read"/> \
<method name="ChangeLoginPolicy"> <property name="SupportedInterfaces" type="as" access="read"/> \
<arg name="login_policy" type="s" direction="in"/> <method name="ChangeLoginPolicy"> \
<arg name="permitted_add" type="as" direction="in"/> <arg name="login_policy" type="s" direction="in"/> \
<arg name="permitted_remove" type="as" direction="in"/> <arg name="permitted_add" type="as" direction="in"/> \
<arg name="options" type="a{sv}" direction="in"/> <arg name="permitted_remove" type="as" direction="in"/> \
</method> <arg name="options" type="a{sv}" direction="in"/> \
<method name="Deconfigure"> </method> \
<arg name="options" type="a{sv}" direction="in"/> <method name="Deconfigure"> \
</method> <arg name="options" type="a{sv}" direction="in"/> \
</interface>; </method> \
</interface> \
</node>';
const Realm = Gio.DBusProxy.makeProxyWrapper(RealmIface); const Realm = Gio.DBusProxy.makeProxyWrapper(RealmIface);
const Manager = new Lang.Class({ const Manager = new Lang.Class({

View File

@ -4,15 +4,17 @@ const Gio = imports.gi.Gio;
const Lang = imports.lang; const Lang = imports.lang;
const Signals = imports.signals; const Signals = imports.signals;
const PresenceIface = <interface name="org.gnome.SessionManager.Presence"> const PresenceIface = '<node> \
<method name="SetStatus"> <interface name="org.gnome.SessionManager.Presence"> \
<arg type="u" direction="in"/> <method name="SetStatus"> \
</method> <arg type="u" direction="in"/> \
<property name="status" type="u" access="readwrite"/> </method> \
<signal name="StatusChanged"> <property name="status" type="u" access="readwrite"/> \
<arg type="u" direction="out"/> <signal name="StatusChanged"> \
</signal> <arg type="u" direction="out"/> \
</interface>; </signal> \
</interface> \
</node>';
const PresenceStatus = { const PresenceStatus = {
AVAILABLE: 0, AVAILABLE: 0,
@ -30,14 +32,16 @@ function Presence(initCallback, cancellable) {
// Note inhibitors are immutable objects, so they don't // Note inhibitors are immutable objects, so they don't
// change at runtime (changes always come in the form // change at runtime (changes always come in the form
// of new inhibitors) // of new inhibitors)
const InhibitorIface = <interface name="org.gnome.SessionManager.Inhibitor"> const InhibitorIface = '<node> \
<method name="GetAppId"> <interface name="org.gnome.SessionManager.Inhibitor"> \
<arg type="s" direction="out" /> <method name="GetAppId"> \
</method> <arg type="s" direction="out" /> \
<method name="GetReason"> </method> \
<arg type="s" direction="out" /> <method name="GetReason"> \
</method> <arg type="s" direction="out" /> \
</interface>; </method> \
</interface> \
</node>';
var InhibitorProxy = Gio.DBusProxy.makeProxyWrapper(InhibitorIface); var InhibitorProxy = Gio.DBusProxy.makeProxyWrapper(InhibitorIface);
function Inhibitor(objectPath, initCallback, cancellable) { function Inhibitor(objectPath, initCallback, cancellable) {
@ -45,27 +49,29 @@ function Inhibitor(objectPath, initCallback, cancellable) {
} }
// Not the full interface, only the methods we use // Not the full interface, only the methods we use
const SessionManagerIface = <interface name="org.gnome.SessionManager"> const SessionManagerIface = '<node> \
<method name="Logout"> <interface name="org.gnome.SessionManager"> \
<arg type="u" direction="in" /> <method name="Logout"> \
</method> <arg type="u" direction="in" /> \
<method name="Shutdown" /> </method> \
<method name="Reboot" /> <method name="Shutdown" /> \
<method name="CanShutdown"> <method name="Reboot" /> \
<arg type="b" direction="out" /> <method name="CanShutdown"> \
</method> <arg type="b" direction="out" /> \
<method name="IsInhibited"> </method> \
<arg type="u" direction="in" /> <method name="IsInhibited"> \
<arg type="b" direction="out" /> <arg type="u" direction="in" /> \
</method> <arg type="b" direction="out" /> \
<property name="SessionIsActive" type="b" access="read"/> </method> \
<signal name="InhibitorAdded"> <property name="SessionIsActive" type="b" access="read"/> \
<arg type="o" direction="out"/> <signal name="InhibitorAdded"> \
</signal> <arg type="o" direction="out"/> \
<signal name="InhibitorRemoved"> </signal> \
<arg type="o" direction="out"/> <signal name="InhibitorRemoved"> \
</signal> <arg type="o" direction="out"/> \
</interface>; </signal> \
</interface> \
</node>';
var SessionManagerProxy = Gio.DBusProxy.makeProxyWrapper(SessionManagerIface); var SessionManagerProxy = Gio.DBusProxy.makeProxyWrapper(SessionManagerIface);
function SessionManager(initCallback, cancellable) { function SessionManager(initCallback, cancellable) {

View File

@ -7,58 +7,66 @@ const Mainloop = imports.mainloop;
const Shell = imports.gi.Shell; const Shell = imports.gi.Shell;
const Signals = imports.signals; const Signals = imports.signals;
const SystemdLoginManagerIface = <interface name='org.freedesktop.login1.Manager'> const SystemdLoginManagerIface = '<node> \
<method name='Suspend'> <interface name="org.freedesktop.login1.Manager"> \
<arg type='b' direction='in'/> <method name="Suspend"> \
</method> <arg type="b" direction="in"/> \
<method name='CanSuspend'> </method> \
<arg type='s' direction='out'/> <method name="CanSuspend"> \
</method> <arg type="s" direction="out"/> \
<method name='Inhibit'> </method> \
<arg type='s' direction='in'/> <method name="Inhibit"> \
<arg type='s' direction='in'/> <arg type="s" direction="in"/> \
<arg type='s' direction='in'/> <arg type="s" direction="in"/> \
<arg type='s' direction='in'/> <arg type="s" direction="in"/> \
<arg type='h' direction='out'/> <arg type="s" direction="in"/> \
</method> <arg type="h" direction="out"/> \
<method name='GetSession'> </method> \
<arg type='s' direction='in'/> <method name="GetSession"> \
<arg type='o' direction='out'/> <arg type="s" direction="in"/> \
</method> <arg type="o" direction="out"/> \
<method name='ListSessions'> </method> \
<arg name='sessions' type='a(susso)' direction='out'/> <method name="ListSessions"> \
</method> <arg name="sessions" type="a(susso)" direction="out"/> \
<signal name='PrepareForSleep'> </method> \
<arg type='b' direction='out'/> <signal name="PrepareForSleep"> \
</signal> <arg type="b" direction="out"/> \
</interface>; </signal> \
</interface> \
</node>';
const SystemdLoginSessionIface = <interface name='org.freedesktop.login1.Session'> const SystemdLoginSessionIface = '<node> \
<signal name='Lock' /> <interface name="org.freedesktop.login1.Session"> \
<signal name='Unlock' /> <signal name="Lock" /> \
</interface>; <signal name="Unlock" /> \
</interface> \
</node>';
const SystemdLoginManager = Gio.DBusProxy.makeProxyWrapper(SystemdLoginManagerIface); const SystemdLoginManager = Gio.DBusProxy.makeProxyWrapper(SystemdLoginManagerIface);
const SystemdLoginSession = Gio.DBusProxy.makeProxyWrapper(SystemdLoginSessionIface); const SystemdLoginSession = Gio.DBusProxy.makeProxyWrapper(SystemdLoginSessionIface);
const ConsoleKitManagerIface = <interface name='org.freedesktop.ConsoleKit.Manager'> const ConsoleKitManagerIface = '<node> \
<method name='CanRestart'> <interface name="org.freedesktop.ConsoleKit.Manager"> \
<arg type='b' direction='out'/> <method name="CanRestart"> \
</method> <arg type="b" direction="out"/> \
<method name='CanStop'> </method> \
<arg type='b' direction='out'/> <method name="CanStop"> \
</method> <arg type="b" direction="out"/> \
<method name='Restart' /> </method> \
<method name='Stop' /> <method name="Restart" /> \
<method name='GetCurrentSession'> <method name="Stop" /> \
<arg type='o' direction='out' /> <method name="GetCurrentSession"> \
</method> <arg type="o" direction="out" /> \
</interface>; </method> \
</interface> \
</node>';
const ConsoleKitSessionIface = <interface name='org.freedesktop.ConsoleKit.Session'> const ConsoleKitSessionIface = '<node> \
<signal name='Lock' /> <interface name="org.freedesktop.ConsoleKit.Session"> \
<signal name='Unlock' /> <signal name="Lock" /> \
</interface>; <signal name="Unlock" /> \
</interface> \
</node>';
const ConsoleKitSession = Gio.DBusProxy.makeProxyWrapper(ConsoleKitSessionIface); const ConsoleKitSession = Gio.DBusProxy.makeProxyWrapper(ConsoleKitSessionIface);
const ConsoleKitManager = Gio.DBusProxy.makeProxyWrapper(ConsoleKitManagerIface); const ConsoleKitManager = Gio.DBusProxy.makeProxyWrapper(ConsoleKitManagerIface);

View File

@ -92,37 +92,41 @@ function _findProviderForSid(sid) {
// The following are not the complete interfaces, just the methods we need // The following are not the complete interfaces, just the methods we need
// (or may need in the future) // (or may need in the future)
const ModemGsmNetworkInterface = <interface name="org.freedesktop.ModemManager.Modem.Gsm.Network"> const ModemGsmNetworkInterface = '<node> \
<method name="GetRegistrationInfo"> <interface name="org.freedesktop.ModemManager.Modem.Gsm.Network"> \
<arg type="(uss)" direction="out" /> <method name="GetRegistrationInfo"> \
</method> <arg type="(uss)" direction="out" /> \
<method name="GetSignalQuality"> </method> \
<arg type="u" direction="out" /> <method name="GetSignalQuality"> \
</method> <arg type="u" direction="out" /> \
<property name="AccessTechnology" type="u" access="read" /> </method> \
<signal name="SignalQuality"> <property name="AccessTechnology" type="u" access="read" /> \
<arg type="u" direction="out" /> <signal name="SignalQuality"> \
</signal> <arg type="u" direction="out" /> \
<signal name="RegistrationInfo"> </signal> \
<arg type="u" direction="out" /> <signal name="RegistrationInfo"> \
<arg type="s" direction="out" /> <arg type="u" direction="out" /> \
<arg type="s" direction="out" /> <arg type="s" direction="out" /> \
</signal> <arg type="s" direction="out" /> \
</interface>; </signal> \
</interface> \
</node>';
const ModemGsmNetworkProxy = Gio.DBusProxy.makeProxyWrapper(ModemGsmNetworkInterface); const ModemGsmNetworkProxy = Gio.DBusProxy.makeProxyWrapper(ModemGsmNetworkInterface);
const ModemCdmaInterface = <interface name="org.freedesktop.ModemManager.Modem.Cdma"> const ModemCdmaInterface = '<node> \
<method name="GetSignalQuality"> <interface name="org.freedesktop.ModemManager.Modem.Cdma"> \
<arg type="u" direction="out" /> <method name="GetSignalQuality"> \
</method> <arg type="u" direction="out" /> \
<method name="GetServingSystem"> </method> \
<arg type="(usu)" direction="out" /> <method name="GetServingSystem"> \
</method> <arg type="(usu)" direction="out" /> \
<signal name="SignalQuality"> </method> \
<arg type="u" direction="out" /> <signal name="SignalQuality"> \
</signal> <arg type="u" direction="out" /> \
</interface>; </signal> \
</interface> \
</node>';
const ModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(ModemCdmaInterface); const ModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(ModemCdmaInterface);
@ -218,20 +222,26 @@ Signals.addSignalMethods(ModemCdma.prototype);
// Support for the new ModemManager1 interface (MM >= 0.7) // Support for the new ModemManager1 interface (MM >= 0.7)
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
const BroadbandModemInterface = <interface name="org.freedesktop.ModemManager1.Modem"> const BroadbandModemInterface = '<node> \
<property name="SignalQuality" type="(ub)" access="read" /> <interface name="org.freedesktop.ModemManager1.Modem"> \
</interface>; <property name="SignalQuality" type="(ub)" access="read" /> \
</interface> \
</node>';
const BroadbandModemProxy = Gio.DBusProxy.makeProxyWrapper(BroadbandModemInterface); const BroadbandModemProxy = Gio.DBusProxy.makeProxyWrapper(BroadbandModemInterface);
const BroadbandModem3gppInterface = <interface name="org.freedesktop.ModemManager1.Modem.Modem3gpp"> const BroadbandModem3gppInterface = '<node> \
<property name="OperatorCode" type="s" access="read" /> <interface name="org.freedesktop.ModemManager1.Modem.Modem3gpp"> \
<property name="OperatorName" type="s" access="read" /> <property name="OperatorCode" type="s" access="read" /> \
</interface>; <property name="OperatorName" type="s" access="read" /> \
</interface> \
</node>';
const BroadbandModem3gppProxy = Gio.DBusProxy.makeProxyWrapper(BroadbandModem3gppInterface); const BroadbandModem3gppProxy = Gio.DBusProxy.makeProxyWrapper(BroadbandModem3gppInterface);
const BroadbandModemCdmaInterface = <interface name="org.freedesktop.ModemManager1.Modem.ModemCdma"> const BroadbandModemCdmaInterface = '<node> \
<property name="Sid" type="u" access="read" /> <interface name="org.freedesktop.ModemManager1.Modem.ModemCdma"> \
</interface>; <property name="Sid" type="u" access="read" /> \
</interface> \
</node>';
const BroadbandModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(BroadbandModemCdmaInterface); const BroadbandModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(BroadbandModemCdmaInterface);
const BroadbandModem = new Lang.Class({ const BroadbandModem = new Lang.Class({

View File

@ -8,19 +8,21 @@ const Signals = imports.signals;
// Specified in the D-Bus specification here: // Specified in the D-Bus specification here:
// http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager // http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager
const ObjectManagerIface = <interface name="org.freedesktop.DBus.ObjectManager"> const ObjectManagerIface = '<node> \
<method name="GetManagedObjects"> <interface name="org.freedesktop.DBus.ObjectManager"> \
<arg name="objects" type="a{oa{sa{sv}}}" direction="out"/> <method name="GetManagedObjects"> \
</method> <arg name="objects" type="a{oa{sa{sv}}}" direction="out"/> \
<signal name="InterfacesAdded"> </method> \
<arg name="objectPath" type="o"/> <signal name="InterfacesAdded"> \
<arg name="interfaces" type="a{sa{sv}}" /> <arg name="objectPath" type="o"/> \
</signal> <arg name="interfaces" type="a{sa{sv}}" /> \
<signal name="InterfacesRemoved"> </signal> \
<arg name="objectPath" type="o"/> <signal name="InterfacesRemoved"> \
<arg name="interfaces" type="as" /> <arg name="objectPath" type="o"/> \
</signal> <arg name="interfaces" type="as" /> \
</interface>; </signal> \
</interface> \
</node>';
const ObjectManagerInfo = Gio.DBusInterfaceInfo.new_for_xml(ObjectManagerIface); const ObjectManagerInfo = Gio.DBusInterfaceInfo.new_for_xml(ObjectManagerIface);

View File

@ -7,12 +7,14 @@ const Signals = imports.signals;
const ObjectManager = imports.misc.objectManager; const ObjectManager = imports.misc.objectManager;
const SmartcardTokenIface = <interface name="org.gnome.SettingsDaemon.Smartcard.Token"> const SmartcardTokenIface = '<node> \
<property name="Name" type="s" access="read"/> <interface name="org.gnome.SettingsDaemon.Smartcard.Token"> \
<property name="Driver" type="o" access="read"/> <property name="Name" type="s" access="read"/> \
<property name="IsInserted" type="b" access="read"/> <property name="Driver" type="o" access="read"/> \
<property name="UsedToLogin" type="b" access="read"/> <property name="IsInserted" type="b" access="read"/> \
</interface>; <property name="UsedToLogin" type="b" access="read"/> \
</interface> \
</node>';
let _smartcardManager = null; let _smartcardManager = null;

View File

@ -190,16 +190,18 @@ const EmptyEventSource = new Lang.Class({
}); });
Signals.addSignalMethods(EmptyEventSource.prototype); Signals.addSignalMethods(EmptyEventSource.prototype);
const CalendarServerIface = <interface name="org.gnome.Shell.CalendarServer"> const CalendarServerIface = '<node> \
<method name="GetEvents"> <interface name="org.gnome.Shell.CalendarServer"> \
<arg type="x" direction="in" /> <method name="GetEvents"> \
<arg type="x" direction="in" /> <arg type="x" direction="in" /> \
<arg type="b" direction="in" /> <arg type="x" direction="in" /> \
<arg type="a(sssbxxa{sv})" direction="out" /> <arg type="b" direction="in" /> \
</method> <arg type="a(sssbxxa{sv})" direction="out" /> \
<property name="HasCalendars" type="b" access="read" /> </method> \
<signal name="Changed" /> <property name="HasCalendars" type="b" access="read" /> \
</interface>; <signal name="Changed" /> \
</interface> \
</node>';
const CalendarServerInfo = Gio.DBusInterfaceInfo.new_for_xml(CalendarServerIface); const CalendarServerInfo = Gio.DBusInterfaceInfo.new_for_xml(CalendarServerIface);

View File

@ -75,12 +75,14 @@ function startAppForMount(app, mount) {
/******************************************/ /******************************************/
const HotplugSnifferIface = <interface name="org.gnome.Shell.HotplugSniffer"> const HotplugSnifferIface = '<node> \
<method name="SniffURI"> <interface name="org.gnome.Shell.HotplugSniffer"> \
<arg type="s" direction="in" /> <method name="SniffURI"> \
<arg type="as" direction="out" /> <arg type="s" direction="in" /> \
</method> <arg type="as" direction="out" /> \
</interface>; </method> \
</interface> \
</node>';
const HotplugSnifferProxy = Gio.DBusProxy.makeProxyWrapper(HotplugSnifferIface); const HotplugSnifferProxy = Gio.DBusProxy.makeProxyWrapper(HotplugSnifferIface);
function HotplugSniffer() { function HotplugSniffer() {

View File

@ -43,20 +43,22 @@ const _DIALOG_ICON_SIZE = 32;
const GSM_SESSION_MANAGER_LOGOUT_FORCE = 2; const GSM_SESSION_MANAGER_LOGOUT_FORCE = 2;
const EndSessionDialogIface = <interface name="org.gnome.SessionManager.EndSessionDialog"> const EndSessionDialogIface = '<node> \
<method name="Open"> <interface name="org.gnome.SessionManager.EndSessionDialog"> \
<arg type="u" direction="in" /> <method name="Open"> \
<arg type="u" direction="in" /> <arg type="u" direction="in" /> \
<arg type="u" direction="in" /> <arg type="u" direction="in" /> \
<arg type="ao" direction="in" /> <arg type="u" direction="in" /> \
</method> <arg type="ao" direction="in" /> \
<method name="Close" /> </method> \
<signal name="ConfirmedLogout" /> <method name="Close" /> \
<signal name="ConfirmedReboot" /> <signal name="ConfirmedLogout" /> \
<signal name="ConfirmedShutdown" /> <signal name="ConfirmedReboot" /> \
<signal name="Canceled" /> <signal name="ConfirmedShutdown" /> \
<signal name="Closed" /> <signal name="Canceled" /> \
</interface>; <signal name="Closed" /> \
</interface> \
</node>';
const logoutDialogContent = { const logoutDialogContent = {
subjectWithUser: C_("title", "Log Out %s"), subjectWithUser: C_("title", "Log Out %s"),
@ -131,13 +133,15 @@ const DialogContent = {
const MAX_USERS_IN_SESSION_DIALOG = 5; const MAX_USERS_IN_SESSION_DIALOG = 5;
const LogindSessionIface = <interface name='org.freedesktop.login1.Session'> const LogindSessionIface = '<node> \
<property name="Id" type="s" access="read"/> <interface name="org.freedesktop.login1.Session"> \
<property name="Remote" type="b" access="read"/> <property name="Id" type="s" access="read"/> \
<property name="Class" type="s" access="read"/> <property name="Remote" type="b" access="read"/> \
<property name="Type" type="s" access="read"/> <property name="Class" type="s" access="read"/> \
<property name="State" type="s" access="read"/> <property name="Type" type="s" access="read"/> \
</interface>; <property name="State" type="s" access="read"/> \
</interface> \
</node>';
const LogindSession = Gio.DBusProxy.makeProxyWrapper(LogindSessionIface); const LogindSession = Gio.DBusProxy.makeProxyWrapper(LogindSessionIface);

View File

@ -23,27 +23,29 @@ const KEYBOARD_TYPE = 'keyboard-type';
const A11Y_APPLICATIONS_SCHEMA = 'org.gnome.desktop.a11y.applications'; const A11Y_APPLICATIONS_SCHEMA = 'org.gnome.desktop.a11y.applications';
const SHOW_KEYBOARD = 'screen-keyboard-enabled'; const SHOW_KEYBOARD = 'screen-keyboard-enabled';
const CaribouKeyboardIface = <interface name='org.gnome.Caribou.Keyboard'> const CaribouKeyboardIface = '<node> \
<method name='Show'> <interface name="org.gnome.Caribou.Keyboard"> \
<arg type='u' direction='in' /> <method name="Show"> \
</method> <arg type="u" direction="in" /> \
<method name='Hide'> </method> \
<arg type='u' direction='in' /> <method name="Hide"> \
</method> <arg type="u" direction="in" /> \
<method name='SetCursorLocation'> </method> \
<arg type='i' direction='in' /> <method name="SetCursorLocation"> \
<arg type='i' direction='in' /> <arg type="i" direction="in" /> \
<arg type='i' direction='in' /> <arg type="i" direction="in" /> \
<arg type='i' direction='in' /> <arg type="i" direction="in" /> \
</method> <arg type="i" direction="in" /> \
<method name='SetEntryLocation'> </method> \
<arg type='i' direction='in' /> <method name="SetEntryLocation"> \
<arg type='i' direction='in' /> <arg type="i" direction="in" /> \
<arg type='i' direction='in' /> <arg type="i" direction="in" /> \
<arg type='i' direction='in' /> <arg type="i" direction="in" /> \
</method> <arg type="i" direction="in" /> \
<property name='Name' access='read' type='s' /> </method> \
</interface>; <property name="Name" access="read" type="s" /> \
</interface> \
</node>';
const Key = new Lang.Class({ const Key = new Lang.Class({
Name: 'Key', Name: 'Key',

View File

@ -9,85 +9,89 @@ const ZOOM_SERVICE_PATH = '/org/gnome/Magnifier/ZoomRegion';
// Subset of gnome-mag's Magnifier dbus interface -- to be expanded. See: // Subset of gnome-mag's Magnifier dbus interface -- to be expanded. See:
// http://git.gnome.org/browse/gnome-mag/tree/xml/...Magnifier.xml // http://git.gnome.org/browse/gnome-mag/tree/xml/...Magnifier.xml
const MagnifierIface = <interface name="org.gnome.Magnifier"> const MagnifierIface = '<node> \
<method name="setActive"> <interface name="org.gnome.Magnifier"> \
<arg type="b" direction="in" /> <method name="setActive"> \
</method> <arg type="b" direction="in" /> \
<method name="isActive"> </method> \
<arg type="b" direction="out" /> <method name="isActive"> \
</method> <arg type="b" direction="out" /> \
<method name="showCursor" /> </method> \
<method name="hideCursor" /> <method name="showCursor" /> \
<method name="createZoomRegion"> <method name="hideCursor" /> \
<arg type="d" direction="in" /> <method name="createZoomRegion"> \
<arg type="d" direction="in" /> <arg type="d" direction="in" /> \
<arg type="ai" direction="in" /> <arg type="d" direction="in" /> \
<arg type="ai" direction="in" /> <arg type="ai" direction="in" /> \
<arg type="o" direction="out" /> <arg type="ai" direction="in" /> \
</method> <arg type="o" direction="out" /> \
<method name="addZoomRegion"> </method> \
<arg type="o" direction="in" /> <method name="addZoomRegion"> \
<arg type="b" direction="out" /> <arg type="o" direction="in" /> \
</method> <arg type="b" direction="out" /> \
<method name="getZoomRegions"> </method> \
<arg type="ao" direction="out" /> <method name="getZoomRegions"> \
</method> <arg type="ao" direction="out" /> \
<method name="clearAllZoomRegions" /> </method> \
<method name="fullScreenCapable"> <method name="clearAllZoomRegions" /> \
<arg type="b" direction="out" /> <method name="fullScreenCapable"> \
</method> <arg type="b" direction="out" /> \
<method name="setCrosswireSize"> </method> \
<arg type="i" direction="in" /> <method name="setCrosswireSize"> \
</method> <arg type="i" direction="in" /> \
<method name="getCrosswireSize"> </method> \
<arg type="i" direction="out" /> <method name="getCrosswireSize"> \
</method> <arg type="i" direction="out" /> \
<method name="setCrosswireLength"> </method> \
<arg type="i" direction="in" /> <method name="setCrosswireLength"> \
</method> <arg type="i" direction="in" /> \
<method name="getCrosswireLength"> </method> \
<arg type="i" direction="out" /> <method name="getCrosswireLength"> \
</method> <arg type="i" direction="out" /> \
<method name="setCrosswireClip"> </method> \
<arg type="b" direction="in" /> <method name="setCrosswireClip"> \
</method> <arg type="b" direction="in" /> \
<method name="getCrosswireClip"> </method> \
<arg type="b" direction="out" /> <method name="getCrosswireClip"> \
</method> <arg type="b" direction="out" /> \
<method name="setCrosswireColor"> </method> \
<arg type="u" direction="in" /> <method name="setCrosswireColor"> \
</method> <arg type="u" direction="in" /> \
<method name="getCrosswireColor"> </method> \
<arg type="u" direction="out" /> <method name="getCrosswireColor"> \
</method> <arg type="u" direction="out" /> \
</interface>; </method> \
</interface> \
</node>';
// Subset of gnome-mag's ZoomRegion dbus interface -- to be expanded. See: // Subset of gnome-mag's ZoomRegion dbus interface -- to be expanded. See:
// http://git.gnome.org/browse/gnome-mag/tree/xml/...ZoomRegion.xml // http://git.gnome.org/browse/gnome-mag/tree/xml/...ZoomRegion.xml
const ZoomRegionIface = <interface name="org.gnome.Magnifier.ZoomRegion"> const ZoomRegionIface = '<node> \
<method name="setMagFactor"> <interface name="org.gnome.Magnifier.ZoomRegion"> \
<arg type="d" direction="in" /> <method name="setMagFactor"> \
<arg type="d" direction="in" /> <arg type="d" direction="in" /> \
</method> <arg type="d" direction="in" /> \
<method name="getMagFactor"> </method> \
<arg type="d" direction="out" /> <method name="getMagFactor"> \
<arg type="d" direction="out" /> <arg type="d" direction="out" /> \
</method> <arg type="d" direction="out" /> \
<method name="setRoi"> </method> \
<arg type="ai" direction="in" /> <method name="setRoi"> \
</method> <arg type="ai" direction="in" /> \
<method name="getRoi"> </method> \
<arg type="ai" direction="out" /> <method name="getRoi"> \
</method> <arg type="ai" direction="out" /> \
<method name="shiftContentsTo"> </method> \
<arg type="i" direction="in" /> <method name="shiftContentsTo"> \
<arg type="i" direction="in" /> <arg type="i" direction="in" /> \
<arg type="b" direction="out" /> <arg type="i" direction="in" /> \
</method> <arg type="b" direction="out" /> \
<method name="moveResize"> </method> \
<arg type="ai" direction="in" /> <method name="moveResize"> \
</method> <arg type="ai" direction="in" /> \
</interface>; </method> \
</interface> \
</node>';
// For making unique ZoomRegion DBus proxy object paths of the form: // For making unique ZoomRegion DBus proxy object paths of the form:
// '/org/gnome/Magnifier/ZoomRegion/zoomer0', // '/org/gnome/Magnifier/ZoomRegion/zoomer0',

View File

@ -16,51 +16,55 @@ const Params = imports.misc.params;
const Util = imports.misc.util; const Util = imports.misc.util;
// Should really be defined in Gio.js // Should really be defined in Gio.js
const BusIface = <interface name="org.freedesktop.DBus"> const BusIface = '<node> \
<method name="GetConnectionUnixProcessID"> <interface name="org.freedesktop.DBus"> \
<arg type="s" direction="in" /> <method name="GetConnectionUnixProcessID"> \
<arg type="u" direction="out" /> <arg type="s" direction="in" /> \
</method> <arg type="u" direction="out" /> \
</interface>; </method> \
</interface> \
</node>';
var BusProxy = Gio.DBusProxy.makeProxyWrapper(BusIface); var BusProxy = Gio.DBusProxy.makeProxyWrapper(BusIface);
function Bus() { function Bus() {
return new BusProxy(Gio.DBus.session, 'org.freedesktop.DBus', '/org/freedesktop/DBus'); return new BusProxy(Gio.DBus.session, 'org.freedesktop.DBus', '/org/freedesktop/DBus');
} }
const FdoNotificationsIface = <interface name="org.freedesktop.Notifications"> const FdoNotificationsIface = '<node> \
<method name="Notify"> <interface name="org.freedesktop.Notifications"> \
<arg type="s" direction="in"/> <method name="Notify"> \
<arg type="u" direction="in"/> <arg type="s" direction="in"/> \
<arg type="s" direction="in"/> <arg type="u" direction="in"/> \
<arg type="s" direction="in"/> <arg type="s" direction="in"/> \
<arg type="s" direction="in"/> <arg type="s" direction="in"/> \
<arg type="as" direction="in"/> <arg type="s" direction="in"/> \
<arg type="a{sv}" direction="in"/> <arg type="as" direction="in"/> \
<arg type="i" direction="in"/> <arg type="a{sv}" direction="in"/> \
<arg type="u" direction="out"/> <arg type="i" direction="in"/> \
</method> <arg type="u" direction="out"/> \
<method name="CloseNotification"> </method> \
<arg type="u" direction="in"/> <method name="CloseNotification"> \
</method> <arg type="u" direction="in"/> \
<method name="GetCapabilities"> </method> \
<arg type="as" direction="out"/> <method name="GetCapabilities"> \
</method> <arg type="as" direction="out"/> \
<method name="GetServerInformation"> </method> \
<arg type="s" direction="out"/> <method name="GetServerInformation"> \
<arg type="s" direction="out"/> <arg type="s" direction="out"/> \
<arg type="s" direction="out"/> <arg type="s" direction="out"/> \
<arg type="s" direction="out"/> <arg type="s" direction="out"/> \
</method> <arg type="s" direction="out"/> \
<signal name="NotificationClosed"> </method> \
<arg type="u"/> <signal name="NotificationClosed"> \
<arg type="u"/> <arg type="u"/> \
</signal> <arg type="u"/> \
<signal name="ActionInvoked"> </signal> \
<arg type="u"/> <signal name="ActionInvoked"> \
<arg type="s"/> <arg type="u"/> \
</signal> <arg type="s"/> \
</interface>; </signal> \
</interface> \
</node>';
const NotificationClosedReason = { const NotificationClosedReason = {
EXPIRED: 1, EXPIRED: 1,
@ -767,16 +771,18 @@ const GtkNotificationDaemonNotification = new Lang.Class({
}, },
}); });
const FdoApplicationIface = <interface name="org.freedesktop.Application"> const FdoApplicationIface = '<node> \
<method name="ActivateAction"> <interface name="org.freedesktop.Application"> \
<arg type="s" direction="in" /> <method name="ActivateAction"> \
<arg type="av" direction="in" /> <arg type="s" direction="in" /> \
<arg type="a{sv}" direction="in" /> <arg type="av" direction="in" /> \
</method> <arg type="a{sv}" direction="in" /> \
<method name="Activate"> </method> \
<arg type="a{sv}" direction="in" /> <method name="Activate"> \
</method> <arg type="a{sv}" direction="in" /> \
</interface>; </method> \
</interface> \
</node>';
const FdoApplicationProxy = Gio.DBusProxy.makeProxyWrapper(FdoApplicationIface); const FdoApplicationProxy = Gio.DBusProxy.makeProxyWrapper(FdoApplicationIface);
function objectPathFromAppId(appId) { function objectPathFromAppId(appId) {
@ -860,17 +866,19 @@ const GtkNotificationDaemonAppSource = new Lang.Class({
}, },
}); });
const GtkNotificationsIface = <interface name="org.gtk.Notifications"> const GtkNotificationsIface = '<node> \
<method name="AddNotification"> <interface name="org.gtk.Notifications"> \
<arg type="s" direction="in" /> <method name="AddNotification"> \
<arg type="s" direction="in" /> <arg type="s" direction="in" /> \
<arg type="a{sv}" direction="in" /> <arg type="s" direction="in" /> \
</method> <arg type="a{sv}" direction="in" /> \
<method name="RemoveNotification"> </method> \
<arg type="s" direction="in" /> <method name="RemoveNotification"> \
<arg type="s" direction="in" /> <arg type="s" direction="in" /> \
</method> <arg type="s" direction="in" /> \
</interface>; </method> \
</interface> \
</node>';
const GtkNotificationDaemon = new Lang.Class({ const GtkNotificationDaemon = new Lang.Class({
Name: 'GtkNotificationDaemon', Name: 'GtkNotificationDaemon',

View File

@ -11,49 +11,53 @@ const Search = imports.ui.search;
const KEY_FILE_GROUP = 'Shell Search Provider'; const KEY_FILE_GROUP = 'Shell Search Provider';
const SearchProviderIface = <interface name="org.gnome.Shell.SearchProvider"> const SearchProviderIface = '<node> \
<method name="GetInitialResultSet"> <interface name="org.gnome.Shell.SearchProvider"> \
<arg type="as" direction="in" /> <method name="GetInitialResultSet"> \
<arg type="as" direction="out" /> <arg type="as" direction="in" /> \
</method> <arg type="as" direction="out" /> \
<method name="GetSubsearchResultSet"> </method> \
<arg type="as" direction="in" /> <method name="GetSubsearchResultSet"> \
<arg type="as" direction="in" /> <arg type="as" direction="in" /> \
<arg type="as" direction="out" /> <arg type="as" direction="in" /> \
</method> <arg type="as" direction="out" /> \
<method name="GetResultMetas"> </method> \
<arg type="as" direction="in" /> <method name="GetResultMetas"> \
<arg type="aa{sv}" direction="out" /> <arg type="as" direction="in" /> \
</method> <arg type="aa{sv}" direction="out" /> \
<method name="ActivateResult"> </method> \
<arg type="s" direction="in" /> <method name="ActivateResult"> \
</method> <arg type="s" direction="in" /> \
</interface>; </method> \
</interface> \
</node>';
const SearchProvider2Iface = <interface name="org.gnome.Shell.SearchProvider2"> const SearchProvider2Iface = '<node> \
<method name="GetInitialResultSet"> <interface name="org.gnome.Shell.SearchProvider2"> \
<arg type="as" direction="in" /> <method name="GetInitialResultSet"> \
<arg type="as" direction="out" /> <arg type="as" direction="in" /> \
</method> <arg type="as" direction="out" /> \
<method name="GetSubsearchResultSet"> </method> \
<arg type="as" direction="in" /> <method name="GetSubsearchResultSet"> \
<arg type="as" direction="in" /> <arg type="as" direction="in" /> \
<arg type="as" direction="out" /> <arg type="as" direction="in" /> \
</method> <arg type="as" direction="out" /> \
<method name="GetResultMetas"> </method> \
<arg type="as" direction="in" /> <method name="GetResultMetas"> \
<arg type="aa{sv}" direction="out" /> <arg type="as" direction="in" /> \
</method> <arg type="aa{sv}" direction="out" /> \
<method name="ActivateResult"> </method> \
<arg type="s" direction="in" /> <method name="ActivateResult"> \
<arg type="as" direction="in" /> <arg type="s" direction="in" /> \
<arg type="u" direction="in" /> <arg type="as" direction="in" /> \
</method> <arg type="u" direction="in" /> \
<method name="LaunchSearch"> </method> \
<arg type="as" direction="in" /> <method name="LaunchSearch"> \
<arg type="u" direction="in" /> <arg type="as" direction="in" /> \
</method> <arg type="u" direction="in" /> \
</interface>; </method> \
</interface> \
</node>';
var SearchProviderProxy = Gio.DBusProxy.makeProxyWrapper(SearchProviderIface); var SearchProviderProxy = Gio.DBusProxy.makeProxyWrapper(SearchProviderIface);
var SearchProvider2Proxy = Gio.DBusProxy.makeProxyWrapper(SearchProvider2Iface); var SearchProvider2Proxy = Gio.DBusProxy.makeProxyWrapper(SearchProvider2Iface);

View File

@ -9,27 +9,29 @@ const Signals = imports.signals;
const Hash = imports.misc.hash; const Hash = imports.misc.hash;
const Main = imports.ui.main; const Main = imports.ui.main;
const ScreencastIface = <interface name="org.gnome.Shell.Screencast"> const ScreencastIface = '<node> \
<method name="Screencast"> <interface name="org.gnome.Shell.Screencast"> \
<arg type="s" direction="in" name="file_template"/> <method name="Screencast"> \
<arg type="a{sv}" direction="in" name="options"/> <arg type="s" direction="in" name="file_template"/> \
<arg type="b" direction="out" name="success"/> <arg type="a{sv}" direction="in" name="options"/> \
<arg type="s" direction="out" name="filename_used"/> <arg type="b" direction="out" name="success"/> \
</method> <arg type="s" direction="out" name="filename_used"/> \
<method name="ScreencastArea"> </method> \
<arg type="i" direction="in" name="x"/> <method name="ScreencastArea"> \
<arg type="i" direction="in" name="y"/> <arg type="i" direction="in" name="x"/> \
<arg type="i" direction="in" name="width"/> <arg type="i" direction="in" name="y"/> \
<arg type="i" direction="in" name="height"/> <arg type="i" direction="in" name="width"/> \
<arg type="s" direction="in" name="file_template"/> <arg type="i" direction="in" name="height"/> \
<arg type="a{sv}" direction="in" name="options"/> <arg type="s" direction="in" name="file_template"/> \
<arg type="b" direction="out" name="success"/> <arg type="a{sv}" direction="in" name="options"/> \
<arg type="s" direction="out" name="filename_used"/> <arg type="b" direction="out" name="success"/> \
</method> <arg type="s" direction="out" name="filename_used"/> \
<method name="StopScreencast"> </method> \
<arg type="b" direction="out" name="success"/> <method name="StopScreencast"> \
</method> <arg type="b" direction="out" name="success"/> \
</interface>; </method> \
</interface> \
</node>';
const ScreencastService = new Lang.Class({ const ScreencastService = new Lang.Class({
Name: 'ScreencastService', Name: 'ScreencastService',

View File

@ -15,45 +15,47 @@ const Lightbox = imports.ui.lightbox;
const Main = imports.ui.main; const Main = imports.ui.main;
const Tweener = imports.ui.tweener; const Tweener = imports.ui.tweener;
const ScreenshotIface = <interface name="org.gnome.Shell.Screenshot"> const ScreenshotIface = '<node> \
<method name="ScreenshotArea"> <interface name="org.gnome.Shell.Screenshot"> \
<arg type="i" direction="in" name="x"/> <method name="ScreenshotArea"> \
<arg type="i" direction="in" name="y"/> <arg type="i" direction="in" name="x"/> \
<arg type="i" direction="in" name="width"/> <arg type="i" direction="in" name="y"/> \
<arg type="i" direction="in" name="height"/> <arg type="i" direction="in" name="width"/> \
<arg type="b" direction="in" name="flash"/> <arg type="i" direction="in" name="height"/> \
<arg type="s" direction="in" name="filename"/> <arg type="b" direction="in" name="flash"/> \
<arg type="b" direction="out" name="success"/> <arg type="s" direction="in" name="filename"/> \
<arg type="s" direction="out" name="filename_used"/> <arg type="b" direction="out" name="success"/> \
</method> <arg type="s" direction="out" name="filename_used"/> \
<method name="ScreenshotWindow"> </method> \
<arg type="b" direction="in" name="include_frame"/> <method name="ScreenshotWindow"> \
<arg type="b" direction="in" name="include_cursor"/> <arg type="b" direction="in" name="include_frame"/> \
<arg type="b" direction="in" name="flash"/> <arg type="b" direction="in" name="include_cursor"/> \
<arg type="s" direction="in" name="filename"/> <arg type="b" direction="in" name="flash"/> \
<arg type="b" direction="out" name="success"/> <arg type="s" direction="in" name="filename"/> \
<arg type="s" direction="out" name="filename_used"/> <arg type="b" direction="out" name="success"/> \
</method> <arg type="s" direction="out" name="filename_used"/> \
<method name="Screenshot"> </method> \
<arg type="b" direction="in" name="include_cursor"/> <method name="Screenshot"> \
<arg type="b" direction="in" name="flash"/> <arg type="b" direction="in" name="include_cursor"/> \
<arg type="s" direction="in" name="filename"/> <arg type="b" direction="in" name="flash"/> \
<arg type="b" direction="out" name="success"/> <arg type="s" direction="in" name="filename"/> \
<arg type="s" direction="out" name="filename_used"/> <arg type="b" direction="out" name="success"/> \
</method> <arg type="s" direction="out" name="filename_used"/> \
<method name="SelectArea"> </method> \
<arg type="i" direction="out" name="x"/> <method name="SelectArea"> \
<arg type="i" direction="out" name="y"/> <arg type="i" direction="out" name="x"/> \
<arg type="i" direction="out" name="width"/> <arg type="i" direction="out" name="y"/> \
<arg type="i" direction="out" name="height"/> <arg type="i" direction="out" name="width"/> \
</method> <arg type="i" direction="out" name="height"/> \
<method name="FlashArea"> </method> \
<arg type="i" direction="in" name="x"/> <method name="FlashArea"> \
<arg type="i" direction="in" name="y"/> <arg type="i" direction="in" name="x"/> \
<arg type="i" direction="in" name="width"/> <arg type="i" direction="in" name="y"/> \
<arg type="i" direction="in" name="height"/> <arg type="i" direction="in" name="width"/> \
</method> <arg type="i" direction="in" name="height"/> \
</interface>; </method> \
</interface> \
</node>';
const ScreenshotService = new Lang.Class({ const ScreenshotService = new Lang.Class({
Name: 'ScreenshotService', Name: 'ScreenshotService',

View File

@ -69,16 +69,18 @@ function waitLeisure() {
}; };
} }
const PerfHelperIface = <interface name="org.gnome.Shell.PerfHelper"> const PerfHelperIface = '<node> \
<method name="CreateWindow"> <interface name="org.gnome.Shell.PerfHelper"> \
<arg type="i" direction="in" /> <method name="CreateWindow"> \
<arg type="i" direction="in" /> <arg type="i" direction="in" /> \
<arg type="b" direction="in" /> <arg type="i" direction="in" /> \
<arg type="b" direction="in" /> <arg type="b" direction="in" /> \
</method> <arg type="b" direction="in" /> \
<method name="WaitWindows" /> </method> \
<method name="DestroyWindows" /> <method name="WaitWindows" /> \
</interface>; <method name="DestroyWindows" /> \
</interface> \
</node>';
var PerfHelperProxy = Gio.DBusProxy.makeProxyWrapper(PerfHelperIface); var PerfHelperProxy = Gio.DBusProxy.makeProxyWrapper(PerfHelperIface);
function PerfHelper() { function PerfHelper() {

View File

@ -15,59 +15,63 @@ const Main = imports.ui.main;
const Screenshot = imports.ui.screenshot; const Screenshot = imports.ui.screenshot;
const ViewSelector = imports.ui.viewSelector; const ViewSelector = imports.ui.viewSelector;
const GnomeShellIface = <interface name="org.gnome.Shell"> const GnomeShellIface = '<node> \
<method name="Eval"> <interface name="org.gnome.Shell"> \
<arg type="s" direction="in" name="script" /> <method name="Eval"> \
<arg type="b" direction="out" name="success" /> <arg type="s" direction="in" name="script" /> \
<arg type="s" direction="out" name="result" /> <arg type="b" direction="out" name="success" /> \
</method> <arg type="s" direction="out" name="result" /> \
<method name="FocusSearch"/> </method> \
<method name="ShowOSD"> <method name="FocusSearch"/> \
<arg type="a{sv}" direction="in" name="params"/> <method name="ShowOSD"> \
</method> <arg type="a{sv}" direction="in" name="params"/> \
<method name="FocusApp"> </method> \
<arg type="s" direction="in" name="id"/> <method name="FocusApp"> \
</method> <arg type="s" direction="in" name="id"/> \
<method name="ShowApplications" /> </method> \
<method name="GrabAccelerator"> <method name="ShowApplications" /> \
<arg type="s" direction="in" name="accelerator"/> <method name="GrabAccelerator"> \
<arg type="u" direction="in" name="flags"/> <arg type="s" direction="in" name="accelerator"/> \
<arg type="u" direction="out" name="action"/> <arg type="u" direction="in" name="flags"/> \
</method> <arg type="u" direction="out" name="action"/> \
<method name="GrabAccelerators"> </method> \
<arg type="a(su)" direction="in" name="accelerators"/> <method name="GrabAccelerators"> \
<arg type="au" direction="out" name="actions"/> <arg type="a(su)" direction="in" name="accelerators"/> \
</method> <arg type="au" direction="out" name="actions"/> \
<method name="UngrabAccelerator"> </method> \
<arg type="u" direction="in" name="action"/> <method name="UngrabAccelerator"> \
<arg type="b" direction="out" name="success"/> <arg type="u" direction="in" name="action"/> \
</method> <arg type="b" direction="out" name="success"/> \
<signal name="AcceleratorActivated"> </method> \
<arg name="action" type="u" /> <signal name="AcceleratorActivated"> \
<arg name="deviceid" type="u" /> <arg name="action" type="u" /> \
<arg name="timestamp" type="u" /> <arg name="deviceid" type="u" /> \
</signal> <arg name="timestamp" type="u" /> \
<property name="Mode" type="s" access="read" /> </signal> \
<property name="OverviewActive" type="b" access="readwrite" /> <property name="Mode" type="s" access="read" /> \
<property name="ShellVersion" type="s" access="read" /> <property name="OverviewActive" type="b" access="readwrite" /> \
</interface>; <property name="ShellVersion" type="s" access="read" /> \
</interface> \
</node>';
const ScreenSaverIface = <interface name="org.gnome.ScreenSaver"> const ScreenSaverIface = '<node> \
<method name="Lock"> <interface name="org.gnome.ScreenSaver"> \
</method> <method name="Lock"> \
<method name="GetActive"> </method> \
<arg name="active" direction="out" type="b" /> <method name="GetActive"> \
</method> <arg name="active" direction="out" type="b" /> \
<method name="SetActive"> </method> \
<arg name="value" direction="in" type="b" /> <method name="SetActive"> \
</method> <arg name="value" direction="in" type="b" /> \
<method name="GetActiveTime"> </method> \
<arg name="value" direction="out" type="u" /> <method name="GetActiveTime"> \
</method> <arg name="value" direction="out" type="u" /> \
<signal name="ActiveChanged"> </method> \
<arg name="new_value" type="b" /> <signal name="ActiveChanged"> \
</signal> <arg name="new_value" type="b" /> \
</interface>; </signal> \
</interface> \
</node>';
const GnomeShell = new Lang.Class({ const GnomeShell = new Lang.Class({
Name: 'GnomeShellDBus', Name: 'GnomeShellDBus',
@ -246,41 +250,43 @@ const GnomeShell = new Lang.Class({
ShellVersion: Config.PACKAGE_VERSION ShellVersion: Config.PACKAGE_VERSION
}); });
const GnomeShellExtensionsIface = <interface name="org.gnome.Shell.Extensions"> const GnomeShellExtensionsIface = '<node> \
<method name="ListExtensions"> <interface name="org.gnome.Shell.Extensions"> \
<arg type="a{sa{sv}}" direction="out" name="extensions" /> <method name="ListExtensions"> \
</method> <arg type="a{sa{sv}}" direction="out" name="extensions" /> \
<method name="GetExtensionInfo"> </method> \
<arg type="s" direction="in" name="extension" /> <method name="GetExtensionInfo"> \
<arg type="a{sv}" direction="out" name="info" /> <arg type="s" direction="in" name="extension" /> \
</method> <arg type="a{sv}" direction="out" name="info" /> \
<method name="GetExtensionErrors"> </method> \
<arg type="s" direction="in" name="extension" /> <method name="GetExtensionErrors"> \
<arg type="as" direction="out" name="errors" /> <arg type="s" direction="in" name="extension" /> \
</method> <arg type="as" direction="out" name="errors" /> \
<signal name="ExtensionStatusChanged"> </method> \
<arg type="s" name="uuid"/> <signal name="ExtensionStatusChanged"> \
<arg type="i" name="state"/> <arg type="s" name="uuid"/> \
<arg type="s" name="error"/> <arg type="i" name="state"/> \
</signal> <arg type="s" name="error"/> \
<method name="InstallRemoteExtension"> </signal> \
<arg type="s" direction="in" name="uuid"/> <method name="InstallRemoteExtension"> \
<arg type="s" direction="out" name="result"/> <arg type="s" direction="in" name="uuid"/> \
</method> <arg type="s" direction="out" name="result"/> \
<method name="UninstallExtension"> </method> \
<arg type="s" direction="in" name="uuid"/> <method name="UninstallExtension"> \
<arg type="b" direction="out" name="success"/> <arg type="s" direction="in" name="uuid"/> \
</method> <arg type="b" direction="out" name="success"/> \
<method name="LaunchExtensionPrefs"> </method> \
<arg type="s" direction="in" name="uuid"/> <method name="LaunchExtensionPrefs"> \
</method> <arg type="s" direction="in" name="uuid"/> \
<method name="ReloadExtension"> </method> \
<arg type="s" direction="in" name="uuid"/> <method name="ReloadExtension"> \
</method> <arg type="s" direction="in" name="uuid"/> \
<method name="CheckForUpdates"> </method> \
</method> <method name="CheckForUpdates"> \
<property name="ShellVersion" type="s" access="read" /> </method> \
</interface>; <property name="ShellVersion" type="s" access="read" /> \
</interface> \
</node>';
const GnomeShellExtensions = new Lang.Class({ const GnomeShellExtensions = new Lang.Class({
Name: 'GnomeShellExtensionsDBus', Name: 'GnomeShellExtensionsDBus',

View File

@ -521,36 +521,38 @@ const ShellProcessesDialog = new Lang.Class({
}); });
Signals.addSignalMethods(ShellProcessesDialog.prototype); Signals.addSignalMethods(ShellProcessesDialog.prototype);
const GnomeShellMountOpIface = <interface name="org.Gtk.MountOperationHandler"> const GnomeShellMountOpIface = '<node> \
<method name="AskPassword"> <interface name="org.Gtk.MountOperationHandler"> \
<arg type="s" direction="in" name="object_id"/> <method name="AskPassword"> \
<arg type="s" direction="in" name="message"/> <arg type="s" direction="in" name="object_id"/> \
<arg type="s" direction="in" name="icon_name"/> <arg type="s" direction="in" name="message"/> \
<arg type="s" direction="in" name="default_user"/> <arg type="s" direction="in" name="icon_name"/> \
<arg type="s" direction="in" name="default_domain"/> <arg type="s" direction="in" name="default_user"/> \
<arg type="u" direction="in" name="flags"/> <arg type="s" direction="in" name="default_domain"/> \
<arg type="u" direction="out" name="response"/> <arg type="u" direction="in" name="flags"/> \
<arg type="a{sv}" direction="out" name="response_details"/> <arg type="u" direction="out" name="response"/> \
</method> <arg type="a{sv}" direction="out" name="response_details"/> \
<method name="AskQuestion"> </method> \
<arg type="s" direction="in" name="object_id"/> <method name="AskQuestion"> \
<arg type="s" direction="in" name="message"/> <arg type="s" direction="in" name="object_id"/> \
<arg type="s" direction="in" name="icon_name"/> <arg type="s" direction="in" name="message"/> \
<arg type="as" direction="in" name="choices"/> <arg type="s" direction="in" name="icon_name"/> \
<arg type="u" direction="out" name="response"/> <arg type="as" direction="in" name="choices"/> \
<arg type="a{sv}" direction="out" name="response_details"/> <arg type="u" direction="out" name="response"/> \
</method> <arg type="a{sv}" direction="out" name="response_details"/> \
<method name="ShowProcesses"> </method> \
<arg type="s" direction="in" name="object_id"/> <method name="ShowProcesses"> \
<arg type="s" direction="in" name="message"/> <arg type="s" direction="in" name="object_id"/> \
<arg type="s" direction="in" name="icon_name"/> <arg type="s" direction="in" name="message"/> \
<arg type="ai" direction="in" name="application_pids"/> <arg type="s" direction="in" name="icon_name"/> \
<arg type="as" direction="in" name="choices"/> <arg type="ai" direction="in" name="application_pids"/> \
<arg type="u" direction="out" name="response"/> <arg type="as" direction="in" name="choices"/> \
<arg type="a{sv}" direction="out" name="response_details"/> <arg type="u" direction="out" name="response"/> \
</method> <arg type="a{sv}" direction="out" name="response_details"/> \
<method name="Close"/> </method> \
</interface>; <method name="Close"/> \
</interface> \
</node>';
const ShellMountOperationType = { const ShellMountOperationType = {
NONE: 0, NONE: 0,

View File

@ -11,9 +11,11 @@ const Slider = imports.ui.slider;
const BUS_NAME = 'org.gnome.SettingsDaemon.Power'; const BUS_NAME = 'org.gnome.SettingsDaemon.Power';
const OBJECT_PATH = '/org/gnome/SettingsDaemon/Power'; const OBJECT_PATH = '/org/gnome/SettingsDaemon/Power';
const BrightnessInterface = <interface name="org.gnome.SettingsDaemon.Power.Screen"> const BrightnessInterface = '<node> \
<property name='Brightness' type='i' access='readwrite'/> <interface name="org.gnome.SettingsDaemon.Power.Screen"> \
</interface>; <property name="Brightness" type="i" access="readwrite"/> \
</interface> \
</node>';
const BrightnessProxy = Gio.DBusProxy.makeProxyWrapper(BrightnessInterface); const BrightnessProxy = Gio.DBusProxy.makeProxyWrapper(BrightnessInterface);

View File

@ -41,11 +41,13 @@ const MAX_INPUT_SOURCE_ACTIVATION_TIME = 4000; // ms
const BUS_NAME = 'org.gnome.SettingsDaemon.Keyboard'; const BUS_NAME = 'org.gnome.SettingsDaemon.Keyboard';
const OBJECT_PATH = '/org/gnome/SettingsDaemon/Keyboard'; const OBJECT_PATH = '/org/gnome/SettingsDaemon/Keyboard';
const KeyboardManagerInterface = <interface name="org.gnome.SettingsDaemon.Keyboard"> const KeyboardManagerInterface = '<node> \
<method name="SetInputSource"> <interface name="org.gnome.SettingsDaemon.Keyboard"> \
<arg type="u" direction="in" /> <method name="SetInputSource"> \
</method> <arg type="u" direction="in" /> \
</interface>; </method> \
</interface> \
</node>';
const KeyboardManagerProxy = Gio.DBusProxy.makeProxyWrapper(KeyboardManagerInterface); const KeyboardManagerProxy = Gio.DBusProxy.makeProxyWrapper(KeyboardManagerInterface);

View File

@ -11,15 +11,17 @@ const PopupMenu = imports.ui.popupMenu;
const BUS_NAME = 'org.freedesktop.UPower'; const BUS_NAME = 'org.freedesktop.UPower';
const OBJECT_PATH = '/org/freedesktop/UPower/devices/DisplayDevice'; const OBJECT_PATH = '/org/freedesktop/UPower/devices/DisplayDevice';
const DisplayDeviceInterface = <interface name="org.freedesktop.UPower.Device"> const DisplayDeviceInterface = '<node> \
<property name="Type" type="u" access="read"/> <interface name="org.freedesktop.UPower.Device"> \
<property name="State" type="u" access="read"/> <property name="Type" type="u" access="read"/> \
<property name="Percentage" type="d" access="read"/> <property name="State" type="u" access="read"/> \
<property name="TimeToEmpty" type="x" access="read"/> <property name="Percentage" type="d" access="read"/> \
<property name="TimeToFull" type="x" access="read"/> <property name="TimeToEmpty" type="x" access="read"/> \
<property name="IsPresent" type="b" access="read"/> <property name="TimeToFull" type="x" access="read"/> \
<property name="IconName" type="s" access="read"/> <property name="IsPresent" type="b" access="read"/> \
</interface>; <property name="IconName" type="s" access="read"/> \
</interface> \
</node>';
const PowerManagerProxy = Gio.DBusProxy.makeProxyWrapper(DisplayDeviceInterface); const PowerManagerProxy = Gio.DBusProxy.makeProxyWrapper(DisplayDeviceInterface);

View File

@ -9,9 +9,11 @@ const PopupMenu = imports.ui.popupMenu;
const BUS_NAME = 'org.gnome.SettingsDaemon.Rfkill'; const BUS_NAME = 'org.gnome.SettingsDaemon.Rfkill';
const OBJECT_PATH = '/org/gnome/SettingsDaemon/Rfkill'; const OBJECT_PATH = '/org/gnome/SettingsDaemon/Rfkill';
const RfkillManagerInterface = <interface name="org.gnome.SettingsDaemon.Rfkill"> const RfkillManagerInterface = '<node> \
<property name="AirplaneMode" type="b" access="readwrite" /> <interface name="org.gnome.SettingsDaemon.Rfkill"> \
</interface>; <property name="AirplaneMode" type="b" access="readwrite" /> \
</interface> \
</node>';
const RfkillManagerProxy = Gio.DBusProxy.makeProxyWrapper(RfkillManagerInterface); const RfkillManagerProxy = Gio.DBusProxy.makeProxyWrapper(RfkillManagerInterface);