aboutsummaryrefslogtreecommitdiff
path: root/src/device.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-03-14 14:13:58 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-03-14 14:13:58 +0000
commitfe4849e354c850057e2e6c6ff9aaa80d6ab5c815 (patch)
tree023bff8e5b900acf02a0df18111a9dabb00df18f /src/device.h
parent2596b0560ff2aecab8a558e8906236f4f2758f8d (diff)
parentd6159805fc552643902321b3d41d1a0a53594f05 (diff)
downloadayatana-indicator-power-fe4849e354c850057e2e6c6ff9aaa80d6ab5c815.tar.gz
ayatana-indicator-power-fe4849e354c850057e2e6c6ff9aaa80d6ab5c815.tar.bz2
ayatana-indicator-power-fe4849e354c850057e2e6c6ff9aaa80d6ab5c815.zip
Change the implementation of the title text / title accessible text / menuitem text to follow the spec changes in https://wiki.ubuntu.com/Power?action=diff&rev2=44&rev1=43#Title and update the tests accordingly. Fixes: 1234458
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h37
1 files changed, 21 insertions, 16 deletions
diff --git a/src/device.h b/src/device.h
index 1f395a1..3a10f89 100644
--- a/src/device.h
+++ b/src/device.h
@@ -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);
-
-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);
+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);
+
+
+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