summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Expand)AuthorFilesLines
2008-08-04add a new ninary to get the battery power stateRichard Hughes1-2/+1
2008-08-04treat the timespan like a range, and search backwards so we aways get some dataRichard Hughes1-7/+14
2008-08-04correct the signature of GetOnBattery and GetLowbatteryRichard Hughes1-2/+2
2008-08-04use DkpHistoryObj in devkit-powerRichard Hughes3-225/+0
2008-08-04don't crash if we do GetStatistics on a device without historyRichard Hughes1-0/+7
2008-08-04Add a GetStatistics() method on org.freedesktop.DeviceKit.Power.Source so we ...Richard Hughes3-7/+132
2008-08-04the power_supply class gives a very clear status enum, just use itRichard Hughes1-21/+15
2008-08-04add simple history data to be saved and retrievedRichard Hughes4-1/+612
2008-08-04add some helpers to manipulate DkpHistoryObj objects for the future history a...Richard Hughes2-0/+224
2008-08-04handle SIGINT so we can clean up after ourselvesRichard Hughes1-1/+22
2008-08-04remove some trivial whitespace and an invalid commentRichard Hughes1-7/+0
2008-08-01only poll when we have no updates when charging or discharging. if we are emp...Richard Hughes1-6/+6
2008-08-01add some trivial gitignore filesRichard Hughes1-0/+9
2008-08-01of course, the right thing to do is make a static lib to avoid playing with ....Richard Hughes7-1049/+4
2008-08-01trivial line fixes :-)Richard Hughes2-9/+0
2008-08-01don't print blank lines in dkp_object_printRichard Hughes2-3/+34
2008-08-01abstract out the meta-device into a seporate struct so we can copy it, check ...Richard Hughes4-207/+540
2008-08-01add the abilty to turn the text enum forms back into enumerated typesRichard Hughes2-8/+78
2008-08-01fix the type and state enums when getting unknownRichard Hughes1-0/+6
2008-08-01add some debugging infrastructureRichard Hughes9-70/+396
2008-08-01convert spaces to tabs, and make sure functions have sensible namesRichard Hughes10-1502/+1624
2008-08-01change the GObject prefix from DevkitPower to DkpRichard Hughes10-296/+296
2008-08-01rename some source filesRichard Hughes8-41/+43
2008-08-01add some more GCC warningsRichard Hughes9-0/+0
2008-07-25when we haven't got a rate value, try to calculate thisRichard Hughes1-14/+61
2008-07-25don't return an ID if we are not presentRichard Hughes1-0/+4
2008-07-25add some more logic into the power supply classRichard Hughes1-7/+16
2008-07-25calculate a quick and dirty time remaining valueRichard Hughes1-0/+30
2008-07-25only suppy an id for devices supplying the systemRichard Hughes1-0/+4
2008-07-25add a power-supply bool property so we can tell if the device is a supplier o...Richard Hughes2-0/+22
2008-07-25provide a function for getting a unique ID for the batteryRichard Hughes2-0/+43
2008-07-25add a couple of sanity checks for the battery valuesRichard Hughes1-0/+10
2008-07-24add two bits of data that session applications really want -- battery mode an...Richard Hughes3-0/+113
2008-07-24add the Suspend() and Hibernate() stub methodsRichard Hughes3-0/+110
2008-07-24if the battery goes away, properly clean up the cached valuesRichard Hughes1-0/+7
2008-07-24using the technology as the coldplug indicator is a bad idea, properly flag thisRichard Hughes1-24/+62
2008-07-24export battery-is-present as some batteries in laptops and UPSs can be removedRichard Hughes2-0/+25
2008-07-24export battery-is-rechargeable so we can export if we think it can be rechargedRichard Hughes2-0/+22
2008-07-24export battery-capacity as it's a useful property of a batteryRichard Hughes2-0/+26
2008-07-24battery-technology should be an enumerated typeRichard Hughes4-7/+80
2008-07-24add the battery state enumerated type propertyRichard Hughes4-1/+67
2008-07-24split out the enumerated stuff into devkit-power-enum.[c|h] as they'll be mor...Richard Hughes4-14/+112
2008-07-24remove the battery-energy-empty-design parameter, it's never going to be anyt...Richard Hughes2-20/+0
2008-07-24add a new convenience function, sysfs_get_bool()Richard Hughes2-0/+19
2008-07-24fixup a few places where we mention a disk daemon to a power daemonRichard Hughes2-2/+2
2008-05-08forgot to add filesDavid Zeuthen2-0/+16
2008-05-08initial commitDavid Zeuthen13-0/+2317