Thread
:
MAEMO 5 QT, trying a simple QT app to display battery percentage
View Single Post
krk969
2009-12-25 , 14:17
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#
15
Originally Posted by
ashyk36
has this app been created yet or is it stil in progress?
working on it.
Ive got the progress indicator working
im at the moment checking out other options to probe the battery level.
Options I have in mind are :
1. poll (using a configurable interval) using lshal | grep percentage, but members have suggested its not the best option . this is my last resort.
2. as n900_ag suggested above use QT mobility API's , QSystemDeviceInfo class which is the most appropriate method I think. I can probe various battery info using this including level.
But Ive been having tough time compiling this package
thread ==>
http://talk.maemo.org/showthread.php?t=38117
3. use DBus libs for getting the battery level info. still need to check this one in detail.
i hope i can sort this out before my xmas holidays run out
any ideas and suggestions are most welcome.
cheers.
Last edited by krk969; 2009-12-25 at
14:19
.
Quote & Reply
|
krk969
View Public Profile
Send a private message to krk969
Find all posts by krk969