diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-06-19 21:13:09 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-06-19 21:13:09 +0000 |
commit | 0ce78de0eae6f44a0afe6e5b4bdc6da83f6dbdf8 (patch) | |
tree | ce626b15bcfb92beec4487a6b7fe50ef4be91dac /src/device.h | |
parent | 0b0585581a8da994362ef4cfe3a2168917a47ff4 (diff) | |
parent | 258f3ad689ae4ba49e2813a5051b4968d568f999 (diff) | |
download | ayatana-indicator-power-0ce78de0eae6f44a0afe6e5b4bdc6da83f6dbdf8.tar.gz ayatana-indicator-power-0ce78de0eae6f44a0afe6e5b4bdc6da83f6dbdf8.tar.bz2 ayatana-indicator-power-0ce78de0eae6f44a0afe6e5b4bdc6da83f6dbdf8.zip |
Convert the power indicator into a service that exports GMenus and GActions in accordance with our indicator-ng design.
Approved by PS Jenkins bot, Ted Gould.
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/device.h b/src/device.h index 3f7bbee..ffbb5da 100644 --- a/src/device.h +++ b/src/device.h @@ -25,7 +25,6 @@ License along with this library. If not, see #define __INDICATOR_POWER_DEVICE_H__ #include <glib-object.h> -#include <libupower-glib/upower.h> G_BEGIN_DECLS @@ -46,6 +45,38 @@ typedef struct _IndicatorPowerDevicePrivate IndicatorPowerDevicePrivate; #define INDICATOR_POWER_DEVICE_PERCENTAGE "percentage" #define INDICATOR_POWER_DEVICE_TIME "time" +typedef enum +{ + UP_DEVICE_KIND_UNKNOWN, + UP_DEVICE_KIND_LINE_POWER, + UP_DEVICE_KIND_BATTERY, + UP_DEVICE_KIND_UPS, + UP_DEVICE_KIND_MONITOR, + UP_DEVICE_KIND_MOUSE, + UP_DEVICE_KIND_KEYBOARD, + UP_DEVICE_KIND_PDA, + UP_DEVICE_KIND_PHONE, + UP_DEVICE_KIND_MEDIA_PLAYER, + UP_DEVICE_KIND_TABLET, + UP_DEVICE_KIND_COMPUTER, + UP_DEVICE_KIND_LAST +} +UpDeviceKind; + +typedef enum +{ + UP_DEVICE_STATE_UNKNOWN, + UP_DEVICE_STATE_CHARGING, + UP_DEVICE_STATE_DISCHARGING, + UP_DEVICE_STATE_EMPTY, + UP_DEVICE_STATE_FULLY_CHARGED, + UP_DEVICE_STATE_PENDING_CHARGE, + UP_DEVICE_STATE_PENDING_DISCHARGE, + UP_DEVICE_STATE_LAST +} +UpDeviceState; + + /** * IndicatorPowerDeviceClass: * @parent_class: #GObjectClass |