diff options
author | Ted Gould <ted@gould.cx> | 2014-09-08 22:58:48 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-09-08 22:58:48 -0500 |
commit | 334e3b3130cbde5a96e6da5323d40418db80f8ef (patch) | |
tree | 299d5e2a5cdaab892fe7c92b9405f721635124e3 /src/device.h | |
parent | cc51d0fc02f2980cc08fcd6cfc929ea61ff9d93a (diff) | |
parent | 059246d136ed8c24c5e78e6a966bf2dfc945fe4e (diff) | |
download | ayatana-indicator-power-334e3b3130cbde5a96e6da5323d40418db80f8ef.tar.gz ayatana-indicator-power-334e3b3130cbde5a96e6da5323d40418db80f8ef.tar.bz2 ayatana-indicator-power-334e3b3130cbde5a96e6da5323d40418db80f8ef.zip |
Merge trunk
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/src/device.h b/src/device.h index 1f395a1..d867707 100644 --- a/src/device.h +++ b/src/device.h @@ -24,7 +24,7 @@ License along with this library. If not, see #ifndef __INDICATOR_POWER_DEVICE_H__ #define __INDICATOR_POWER_DEVICE_H__ -#include <glib-object.h> +#include <gio/gio.h> /* GIcon */ G_BEGIN_DECLS @@ -116,22 +116,27 @@ IndicatorPowerDevice* indicator_power_device_new (const gchar * object_path, IndicatorPowerDevice* indicator_power_device_new_from_variant (GVariant * variant); -UpDeviceKind indicator_power_device_get_kind (const IndicatorPowerDevice * device); -UpDeviceState indicator_power_device_get_state (const IndicatorPowerDevice * device); -const gchar * indicator_power_device_get_object_path (const IndicatorPowerDevice * device); -gdouble indicator_power_device_get_percentage (const IndicatorPowerDevice * device); -time_t indicator_power_device_get_time (const IndicatorPowerDevice * device); +UpDeviceKind indicator_power_device_get_kind (const IndicatorPowerDevice * device); +UpDeviceState indicator_power_device_get_state (const IndicatorPowerDevice * device); +const gchar * indicator_power_device_get_object_path (const IndicatorPowerDevice * device); +gdouble indicator_power_device_get_percentage (const IndicatorPowerDevice * device); +time_t indicator_power_device_get_time (const IndicatorPowerDevice * device); -GStrv indicator_power_device_get_icon_names (const IndicatorPowerDevice * device); -GIcon * indicator_power_device_get_gicon (const IndicatorPowerDevice * device); +GStrv indicator_power_device_get_icon_names (const IndicatorPowerDevice * device); +GIcon * indicator_power_device_get_gicon (const IndicatorPowerDevice * device); -gchar * indicator_power_device_get_label (const IndicatorPowerDevice * device); -void indicator_power_device_get_header (const IndicatorPowerDevice * device, - gboolean show_time, - gboolean show_percentage, - gchar ** header, - gchar ** a11y); +char * indicator_power_device_get_readable_text (const IndicatorPowerDevice * device); + +char * indicator_power_device_get_accessible_text (const IndicatorPowerDevice * device); + +char * indicator_power_device_get_readable_title (const IndicatorPowerDevice * device, + gboolean want_time, + gboolean want_percent); + +char * indicator_power_device_get_accessible_title (const IndicatorPowerDevice * device, + gboolean want_time, + gboolean want_percent); G_END_DECLS |