Richard Hughes
1df99367c5
trivial: use g_strcmp0 in more places
2009-01-23 17:28:50 +00:00
Richard Hughes
1f74a6f2e7
trivial: add back the files that were renamed
2009-01-23 17:16:19 +00:00
Richard Hughes
39df99ae20
trivial: add a fixme
2009-01-23 17:14:02 +00:00
Richard Hughes
35bd038ac7
trivial cleanups of davidz patch -- no functional changes
2008-11-12 09:58:36 +00:00
David Zeuthen
c9dbc80f36
turn some methods into properties
...
GetOnBattery() -> :on-battery (bool)
GetLowBattery() -> :on-low-battery (bool)
CanSuspend() -> :can-suspend (bool)
CanHibernate() -> :can-hibernate (bool)
also add a new property for the daemon version
:daemon-version (string)
introduce a new Changed() signal that replaces
::LowBatteryChanged()
::OnBatteryChanged()
Also fix a few bugs
- we need to compute ::on-battery and ::on-low-battery *after*
the actual device is updated
- need to fire Device::Changed() before Power::DeviceChanged()
otherwise devkit-power --monitor-detail lies
also fix up libdevkit-power and devkit-power(1) to use these changes.
2008-11-11 13:58:26 -05:00
David Zeuthen
9f4bdecd33
move object paths so things are rooted under /org/freedesktop/DeviceKit/Power
2008-11-11 10:42:53 -05:00
David Zeuthen
12eb76b8be
update my email address
2008-11-11 10:13:24 -05:00
Richard Hughes
7382bcc168
trivial: add a resolution parameter to GetHistory rather than just guessing a number on the server
2008-11-08 16:13:00 +00:00
Richard Hughes
e5de05c69a
bigfix: fix a problem with egg_obj_list_clear where the last item was not being removed from the list
2008-11-08 15:50:30 +00:00
Richard Hughes
885c3e4748
bugfix: use 0 for unknown, not -1 as some values like rate and voltage are valid when negative
2008-11-07 12:34:52 +00:00
Richard Hughes
eded5b20fc
feature: all logging for all the other device types too
2008-11-07 12:26:47 +00:00
Richard Hughes
f5ea862a06
feature: add voltage property of a power device
2008-11-07 10:40:11 +00:00
Richard Hughes
63397c1e83
expand the client helper library to cover all the base API for gnome-power-manager
2008-11-04 12:02:23 +00:00
Richard Hughes
a1a4304b4e
trivial: egg updates
2008-10-23 14:39:44 +01:00
Richard Hughes
c87521af72
trivial: 'unexport' dkp_acpi_to_device_technology - 2
2008-10-23 13:55:10 +01:00
Richard Hughes
b43fa536fb
feature: add two new properties, has-history and has-statistics
2008-10-23 13:38:22 +01:00
Richard Hughes
670c3bfc7b
trivial: update defines needed for egg debugging code
2008-10-23 12:48:01 +01:00
Richard Hughes
8d2bf6ad14
trivial: egg updates
2008-10-23 12:03:35 +01:00
Richard Hughes
8bcc56ce4c
trivial: egg updates
2008-09-06 11:12:47 +01:00
Richard Hughes
73d5bcb4c0
Add two remove functions to the generic object list
2008-09-04 14:29:31 +01:00
Richard Hughes
4fb995f784
trivial egg updates
2008-09-04 10:05:57 +01:00
Richard Hughes
d400e1ae7c
bugfix: don't clear the list when we print it
2008-09-03 10:22:34 +01:00
Richard Hughes
6557463ba2
trivial: add to_sting and from_string methods to DkpStatsObj
2008-09-03 10:22:10 +01:00
Richard Hughes
28f542de99
rename the printed string from Stats to History
2008-09-03 10:21:34 +01:00
Richard Hughes
53e42d86b7
trivial updates to shared egg- files
2008-09-02 17:53:31 +01:00
Richard Hughes
5e97daacc0
move the savelist code form DkpHistory to EggObjList as it's a common action
2008-08-29 13:20:52 +01:00
Richard Hughes
9ef076ef69
trivial: add some functionality to the EggObjList
2008-08-29 12:56:52 +01:00
Richard Hughes
38a050b01f
switch from using GPtrArray to EggObjList as this provides us with auto array cleanup for different objects
2008-08-28 17:28:26 +01:00
Richard Hughes
7fdcc278dc
convert to using egg_ functionality like other projects
2008-08-28 15:49:19 +01:00
Richard Hughes
b53b7dadcf
don't return stats when we actually mean history -- the stats parts need to be written
2008-08-26 16:43:30 +01:00
Richard Hughes
cb9d4e6975
add DkpStatsObj convenience helpers
2008-08-26 16:40:47 +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
15a2a35625
add a MONITOR type, and make the printing code a little mor sane
2008-08-22 10:23:43 +01:00
Richard Hughes
c5415a35a6
trivial: add some unit comments
2008-08-22 10:05:53 +01:00
Richard Hughes
bb5203f221
don't export a shared library
2008-08-20 16:38:48 +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
c9d3c59ad3
actually print the stats when we call dkp_client_device_print()
2008-08-11 13:26:45 +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
32aaf9ed93
move DkpClient and DkpClientDevice to libdevkit-power
2008-08-11 10:40:22 +01:00
Richard Hughes
72a13ae91d
the enums of of DkpDevice origin, not DkpSource
2008-08-10 18:02:48 +01:00
Richard Hughes
50c485fc54
Add DkpObject printing hooks for mouse and keyboard
2008-08-10 08:52:37 +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
16f2c597aa
don't segfault when a history file is present but empty
2008-08-05 12:25:27 +01:00
Richard Hughes
8c4efc79f3
use DkpHistoryObj in devkit-power
2008-08-04 16:25:25 +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
74683e3fa7
of course, the right thing to do is make a static lib to avoid playing with ../src/ type paths
2008-08-01 17:27:12 +01:00