maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Does QDBusConnection receive system signal? (https://talk.maemo.org/showthread.php?t=70912)

yuanlai2222 2011-03-11 02:50

Does QDBusConnection receive system signal?
 
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?

yuanlai2222 2011-03-11 06:00

Re: Does QDBusConnection receive system signal?
 
I get it...
QDBusConnection::SessionBus.connect catch session signal
QDBusConnection::SystemBus.connect catch system signal


All times are GMT. The time now is 19:17.

vBulletin® Version 3.8.8