diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-07-21 11:25:16 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-07-21 11:25:16 -0500 |
commit | 1902911c18a863ca285c53ae323e233119cf0d86 (patch) | |
tree | 95e59c486dd0b10cd919174258f472f255e15501 /src/notifier.h | |
parent | b08f9b096f956b528ad974a30828a809b827efef (diff) | |
download | ayatana-indicator-power-1902911c18a863ca285c53ae323e233119cf0d86.tar.gz ayatana-indicator-power-1902911c18a863ca285c53ae323e233119cf0d86.tar.bz2 ayatana-indicator-power-1902911c18a863ca285c53ae323e233119cf0d86.zip |
remove DeviceProvider from Notifier
Diffstat (limited to 'src/notifier.h')
-rw-r--r-- | src/notifier.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/notifier.h b/src/notifier.h index c224b29..2602171 100644 --- a/src/notifier.h +++ b/src/notifier.h @@ -24,7 +24,7 @@ #include <glib-object.h> #include <gio/gio.h> /* GDBusConnection */ -#include "device-provider.h" +#include "device.h" G_BEGIN_DECLS @@ -37,6 +37,15 @@ typedef struct _IndicatorPowerNotifier IndicatorPowerNotifier; typedef struct _IndicatorPowerNotifierClass IndicatorPowerNotifierClass; typedef struct _IndicatorPowerNotifierPrivate IndicatorPowerNotifierPrivate; +typedef enum +{ + POWER_LEVEL_OK, + POWER_LEVEL_LOW, + POWER_LEVEL_VERY_LOW, + POWER_LEVEL_CRITICAL +} +PowerLevel; + /** * The Indicator Power Notifier. */ @@ -58,13 +67,13 @@ struct _IndicatorPowerNotifierClass GType indicator_power_notifier_get_type (void); -IndicatorPowerNotifier * indicator_power_notifier_new (IndicatorPowerDeviceProvider * provider); +IndicatorPowerNotifier * indicator_power_notifier_new (void); void indicator_power_notifier_set_bus (IndicatorPowerNotifier * self, GDBusConnection * connection); -void indicator_power_notifier_set_device_provider (IndicatorPowerNotifier * self, - IndicatorPowerDeviceProvider * provider); +void indicator_power_notifier_set_device (IndicatorPowerNotifier * self, + IndicatorPowerDevice * provider); G_END_DECLS |