Commit d1d5705e authored by Yavor Doganov's avatar Yavor Doganov

Imported Upstream version 0.7

parent 3cfc4571
This diff is collapsed.
/*
Project: batmon
Copyright (C) 2006-2010 GNUstep Application Project
Copyright (C) 2006-2013 GNUstep Application Project
Author: Riccardo Mottola
......@@ -22,6 +22,17 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
*/
typedef enum
{
BMBStateUnknown = 0,
BMBStateCharging,
BMBStateDischarging,
BMBStateHigh,
BMBStateLow,
BMBStateCritical,
BMBStateFull,
BMBStateMissing
} BMBatteryStates;
@class NSString;
......@@ -33,11 +44,19 @@
@private char apmPath[1024];
@private NSString *batterySysAcpiString;
#endif
/* ACPI on Linux, using files in /sys : modern kernels and laptops*/
@private BOOL useACPIsys;
@private BOOL useACPIproc;
/* ACPI on Linux, using files in /proc, now as fallback */
@private BOOL useACPIproc;
/* APM on linux, for old kernels, older laptops, non-x86 machines, netbooks, embedded devices */
@private BOOL useAPM;
/* PMU: Power management Unit, specific for powermac, ibooks Apple laptops*/
@private BOOL usePMU;
#endif
@private BOOL useWattHours;
@private float volts;
@private float amps;
......@@ -45,12 +64,14 @@
@private float desCap;
@private float lastCap;
@private float currCap;
@private float critCap;
@private float warnCap;
@private float chargePercent;
@private float timeRemaining;
@private BOOL isCharging;
@private BOOL isCritical;
@private BMBatteryStates batteryState;
@private NSString *chargeState;
@private NSString *batteryType;
@private NSString *batteryManufacturer;
......
This diff is collapsed.
......@@ -13,7 +13,7 @@ include $(GNUSTEP_MAKEFILES)/common.make
#
# Application
#
VERSION = 0.6
VERSION = 0.7
PACKAGE_NAME = batmon
APP_NAME = batmon
batmon_APPLICATION_ICON = BatMon_icon.tif
......@@ -54,7 +54,7 @@ main.m
#
# Makefiles
#
include GNUmakefile.preamble
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/aggregate.make
include $(GNUSTEP_MAKEFILES)/application.make
-include GNUmakefile.postamble
......@@ -21,7 +21,7 @@ ADDITIONAL_INCLUDE_DIRS +=
ADDITIONAL_LIB_DIRS +=
# Additional GUI libraries to link
#
ifeq ($(findstring netbsd, $(GNUSTEP_TARGET_OS)), netbsd)
ADDITIONAL_GUI_LIBS += -lprop
ifeq ($(findstring netbsd, $(GNUSTEP_TARGET_OS)), netbsd)
ADDITIONAL_GUI_LIBS += -lprop
endif
......@@ -56,7 +56,7 @@
"PROJECT_AUTHORS" = (
"Riccardo Mottola (rmottola@users.sf.net)"
);
"PROJECT_COPYRIGHT" = "Copyright (C) 2005-2011";
"PROJECT_COPYRIGHT" = "Copyright (C) 2005-2013";
"PROJECT_COPYRIGHT_DESC" = "Released under GPL";
"PROJECT_CREATOR" = "";
"PROJECT_DESCRIPTION" = "Battery Monitor";
......@@ -81,4 +81,4 @@
"USER_LANGUAGES" = (
English
);
}
\ No newline at end of file
}
......@@ -3,17 +3,17 @@
ApplicationDescription = "Battery Monitor";
ApplicationIcon = "BatMon_icon.tif";
ApplicationName = batmon;
ApplicationRelease = "0.6";
ApplicationRelease = "0.7";
Authors = (
"Riccardo Mottola (rmottola@users.sf.net)"
);
Copyright = "Copyright (C) 2005-2011";
Copyright = "Copyright (C) 2005-2013";
CopyrightDescription = "Released under GPL";
FullVersionID = "0.6";
FullVersionID = "0.7";
NSExecutable = batmon;
NSIcon = "BatMon_icon.tif";
NSMainNibFile = "batmon.gorm";
NSPrincipalClass = NSApplication;
NSRole = Application;
URL = "http://gap.nongnu.org/batmon/";
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment