diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-05-05 23:38:21 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-05-05 23:38:21 +0200 |
commit | 08039f0bfcd35efca2a075bbf49fe3e45d89d5bf (patch) | |
tree | 62152c893faf4b24a6925fdebe2a9b40f2bfe1fd /src/device.h | |
parent | e62300da9bf1eedbbdb1579f75b0d75d351e6950 (diff) | |
parent | 8f7c0cdbfd3ac5166a9628f917a0184fe5a44628 (diff) | |
download | ayatana-indicator-power-08039f0bfcd35efca2a075bbf49fe3e45d89d5bf.tar.gz ayatana-indicator-power-08039f0bfcd35efca2a075bbf49fe3e45d89d5bf.tar.bz2 ayatana-indicator-power-08039f0bfcd35efca2a075bbf49fe3e45d89d5bf.zip |
Merge branch 'tari01-pr/adapt-to-level-ido'
Attributes GH PR #76: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/76
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/device.h b/src/device.h index fa41fe0..169305b 100644 --- a/src/device.h +++ b/src/device.h @@ -42,6 +42,7 @@ typedef struct _IndicatorPowerDeviceClass IndicatorPowerDeviceClass; typedef struct _IndicatorPowerDevicePrivate IndicatorPowerDevicePrivate; #define INDICATOR_POWER_DEVICE_KIND "kind" +#define INDICATOR_POWER_DEVICE_MODEL "model" #define INDICATOR_POWER_DEVICE_STATE "state" #define INDICATOR_POWER_DEVICE_OBJECT_PATH "object-path" #define INDICATOR_POWER_DEVICE_PERCENTAGE "percentage" @@ -125,6 +126,7 @@ GType indicator_power_device_get_type (void); IndicatorPowerDevice* indicator_power_device_new (const gchar * object_path, UpDeviceKind kind, + const gchar * model, gdouble percentage, UpDeviceState state, time_t time, @@ -132,12 +134,13 @@ IndicatorPowerDevice* indicator_power_device_new (const gchar * object_path, /** * Convenience wrapper around indicator_power_device_new() - * @variant holds the same args as indicator_power_device_new() in "(susdut)" + * @variant holds the same args as indicator_power_device_new() in "(sussdut)" */ IndicatorPowerDevice* indicator_power_device_new_from_variant (GVariant * variant); UpDeviceKind indicator_power_device_get_kind (const IndicatorPowerDevice * device); +const gchar * indicator_power_device_get_model (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); @@ -145,10 +148,10 @@ time_t indicator_power_device_get_time (const IndicatorPower gboolean indicator_power_device_get_power_supply (const IndicatorPowerDevice * device); GStrv indicator_power_device_get_icon_names (const IndicatorPowerDevice * device, gboolean panel); -GIcon * indicator_power_device_get_gicon (const IndicatorPowerDevice * device, gboolean panel); +GIcon * indicator_power_device_get_gicon (const IndicatorPowerDevice * device, gboolean panel, gboolean bShowCharge); -char * indicator_power_device_get_readable_text (const IndicatorPowerDevice * device); +char * indicator_power_device_get_readable_text (const IndicatorPowerDevice * device, gboolean bModelName); char * indicator_power_device_get_accessible_text (const IndicatorPowerDevice * device); |