Sha256: 7d6fb1e58dc60633bd1b7031f2bf58ec0027bf32ec406208fc4ddbaee0bf6b0e

Contents?: true

Size: 589 Bytes

Versions: 26

Compression:

Stored size: 589 Bytes

Contents

#!/usr/bin/env ruby

require "dbus"

session_bus = DBus::SessionBus.instance

ruby_srv = session_bus.service("org.ruby.service")

# Get the object from this service
player = ruby_srv.object("/org/ruby/MyInstance")

# Introspect it
puts player.introspect
player.default_iface = "org.ruby.SampleInterface"
player.test_variant(["s", "coucou"])
player.on_signal("SomethingJustHappened") do |u, v|
  puts "SomethingJustHappened: #{u} #{v}"
end
player.hello("8=======D", "(_._)")
p player["org.ruby.AnotherInterface"].Reverse("Hello world!")

main = DBus::Main.new
main << session_bus
main.run

Version data entries

26 entries across 26 versions & 5 rubygems

Version Path
ruby-dbus-0.12.0 examples/service/call_service.rb
ruby-dbus-0.11.2 examples/service/call_service.rb
ruby-dbus-0.11.1 examples/service/call_service.rb
mvidner-ruby-dbus-0.2.10 examples/service/call_service.rb
em-ruby-dbus-0.11.0 examples/service/call_service.rb
ruby-dbus-0.11.0 examples/service/call_service.rb
ruby-dbus-0.10.0 examples/service/call_service.rb
ruby-dbus-0.9.3 examples/service/call_service.rb
ruby-dbus-0.9.2 examples/service/call_service.rb
ruby-dbus-0.9.1 examples/service/call_service.rb
ruby-dbus-openplacos-0.7.2.2 examples/service/call_service.rb
ruby-dbus-0.9.0 examples/service/call_service.rb
ruby-dbus-0.8.0 examples/service/call_service.rb
ruby-dbus-openplacos-0.7.2.1 examples/service/call_service.rb
ruby-dbus-openplacos-0.7.2 examples/service/call_service.rb
ruby-dbus-0.7.2 examples/service/call_service.rb
ruby-dbus-0.7.1 examples/service/call_service.rb
ruby-dbus-openplacos-0.7.0 examples/service/call_service.rb
ruby-dbus-0.7.0 examples/service/call_service.rb
ruby-dbus-openplacos-0.6.2 examples/service/call_service.rb