How to use QDBus to register a system bus services ?
Hi
Hope the below source code will help you.
QDBusConnection conn = QDBusConnection::systemBus();
if (!conn.isConnected())
{
qDebug() << "QDBusConnection::systemBus() failed.";
return;
}
bool error = conn.connect("", SERVICENAME,SIGNALNAME,SIGNAL, this, SLOT(onSignal()));
if (!error)
{
//Connection failure
}
Gokul Kartha,
GSM:+358438243619,
Skype:everyourgokul
Linkedin :http://www.linkedin.com/in/gokulkartha
My Blog : http://gokulkartha.blogspot.com