Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on Mar 2011
#1
I'm new in dbus, now I trying to use QDBus catch phone call just like this:

QDBusConnection::systemBus().connect(QString(), "/com/nokia/csd/call", "com.nokia.csd.Call", "Coming", this, SLOT(callEvent(QString,QString)));

but the slot haven't been called...
I use dbus-monitor to check this case, I find that only "dbus-monitor --system" can catch this signal, which means this signal is a system level signal, am I right?
Then I use "QDBusConnection::systemBus().connect" to hook other signal which can be catched by "dbus-monitor --session", it can work.
So I wonder if "QDBusConnection::systemBus().connect" just catch session level signal? And then how to use qdbus to get system level signal?
 
Posts: 2 | Thanked: 0 times | Joined on Mar 2011
#2
I get it...
QDBusConnection::SessionBus.connect catch session signal
QDBusConnection::SystemBus.connect catch system signal
 
Reply

Tags
qdbus signal


 
Forum Jump


All times are GMT. The time now is 23:00.