/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- * * Copyright (C) 2008 David Zeuthen * Copyright (C) 2008 Richard Hughes * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * */ #ifndef __DEVKIT_POWER_ENUM_H__ #define __DEVKIT_POWER_ENUM_H__ #include G_BEGIN_DECLS typedef enum { DEVKIT_POWER_TYPE_LINE_POWER, DEVKIT_POWER_TYPE_BATTERY, DEVKIT_POWER_TYPE_UPS, DEVKIT_POWER_TYPE_MOUSE, DEVKIT_POWER_TYPE_KEYBOARD, DEVKIT_POWER_TYPE_PDA, DEVKIT_POWER_TYPE_PHONE, DEVKIT_POWER_TYPE_UNKNOWN } DevkitPowerType; typedef enum { DEVKIT_POWER_STATE_CHARGING, DEVKIT_POWER_STATE_DISCHARGING, DEVKIT_POWER_STATE_EMPTY, DEVKIT_POWER_STATE_FULLY_CHARGED, DEVKIT_POWER_STATE_UNKNOWN } DevkitPowerState; const char *devkit_power_convert_type_to_text (DevkitPowerType type_enum); const char *devkit_power_convert_state_to_text (DevkitPowerState state_enum); G_END_DECLS #endif /* __DEVKIT_POWER_ENUM_H__ */