Exemple #1
0
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;
	}
}
Exemple #2
0
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());
}