Class: LibComponent::Servicesignal
- Inherits:
-
Object
- Object
- LibComponent::Servicesignal
- Defined in:
- lib/openplacos/libcomponent.rb
Instance Method Summary collapse
-
#initialize(bus_, component_) ⇒ Servicesignal
constructor
A new instance of Servicesignal.
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 |