Ubuntu Pastebin

Paste from xxx at Thu, 22 Oct 2015 20:03:40 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
const SettingsManagerInterface = '<interface name="org.freedesktop.DBus.Properties">'+
                                 '<method name="GetAll">'+
                                     '<arg type="s" direction="in"/>'+
                                     '<arg type="a{sv}" direction="out"/>'+
                                 '</method>'+
                                 '<signal name="PropertiesChanged">'+
                                     '<arg type="s,a{sv},a[s]" />' +
                                 '</signal>' +
                                 '</interface>';

let SettingsManagerProxy = Gio.DBusProxy.makeProxyWrapper(SettingsManagerInterface);

const DisplayDeviceInterface = '<interface name="org.freedesktop.UPower.Device">'+
    '<property name="Type" type="u" access="read"/>' +
    '<property name="State" type="u" access="read"/>' +
    '<property name="Percentage" type="d" access="read"/>' +
    '<property name="TimeToEmpty" type="x" access="read"/>' +
    '<property name="TimeToFull" type="x" access="read"/>' +
    '<property name="IsPresent" type="b" access="read"/>' +
    '<property name="IconName" type="s" access="read"/>' +
    '</interface>';
Download as text