yuvaraj.addu
13th June 2011, 07:32
Hi All,
I want to connect dbus signal with my Qt Apps.
Tried with below mentioned piece of code
example::example(const QString &service, const QString &path, const char *interface,const QDBusConnection &connection,QObject *parent):QDBusAbstractInterface(service, path, interface,connection,parent)
{
bool val= this->connection().connect(service,path,QString("/myInterface),QString("PropertyChanged"),QString("QString,QDBusVariant"),this,SLOT(stateChanged(QString,QVariant)));
qDebug() << " Value is " << val;
}
Here my Dbus signal signature is
PropertyChanged(string name, variant value)
Always my slot is not at all connected
Could anybody provide here sample code.
Thanks
Yuvaraj
I want to connect dbus signal with my Qt Apps.
Tried with below mentioned piece of code
example::example(const QString &service, const QString &path, const char *interface,const QDBusConnection &connection,QObject *parent):QDBusAbstractInterface(service, path, interface,connection,parent)
{
bool val= this->connection().connect(service,path,QString("/myInterface),QString("PropertyChanged"),QString("QString,QDBusVariant"),this,SLOT(stateChanged(QString,QVariant)));
qDebug() << " Value is " << val;
}
Here my Dbus signal signature is
PropertyChanged(string name, variant value)
Always my slot is not at all connected
Could anybody provide here sample code.
Thanks
Yuvaraj