![]() |
2010-03-02
, 22:03
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#2
|
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
![]() |
2010-03-03
, 06:41
|
|
Posts: 385 |
Thanked: 344 times |
Joined on Jan 2010
@ Israel
|
#3
|
![]() |
2010-03-03
, 08:10
|
Posts: 883 |
Thanked: 980 times |
Joined on Jul 2007
@ Bern, Switzerland
|
#4
|
The Following User Says Thank You to twaelti For This Useful Post: | ||
![]() |
2010-03-03
, 08:19
|
|
Posts: 385 |
Thanked: 344 times |
Joined on Jan 2010
@ Israel
|
#5
|
You can use mdbus2 (in extras-devel IIRC) to listen to and inspect d-bus. Just make a call, let it ring, stop calling.
Also, there are call log apps around, download and examine them. It might be that there is a status flag in the call log database that could be useful to you.
Use gobject.timeout_add_seconds for a more efficient blinking. Don't use animated gifs, just use two icons alternating between them.
The yellow window might be related to the hildon notification. Or just compare the process list before and after having a missed call.
When there is an unanswered call, the led is blinking accordingly.
After you view the missed call (by clicking the yellow window or by going straight to the call log in the phone application) the led stops.
How can I "catch" this "event" in python?
I guess it has to do with some registration to a d-bus, but I don't know how to do that in python nor (more important) what is d-bus should I register to.
Another question - I'm using "icon_theme.load_icon(...)" to get a hildon icon and display it in the status bar, but I want a custom png/gif (to display different icons according to the number of missed calls) - it seems not to be working with a file i pick from /home/opt/usr/share/icons/hicolor/...
And another one - how can I make the icon blink (like the 'you have updates' icon)? when I'm using gobject.timeout_add to hide and show it, it takes about 5.4% of CPU - which is too much. I was thinking about animated GIF, but as I said before, I don't even know how to use a PNG as an icon.
Thanks in advance!