summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Expand)AuthorFilesLines
2008-08-11failing to get a device in the csr code isn't a bad errorRichard Hughes1-8/+8
2008-08-11fix device adding and removalRichard Hughes2-17/+12
2008-08-11Abort in DkpCsr if we can't read the bus or dev numbersRichard Hughes1-0/+12
2008-08-11trivial: add GObject tests for DkpDeviceRichard Hughes1-1/+19
2008-08-10the enums of of DkpDevice origin, not DkpSourceRichard Hughes5-38/+38
2008-08-10add CSR support so we know about mice and keyboardsRichard Hughes5-29/+414
2008-08-10trivial cosmetic changes to DkpSupplyRichard Hughes2-4/+6
2008-08-10don't try to access klass->get_stats() if it's not setRichard Hughes1-0/+7
2008-08-09refactor out DkpDevice and DkpSupply so we can add another type of device wit...Richard Hughes10-1148/+1232
2008-08-08make get_on_battery and get_low_battery part of the DkpDevice vtable, not dir...Richard Hughes5-22/+53
2008-08-08enumerate usb devices as well as power_supply devicesRichard Hughes1-6/+4
2008-08-08Add some udev rules to merge in the CSR miceRichard Hughes2-5/+31
2008-08-08add a convenience function sysfs_get_hex()Richard Hughes2-0/+19
2008-08-05make the LowBatteryChanged and OnBatteryChanged signals workRichard Hughes3-32/+118
2008-08-05don't segfault when a history file is present but emptyRichard Hughes1-2/+8
2008-08-05add some GObject checks in a couple of modules to try to debug a problem I'm ...Richard Hughes4-102/+133
2008-08-05don't get the ID in DkpDevice, we already set it in DkpSourceRichard Hughes1-5/+0
2008-08-05split out the device list abstraction as a proper GObject so we can easily ge...Richard Hughes4-53/+277
2008-08-05add some helpers in DkpSource to get the binary states of primary batteriesRichard Hughes3-0/+34
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