1*2912Sartem /*************************************************************************** 2*2912Sartem * CVSID: $Id$ 3*2912Sartem * 4*2912Sartem * util_pm.h - Various Powermanagement related utilities 5*2912Sartem * 6*2912Sartem * Copyright (C) 2005 Richard Hughes <richard@hughsie.com> 7*2912Sartem * Copyright (C) 2005 Danny Kukawka <danny.kukawka@web.de> 8*2912Sartem * 9*2912Sartem * Licensed under the Academic Free License version 2.1 10*2912Sartem * 11*2912Sartem * This program is free software; you can redistribute it and/or modify 12*2912Sartem * it under the terms of the GNU General Public License as published by 13*2912Sartem * the Free Software Foundation; either version 2 of the License, or 14*2912Sartem * (at your option) any later version. 15*2912Sartem * 16*2912Sartem * This program is distributed in the hope that it will be useful, 17*2912Sartem * but WITHOUT ANY WARRANTY; without even the implied warranty of 18*2912Sartem * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19*2912Sartem * GNU General Public License for more details. 20*2912Sartem * 21*2912Sartem * You should have received a copy of the GNU General Public License 22*2912Sartem * along with this program; if not, write to the Free Software 23*2912Sartem * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 24*2912Sartem * 25*2912Sartem **************************************************************************/ 26*2912Sartem 27*2912Sartem #ifndef UTIL_PM_H 28*2912Sartem #define UTIL_PM_H 29*2912Sartem 30*2912Sartem const char *util_get_battery_technology (const char *type); 31*2912Sartem 32*2912Sartem int util_compute_time_remaining (const char *id, int chargeRate, int chargeLevel, int chargeLastFull, 33*2912Sartem gboolean isDischarging, gboolean isCharging, gboolean guessChargeRate); 34*2912Sartem 35*2912Sartem int util_compute_percentage_charge (const char *id, int chargeLevel, int chargeLastFull); 36*2912Sartem 37*2912Sartem #endif /* UTIL__PM_H */ 38