/usr/lib/ocaml/obus/uPower_device.mli is in libobus-ocaml-dev 1.1.5-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | (*
* uPower_device.mli
* -----------------
* Copyright : (c) 2010, Jeremie Dimino <jeremie@dimino.org>
* Licence : BSD3
*
* This file is a part of obus, an ocaml implementation of D-Bus.
*)
(** UPower device interface *)
include OBus_proxy.Private
(** {6 Types} *)
(** Type of power source *)
type typ =
[ `Unknown
| `Line_power
| `Battery
| `Ups
| `Monitor
| `Mouse
| `Keyboard
| `Pda
| `Phone ]
(** The battery power state *)
type state =
[ `Unknown
| `Charging
| `Discharging
| `Empty
| `Fully_charged
| `Pending_charge
| `Pending_discharge ]
(** Technology used in the battery *)
type technology =
[ `Unknown
| `Lithium_ion
| `Lithium_polymer
| `Lithium_iron_phosphate
| `Lead_acid
| `Nickel_cadmium
| `Nickel_metal_hydride ]
val general_error : OBus_error.name
(** {6 Methods} *)
val get_statistics : t -> typ : string -> (float * float) list Lwt.t
val get_history : t -> typ : string -> timespan : int -> resolution : int -> (int * float * int) list Lwt.t
val refresh : t -> unit Lwt.t
(** {6 Signals} *)
val changed : t -> unit OBus_signal.t
(** {6 Properties} *)
val recall_url : t -> string OBus_property.r
val recall_vendor : t -> string OBus_property.r
val recall_notice : t -> bool OBus_property.r
val technology : t -> technology OBus_property.r
val capacity : t -> float OBus_property.r
val is_rechargeable : t -> bool OBus_property.r
val state : t -> state OBus_property.r
val is_present : t -> bool OBus_property.r
val percentage : t -> float OBus_property.r
val time_to_full : t -> int64 OBus_property.r
val time_to_empty : t -> int64 OBus_property.r
val voltage : t -> float OBus_property.r
val energy_rate : t -> float OBus_property.r
val energy_full_design : t -> float OBus_property.r
val energy_full : t -> float OBus_property.r
val energy_empty : t -> float OBus_property.r
val energy : t -> float OBus_property.r
val online : t -> bool OBus_property.r
val has_statistics : t -> bool OBus_property.r
val has_history : t -> bool OBus_property.r
val power_supply : t -> bool OBus_property.r
val typ : t -> typ OBus_property.r
val update_time : t -> int64 OBus_property.r
val serial : t -> string OBus_property.r
val model : t -> string OBus_property.r
val vendor : t -> string OBus_property.r
val native_path : t -> string OBus_property.r
val properties : t -> OBus_property.group
|