aboutsummaryrefslogtreecommitdiff
path: root/src/device.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-08-22 23:51:20 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-08-22 23:51:20 -0500
commitc15ff1e02ea0a7ae1f68a66a31dc6ce7d8955575 (patch)
tree675a81a2edbcf0c7eca72e0b5887cb9d410404b4 /src/device.h
parent3c2e7c88bd24441d87a52e702e2e1e985f9abcef (diff)
downloadayatana-indicator-power-c15ff1e02ea0a7ae1f68a66a31dc6ce7d8955575.tar.gz
ayatana-indicator-power-c15ff1e02ea0a7ae1f68a66a31dc6ce7d8955575.tar.bz2
ayatana-indicator-power-c15ff1e02ea0a7ae1f68a66a31dc6ce7d8955575.zip
add show-percentage feature, basing off Haw Loeung's patch.
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/device.h b/src/device.h
index ffbb5da..1f395a1 100644
--- a/src/device.h
+++ b/src/device.h
@@ -116,21 +116,22 @@ 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);
-
-GStrv indicator_power_device_get_icon_names (const IndicatorPowerDevice * device);
-GIcon * indicator_power_device_get_gicon (const IndicatorPowerDevice * device);
-
-void indicator_power_device_get_time_details (const IndicatorPowerDevice * device,
- gchar ** short_details,
- gchar ** details,
- gchar ** accessible_name);
-
-
+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);
+
+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);
G_END_DECLS