blob: 36d35fe395f6e42b3ad9a38e3c27f354a019e26f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
[DBus (name = "org.freedesktop.UPower")]
private interface AstalBattery.IUPower : DBusProxy {
public abstract ObjectPath[] enumerate_devices() throws Error;
public abstract ObjectPath get_display_device() throws Error;
public abstract string get_critical_action() throws Error;
public signal void device_added(ObjectPath object_path);
public signal void device_removed(ObjectPath object_path);
public abstract string daemon_version { owned get; }
public abstract bool on_battery { get; }
public abstract bool lid_is_closed { get; }
public abstract bool lid_is_present { get; }
}
[DBus (name = "org.freedesktop.UPower.Device")]
private interface AstalBattery.IUPowerDevice : DBusProxy {
// public abstract HistoryDataPoint[] get_history (string type, uint32 timespan, uint32 resolution) throws GLib.Error;
// public abstract StatisticsDataPoint[] get_statistics (string type) throws GLib.Error;
// public abstract void refresh () throws GLib.Error;
public abstract uint Type { get; }
public abstract string native_path { owned get; }
public abstract string vendor { owned get; }
public abstract string model { owned get; }
public abstract string serial { owned get; }
public abstract uint64 update_time { get; }
public abstract bool power_supply { get; }
public abstract bool has_history { get; }
public abstract bool has_statistics { get; }
public abstract bool online { get; }
public abstract double energy { get; }
public abstract double energy_empty { get; }
public abstract double energy_full { get; }
public abstract double energy_full_design { get; }
public abstract double energy_rate { get; }
public abstract double voltage { get; }
public abstract int32 charge_cycles { get; }
public abstract double luminosity { get; }
public abstract int64 time_to_empty { get; }
public abstract int64 time_to_full { get; }
public abstract double percentage { get; }
public abstract double temperature { get; }
public abstract bool is_present { get; }
public abstract uint state { get; }
public abstract bool is_rechargable { get; }
public abstract double capacity { get; }
public abstract uint technology { get; }
public abstract uint32 warning_level { get; }
public abstract uint32 battery_level { get; }
public abstract string icon_name { owned get; }
}
// private struct AstalBattery.HistoryDataPoint {
// uint32 time;
// double value;
// uint32 state;
// }
//
// private struct AstalBattery.StatisticsDataPoint {
// double value;
// double accuracy;
// }
|