bool InterfaceProxy::dispatch_signal( const SignalMessage& msg ) { const char* name = msg.member(); SignalTable::iterator si = _signals.find(name); if( si != _signals.end() ) { si->second.call( msg ); return true; } else { return false; } }
bool InterfaceProxy::dispatch_signal(const SignalMessage &msg) { const char *name = msg.member(); SignalTable::iterator si = _signals.find(name); if (si != _signals.end()) { si->second.call(msg); // Here we always return false because there might be // another InterfaceProxy listening for the same signal. // This way we instruct libdbus-1 to go on dispatching // the signal. return false; } else { return false; } }
bool SignalMessage::operator == (const SignalMessage &m) const { return dbus_message_is_signal(_pvt->msg, m.interface(), m.member()); }
void ObjectAdaptor::_emit_signal(SignalMessage &sig) { sig.path(path().c_str()); conn().send(sig); }
void LocalObject::remit_signal( SignalMessage& sig ) { sig.path(oname().c_str()); conn().send(sig); }