class LibComponent::DbusOutput
Public Class Methods
create_dbusoutputs_from_introspect(intro_,component_)
click to toggle source
Create all dbus I/O for this pin. Called internally by component
# File lib/openplacos/libcomponent.rb, line 451 def self.create_dbusoutputs_from_introspect(intro_,component_) pin = Array.new intro_.each { |name, definition| p = self.new(component_.bus,"/#{component_.name}#{name}") begin p.introspect rescue DBus::Error LibError.quit(255, "From #{component_.name}: Introspect of pin /#{component_.name}#{name} failed \nOpenplacos server is probably unreachable") rescue LibError.quit_server(255, "From #{component_.name}: Introspect of pin /#{component_.name}#{name} failed \n") end definition.each_key { |iface| component_output = component_.get_output_iface(name,iface) component_output.connect(p) } pin << p } return pin end
new(bus_,name_)
click to toggle source
Calls superclass method
# File lib/openplacos/libcomponent.rb, line 443 def initialize(bus_,name_) @name = name_ @bus = bus_ super(@bus,"org.openplacos.server.internal",@name) end