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 |
|
Richard Hughes
|
9f9debcf90
|
add a convenience function sysfs_get_hex()
|
2008-08-08 13:46:17 +01:00 |
|
Richard Hughes
|
4756da4b81
|
make some stuff non-global in devkit-power
|
2008-08-06 06:58:45 +01:00 |
|
Richard Hughes
|
b242cbd9a6
|
trivial: remove some un-needed defines
|
2008-08-05 17:29:06 +01:00 |
|
Richard Hughes
|
5b6bae572f
|
abstract out the client and client device parts of the devkit-power tool
|
2008-08-05 17:26:35 +01:00 |
|
Richard Hughes
|
da8ec3f3b1
|
move the enumeration into it's own function ready for tidyup
|
2008-08-05 15:39:05 +01:00 |
|
Richard Hughes
|
12c592ddee
|
make the LowBatteryChanged and OnBatteryChanged signals work
|
2008-08-05 12:30:33 +01:00 |
|
Richard Hughes
|
16f2c597aa
|
don't segfault when a history file is present but empty
|
2008-08-05 12:25:27 +01:00 |
|
Richard Hughes
|
38f86d7dae
|
add some GObject checks in a couple of modules to try to debug a problem I'm seeing
|
2008-08-05 12:02:18 +01:00 |
|
Richard Hughes
|
22dfd9e7db
|
don't get the ID in DkpDevice, we already set it in DkpSource
|
2008-08-05 11:41:26 +01:00 |
|
Richard Hughes
|
eed12da295
|
split out the device list abstraction as a proper GObject so we can easily get the device list for the power queries
|
2008-08-05 10:44:57 +01:00 |
|
Richard Hughes
|
4e4859c9cb
|
add some helpers in DkpSource to get the binary states of primary batteries
|
2008-08-05 09:45:05 +01:00 |
|
Richard Hughes
|
9dca67f115
|
add a new ninary to get the battery power state
|
2008-08-04 17:31:52 +01:00 |
|
Richard Hughes
|
53d3e2bf25
|
treat the timespan like a range, and search backwards so we aways get some data
|
2008-08-04 16:57:56 +01:00 |
|
Richard Hughes
|
50cadd8622
|
correct the signature of GetOnBattery and GetLowbattery
|
2008-08-04 16:51:30 +01:00 |
|
Richard Hughes
|
9f171a14ef
|
make devkit-power --dump work
|
2008-08-04 16:41:58 +01:00 |
|
Richard Hughes
|
8c4efc79f3
|
use DkpHistoryObj in devkit-power
|
2008-08-04 16:25:25 +01:00 |
|
Richard Hughes
|
3e8ab9514a
|
get the device stats in the helper tool
|
2008-08-04 16:12:49 +01:00 |
|
Richard Hughes
|
fad9b70a7a
|
don't crash if we do GetStatistics on a device without history
|
2008-08-04 16:12:10 +01:00 |
|
Richard Hughes
|
0e617b862c
|
Add a GetStatistics() method on org.freedesktop.DeviceKit.Power.Source so we can print some funky graphs
|
2008-08-04 15:36:47 +01:00 |
|
Richard Hughes
|
dfd1103067
|
the power_supply class gives a very clear status enum, just use it
|
2008-08-04 14:52:33 +01:00 |
|
Richard Hughes
|
a562159bc7
|
add simple history data to be saved and retrieved
|
2008-08-04 14:48:02 +01:00 |
|
Richard Hughes
|
1d7655c14f
|
add some helpers to manipulate DkpHistoryObj objects for the future history and profiling code
|
2008-08-04 14:34:33 +01:00 |
|
Richard Hughes
|
3f606443b5
|
add a function dkp_object_diff() to pretty print the differences between two DkpObject's
|
2008-08-04 14:30:34 +01:00 |
|
Richard Hughes
|
66b6a80722
|
print a better seconds/minutes/hours text -- needs localising properly
|
2008-08-04 13:49:41 +01:00 |
|
Richard Hughes
|
b5b5b6824b
|
handle SIGINT so we can clean up after ourselves
|
2008-08-04 12:20:26 +01:00 |
|
Richard Hughes
|
f1558a27f5
|
remove some trivial whitespace and an invalid comment
|
2008-08-04 12:19:28 +01:00 |
|
Richard Hughes
|
0cd1a18a20
|
add the skeleton --dump option for debugging -- more to come
|
2008-08-04 11:54:15 +01:00 |
|
Richard Hughes
|
117720b03d
|
add a GIO dep so we can read and write files in the future
|
2008-08-04 11:53:20 +01:00 |
|