Commit graph

120 commits

Author SHA1 Message Date
Richard Hughes
83b4c54818 Merge branch 'master' into temp 2008-08-26 16:04:36 +01:00
Richard Hughes
a8bca8a3c6 trivial: forgot to change one file 2008-08-26 16:04:31 +01:00
Richard Hughes
b5022f451a remove the battery- and line-power- prefix from the device properties 2008-08-26 15:51:35 +01:00
Richard Hughes
2061b6c436 rename GetStats to GetHistory 2008-08-26 15:43:35 +01:00
Richard Hughes
44745b5505 don't report negative rate when charging 2008-08-26 15:42:36 +01:00
Richard Hughes
15a2a35625 add a MONITOR type, and make the printing code a little mor sane 2008-08-22 10:23:43 +01:00
Richard Hughes
a2ead86ec4 add functionality to monitor a Watts Up Pro device 2008-08-22 10:08:14 +01:00
Richard Hughes
c5415a35a6 trivial: add some unit comments 2008-08-22 10:05:53 +01:00
Richard Hughes
ea2847339f rename configure.in to configure.ac for non-oldness 2008-08-20 16:41:05 +01:00
Richard Hughes
c5b8eb66b1 don't use deprecate udev rule matching, and prefix our new variables 2008-08-20 16:39:20 +01:00
Richard Hughes
bb5203f221 don't export a shared library 2008-08-20 16:38:48 +01:00
Richard Hughes
9c19c1437f document the output of the Device.GetStatistics() method 2008-08-15 11:40:57 +01:00
Richard Hughes
35e91c0d96 headers should be in /usr/include/DeviceKit/devkit-power not /usr/include/DeviceKit-power/dkp-gobject 2008-08-15 11:29:36 +01:00
Richard Hughes
6d9ebae815 .pc file should be called devkit-power not devicekit-power 2008-08-15 11:26:28 +01:00
Richard Hughes
5dbc9c29cc use DKP_ID_BATTERY_TYPE rather than ID_BATTERY_TYPE to not pollute the main name space 2008-08-15 11:21:36 +01:00
Richard Hughes
7a52f8701d trivial: dist the corect udev rules 2008-08-13 08:24:15 +01:00
Richard Hughes
81493a944d Merge branch 'master' of ssh://hughsient@git.freedesktop.org/git/DeviceKit/DeviceKit-power 2008-08-13 08:10:46 +01:00
Richard Hughes
3a468e7521 only match on USB HID devices so we don't try to connect to every USB device on the system at startup 2008-08-13 08:08:29 +01:00
Richard Hughes
a104eb5519 failure to register on the bus or refresh is a fatal coldplug 2008-08-13 08:04:33 +01:00
Richard Hughes
57aea5a7e5 always coldplug power_supply devices too 2008-08-13 08:04:01 +01:00
Richard Hughes
0cdf136fbc use the device file when it's available for usbhid devices 2008-08-12 21:20:16 +01:00
David Zeuthen
2cc32c1dc7 update location of git repos
Someone also needs to do s/devicekit/DeviceKit/ on the fd.o git servers...
2008-08-12 12:35:14 -04:00
Richard Hughes
5b950ddeb3 add support for old style HID UPS devices 2008-08-12 14:49:47 +01:00
Richard Hughes
5f0bb1e249 refactor the device coldplugging so it's easier to add new device types in the future 2008-08-12 11:14:26 +01:00
Richard Hughes
bcec1fc47a don't setup the DkpCsr poll before we know that the coldplugging has succeeded 2008-08-12 11:10:52 +01:00
Richard Hughes
0c38eb62fa don't force a refresh in DkpDevice if the coldplugging failed 2008-08-12 11:10:14 +01:00
Richard Hughes
b2b3a94f63 the : char is not a allowed in a object_path 2008-08-12 11:09:46 +01:00
Richard Hughes
c9d3c59ad3 actually print the stats when we call dkp_client_device_print() 2008-08-11 13:26:45 +01:00
Richard Hughes
f776b73d8d create the history profile directory when we install 2008-08-11 13:26:10 +01:00
Richard Hughes
d818aaece8 save the history in a sane place, not in my Desktop directory... 2008-08-11 13:25:38 +01:00
Richard Hughes
25b89e99c3 reresh the object before we calculate the id, else we fail and do not get history 2008-08-11 13:24:48 +01:00
Richard Hughes
c464646932 make the library into a proper shared library I can use in gnome-power-manager 2008-08-11 12:32:30 +01:00
Richard Hughes
1068d680b8 check for libusb in configure 2008-08-11 12:28:08 +01:00
Richard Hughes
32aaf9ed93 move DkpClient and DkpClientDevice to libdevkit-power 2008-08-11 10:40:22 +01:00
Richard Hughes
f8a902dff9 failing to get a device in the csr code isn't a bad error 2008-08-11 10:28:31 +01:00
Richard Hughes
5083edecd0 fix device adding and removal 2008-08-11 10:25:53 +01:00
Richard Hughes
80c020e709 fix the signals in DkpClient 2008-08-11 10:14:55 +01:00
Richard Hughes
c85710d905 add the signals class information to DkpClient 2008-08-11 10:11:31 +01:00
Richard Hughes
40b0fa5d17 Abort in DkpCsr if we can't read the bus or dev numbers 2008-08-11 08:14:55 +01:00
Richard Hughes
6c43423929 trivial: add GObject tests for DkpDevice 2008-08-11 08:13:48 +01:00
Richard Hughes
72a13ae91d the enums of of DkpDevice origin, not DkpSource 2008-08-10 18:02:48 +01:00
Richard Hughes
a0be0fea17 add CSR support so we know about mice and keyboards 2008-08-10 17:45:38 +01:00
Richard Hughes
50c485fc54 Add DkpObject printing hooks for mouse and keyboard 2008-08-10 08:52:37 +01:00
Richard Hughes
fd884567be trivial cosmetic changes to DkpSupply 2008-08-10 08:46:59 +01:00
Richard Hughes
bae6018698 don't try to access klass->get_stats() if it's not set 2008-08-10 08:46:09 +01:00
Richard Hughes
918c35586b refactor out DkpDevice and DkpSupply so we can add another type of device without a metric ton of copy and paste 2008-08-09 14:27:32 +01:00
Richard Hughes
6a498f0487 fix dkp_object_clear to actually do the right thing and not free the object 2008-08-09 08:42:13 +01:00
Richard Hughes
c8789936b4 make get_on_battery and get_low_battery part of the DkpDevice vtable, not direct methods 2008-08-08 13:59:30 +01:00
Richard Hughes
5f43202a82 enumerate usb devices as well as power_supply devices 2008-08-08 13:47:47 +01:00
Richard Hughes
7af7ac23ad Add some udev rules to merge in the CSR mice 2008-08-08 13:46:51 +01:00