aboutsummaryrefslogtreecommitdiff
path: root/src/device.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2017-05-15 15:01:23 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-15 15:01:50 +0200
commitbd1a508aeb9e498dd782678da420d5baf639b4c0 (patch)
tree1b76d4f9435d12a34ab7241535bd673b082cc03f /src/device.h
parentdbfed3a9b70091667233b884d5a7fa3098f4d104 (diff)
downloadayatana-indicator-power-bd1a508aeb9e498dd782678da420d5baf639b4c0.tar.gz
ayatana-indicator-power-bd1a508aeb9e498dd782678da420d5baf639b4c0.tar.bz2
ayatana-indicator-power-bd1a508aeb9e498dd782678da420d5baf639b4c0.zip
Make device with power supply has higher sorting priority. (LP: #1100546)
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/device.h b/src/device.h
index d867707..fad959a 100644
--- a/src/device.h
+++ b/src/device.h
@@ -44,6 +44,7 @@ typedef struct _IndicatorPowerDevicePrivate IndicatorPowerDevicePrivate;
#define INDICATOR_POWER_DEVICE_OBJECT_PATH "object-path"
#define INDICATOR_POWER_DEVICE_PERCENTAGE "percentage"
#define INDICATOR_POWER_DEVICE_TIME "time"
+#define INDICATOR_POWER_DEVICE_POWER_SUPPLY "power-supply"
typedef enum
{
@@ -107,7 +108,8 @@ IndicatorPowerDevice* indicator_power_device_new (const gchar * object_path,
UpDeviceKind kind,
gdouble percentage,
UpDeviceState state,
- time_t time);
+ time_t time,
+ gboolean power_supply);
/**
* Convenience wrapper around indicator_power_device_new()
@@ -121,6 +123,7 @@ UpDeviceState indicator_power_device_get_state (const IndicatorPower
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);
+gboolean indicator_power_device_get_power_supply (const IndicatorPowerDevice * device);
GStrv indicator_power_device_get_icon_names (const IndicatorPowerDevice * device);
GIcon * indicator_power_device_get_gicon (const IndicatorPowerDevice * device);