Merge branch 'master' into gregoa
[gregoa/zavai.git] / src / devkit-power-gobject.vapi
1 /* devkit-power-gobject.vapi generated by vapigen, do not modify. */
2
3 [CCode (cprefix = "Dkp", lower_case_cprefix = "dkp_")]
4 namespace Dkp {
5         [CCode (cheader_filename = "devkit-power-gobject/devicekit-power.h")]
6         public class Client : GLib.Object {
7                 [CCode (has_construct_function = false)]
8                 public Client ();
9                 public unowned GLib.PtrArray enumerate_devices () throws GLib.Error;
10                 [CCode (cname = "dkp_client_can_hibernate")]
11                 public bool get_can_hibernate ();
12                 [CCode (cname = "dkp_client_can_suspend")]
13                 public bool get_can_suspend ();
14                 public unowned string get_daemon_version ();
15                 [CCode (cname = "dkp_client_lid_is_closed")]
16                 public bool get_lid_is_closed ();
17                 [CCode (cname = "dkp_client_on_battery")]
18                 public bool get_on_battery ();
19                 [CCode (cname = "dkp_client_on_low_battery")]
20                 public bool get_on_low_battery ();
21                 public bool hibernate () throws GLib.Error;
22                 public bool suspend () throws GLib.Error;
23                 [NoAccessorMethod]
24                 public bool can_hibernate { get; }
25                 [NoAccessorMethod]
26                 public bool can_suspend { get; }
27                 public string daemon_version { get; }
28                 [NoAccessorMethod]
29                 public bool lid_is_closed { get; }
30                 [NoAccessorMethod]
31                 public bool lid_is_present { get; }
32                 [NoAccessorMethod]
33                 public bool on_battery { get; }
34                 [NoAccessorMethod]
35                 public bool on_low_battery { get; }
36                 public virtual signal void changed ();
37                 public virtual signal void device_added (void* device);
38                 public virtual signal void device_changed (void* device);
39                 public virtual signal void device_removed (void* device);
40         }
41         [CCode (cheader_filename = "devkit-power-gobject/devicekit-power.h")]
42         public class Device : GLib.Object {
43                 [CCode (has_construct_function = false)]
44                 public Device ();
45                 public unowned GLib.PtrArray get_history (string type, uint timespec, uint resolution) throws GLib.Error;
46                 public unowned string get_object_path ();
47                 public unowned GLib.PtrArray get_statistics (string type) throws GLib.Error;
48                 public bool print ();
49                 public bool refresh () throws GLib.Error;
50                 public bool set_object_path (string object_path) throws GLib.Error;
51                 public static Dkp.DeviceState state_from_text (string state);
52                 public static unowned string state_to_text (Dkp.DeviceState state_enum);
53                 public static Dkp.DeviceTechnology technology_from_text (string technology);
54                 public static unowned string technology_to_text (Dkp.DeviceTechnology technology_enum);
55                 public static Dkp.DeviceType type_from_text (string type);
56                 public static unowned string type_to_text (Dkp.DeviceType type_enum);
57                 [NoAccessorMethod]
58                 public double capacity { get; set; }
59                 [NoAccessorMethod]
60                 public double energy { get; set; }
61                 [NoAccessorMethod]
62                 public double energy_empty { get; set; }
63                 [NoAccessorMethod]
64                 public double energy_full { get; set; }
65                 [NoAccessorMethod]
66                 public double energy_full_design { get; set; }
67                 [NoAccessorMethod]
68                 public double energy_rate { get; set; }
69                 [NoAccessorMethod]
70                 public bool has_history { get; set; }
71                 [NoAccessorMethod]
72                 public bool has_statistics { get; set; }
73                 [NoAccessorMethod]
74                 public bool is_present { get; set; }
75                 [NoAccessorMethod]
76                 public bool is_rechargeable { get; set; }
77                 [NoAccessorMethod]
78                 public string model { owned get; set; }
79                 [NoAccessorMethod]
80                 public string native_path { owned get; set; }
81                 [NoAccessorMethod]
82                 public bool online { get; set; }
83                 [NoAccessorMethod]
84                 public double percentage { get; set; }
85                 [NoAccessorMethod]
86                 public bool power_supply { get; set; }
87                 [NoAccessorMethod]
88                 public bool recall_notice { get; set; }
89                 [NoAccessorMethod]
90                 public string recall_url { owned get; set; }
91                 [NoAccessorMethod]
92                 public string recall_vendor { owned get; set; }
93                 [NoAccessorMethod]
94                 public string serial { owned get; set; }
95                 [NoAccessorMethod]
96                 public uint state { get; set; }
97                 [NoAccessorMethod]
98                 public uint technology { get; set; }
99                 [NoAccessorMethod]
100                 public int64 time_to_empty { get; set; }
101                 [NoAccessorMethod]
102                 public int64 time_to_full { get; set; }
103                 [NoAccessorMethod]
104                 public uint type { get; set; }
105                 [NoAccessorMethod]
106                 public uint64 update_time { get; set; }
107                 [NoAccessorMethod]
108                 public string vendor { owned get; set; }
109                 [NoAccessorMethod]
110                 public double voltage { get; set; }
111                 public virtual signal void changed (void* obj);
112         }
113         [Compact]
114         [CCode (copy_function = "dkp_history_obj_copy", cheader_filename = "devkit-power-gobject/devicekit-power.h")]
115         public class HistoryObj {
116                 public Dkp.DeviceState state;
117                 public uint time;
118                 public double value;
119                 [CCode (has_construct_function = false)]
120                 public HistoryObj ();
121                 public bool clear ();
122                 public unowned Dkp.HistoryObj copy ();
123                 public static unowned Dkp.HistoryObj create (double value, Dkp.DeviceState state);
124                 public bool equal (Dkp.HistoryObj obj2);
125                 public static unowned Dkp.HistoryObj from_string (string text);
126                 public bool print ();
127                 public unowned string to_string ();
128         }
129         [Compact]
130         [CCode (copy_function = "dkp_qos_obj_copy", cheader_filename = "devkit-power-gobject/devicekit-power.h")]
131         public class QosObj {
132                 public weak string cmdline;
133                 public uint cookie;
134                 public bool persistent;
135                 public uint pid;
136                 public weak string sender;
137                 public uint64 timespec;
138                 public Dkp.QosType type;
139                 public uint uid;
140                 public int value;
141                 [CCode (has_construct_function = false)]
142                 public QosObj ();
143                 public unowned Dkp.QosObj copy ();
144                 public bool equal (Dkp.QosObj obj2);
145                 public bool print ();
146         }
147         [Compact]
148         [CCode (copy_function = "dkp_stats_obj_copy", cheader_filename = "devkit-power-gobject/devicekit-power.h")]
149         public class StatsObj {
150                 public double accuracy;
151                 public double value;
152                 [CCode (has_construct_function = false)]
153                 public StatsObj ();
154                 public unowned Dkp.StatsObj copy ();
155                 public static unowned Dkp.StatsObj create (double value, double accuracy);
156                 public static unowned Dkp.StatsObj from_string (string text);
157                 public unowned string to_string ();
158         }
159         [CCode (cheader_filename = "devkit-power-gobject/devicekit-power.h")]
160         public class Wakeups : GLib.Object {
161                 [CCode (has_construct_function = false)]
162                 public Wakeups ();
163                 public unowned GLib.PtrArray get_data () throws GLib.Error;
164                 public uint get_total () throws GLib.Error;
165                 public bool has_capability ();
166                 public virtual signal void data_changed ();
167                 public virtual signal void total_changed (uint value);
168         }
169         [Compact]
170         [CCode (copy_function = "dkp_wakeups_obj_copy", cheader_filename = "devkit-power-gobject/devicekit-power.h")]
171         public class WakeupsObj {
172                 public weak string cmdline;
173                 public weak string details;
174                 public uint id;
175                 public bool is_userspace;
176                 public uint old;
177                 public float value;
178                 [CCode (has_construct_function = false)]
179                 public WakeupsObj ();
180                 public unowned Dkp.WakeupsObj copy ();
181                 public bool equal (Dkp.WakeupsObj obj2);
182                 public bool print ();
183         }
184         [CCode (cprefix = "DKP_DEVICE_STATE_", has_type_id = "0", cheader_filename = "devkit-power-gobject/devicekit-power.h")]
185         public enum DeviceState {
186                 UNKNOWN,
187                 CHARGING,
188                 DISCHARGING,
189                 EMPTY,
190                 FULLY_CHARGED,
191                 PENDING_CHARGE,
192                 PENDING_DISCHARGE,
193                 LAST
194         }
195         [CCode (cprefix = "DKP_DEVICE_TECHNOLOGY_", has_type_id = "0", cheader_filename = "devkit-power-gobject/devicekit-power.h")]
196         public enum DeviceTechnology {
197                 UNKNOWN,
198                 LITHIUM_ION,
199                 LITHIUM_POLYMER,
200                 LITHIUM_IRON_PHOSPHATE,
201                 LEAD_ACID,
202                 NICKEL_CADMIUM,
203                 NICKEL_METAL_HYDRIDE,
204                 LAST
205         }
206         [CCode (cprefix = "DKP_DEVICE_TYPE_", has_type_id = "0", cheader_filename = "devkit-power-gobject/devicekit-power.h")]
207         public enum DeviceType {
208                 UNKNOWN,
209                 LINE_POWER,
210                 BATTERY,
211                 UPS,
212                 MONITOR,
213                 MOUSE,
214                 KEYBOARD,
215                 PDA,
216                 PHONE,
217                 LAST
218         }
219         [CCode (cprefix = "DKP_QOS_TYPE_", has_type_id = "0", cheader_filename = "devkit-power-gobject/devicekit-power.h")]
220         public enum QosType {
221                 UNKNOWN,
222                 NETWORK,
223                 CPU_DMA,
224                 LAST
225         }
226         [CCode (cheader_filename = "devkit-power-gobject/devicekit-power.h")]
227         public const int COMPILE_VERSION;
228         [CCode (cheader_filename = "devkit-power-gobject/devicekit-power.h")]
229         public static Dkp.QosType qos_type_from_text (string type);
230         [CCode (cheader_filename = "devkit-power-gobject/devicekit-power.h")]
231         public static unowned string qos_type_to_text (Dkp.QosType type);
232 }