QDBus and connect to com.nokia.csd.Call
What I try to do is catch a signal when I an outgoing call is answered and when is closed. I simple want to count the time of my calls. I searched a lot. I even used dbus-monitor to examine the difference of an answered outgoing call and an unanswered one.This is the result.
[CODE]signal sender=:1.17 -> dest=(null destination) serial=1824 path=/com/nokia/csd/call/1; interface=com.nokia.csd.Call.Instance; member=AudioConnect
boolean true
boolean true
boolean false[/CODE]
So I tried to connect the dbus signal to my slot with the following code
[CODE]
bus.connect("com.nokia.csd.Call.Instance", "/com/nokia/csd/call/1", "com.nokia.csd.Call.Instance", "AudioConnect", this, SLOT(handleCall(const QDBusMessage&)));[/CODE]
Sadly nothing happens. Does anyone know how can I understand when my call is answered and when the call is terminated in order to count the time?
Re: QDBus and connect to com.nokia.csd.Call
[QUOTE=crabsody;730234]Sadly nothing happens.[/QUOTE]
And what is your expectation?
[QUOTE=crabsody;730234]Does anyone know how can I understand when my call is answered and when the call is terminated in order to count the time?[/QUOTE]
This DBus API is closed.
Re: QDBus and connect to com.nokia.csd.Call
[QUOTE=divanov;730261]And what is your expectation?
[/QUOTE]
Obviously I would expect that my slot (handleCall) would connect to the dbus signal correctly.
Re: QDBus and connect to com.nokia.csd.Call
[QUOTE=crabsody;730267]Obviously I would expect that my slot (handleCall) would connect to the dbus signal correctly.[/QUOTE]
You don't even check return value of connect method, how do you know it's not connected correctly?
Re: QDBus and connect to com.nokia.csd.Call
[QUOTE=divanov;730268]You don't even check return value of connect method, how do you know it's not connected correctly?[/QUOTE]
sorry I didn't write it down the correct way. I mean that my slot is not being called when it should be. (when I make a phone call). connect returns true.
Re: QDBus and connect to com.nokia.csd.Call
[QUOTE=crabsody;730277]sorry I didn't write it down the correct way. I mean that my slot is not being called when it should be. (when I make a phone call). connect returns true.[/QUOTE]
And what could be [I]bus.[/I]? :)