Class: LibComponent::Servicesignal

Inherits:
Object
  • Object
show all
Defined in:
lib/openplacos/libcomponent.rb

Instance Method Summary collapse

Constructor Details

#initialize(bus_, component_) ⇒ Servicesignal

Returns a new instance of Servicesignal.



535
536
537
538
539
540
541
542
543
544
545
546
# File 'lib/openplacos/libcomponent.rb', line 535

def initialize(bus_, component_)
  @bus       = bus_
  @component = component_
  @server    = @bus.service("org.openplacos.server.internal")
  @opos      = @server.object("/plugins")
  @opos.introspect
  @opos.default_iface = "org.openplacos.plugins"

  @opos.on_signal("quit") do
    @component.quit_callback
  end
end