Answer the question
In order to leave comments, you need to log in
QDBus and signals: how to correctly dock signal activation when calling a DBus method?
There is a Controller class, the pause signal is described in it.
Registering an object and establishing a connection goes like this:
QDBusConnection conn = QDBusConnection::sessionBus();
if (! conn.registerService(SERVICE_NAME)) {
qDebug() << "Error:" << conn.lastError().message();
exit(EXIT_FAILURE);
}
Controller controller;
conn.registerObject(OBJECT_PATH, &controller, QDBusConnection::ExportAllSignals);
this->playback = new Playback(this);
connect(this, SIGNAL(sig_pause()), playback, SLOT(pause()));
DbusObject::__call(): org.freedesktop.DBus.Error.UnknownInterface: No such interface 'my.iface' at object path '/my/control'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question