class Qt::DBusInterface
Public Instance Methods
call(method_name, *args)
click to toggle source
Calls superclass method
# File lib/Qt/qtruby4.rb, line 809 def call(method_name, *args) if args.length == 0 return super(method_name) elsif method_name.is_a? Qt::Enum opt = args.shift qdbusArgs = args.collect {|arg| qVariantFromValue(arg)} return super(method_name, opt, *qdbusArgs) else # If the method is Qt::DBusInterface.call(), create an Array # 'dbusArgs' of Qt::Variants from '*args' qdbusArgs = args.collect {|arg| qVariantFromValue(arg)} return super(method_name, *qdbusArgs) end end
method_missing(id, *args)
click to toggle source
Calls superclass method
# File lib/Qt/qtruby4.rb, line 824 def method_missing(id, *args) begin # First look for a method in the Smoke runtime # If not found, then throw an exception and try dbus. super(id, *args) rescue if args.length == 0 return call(id.to_s).value else return call(id.to_s, *args).value end end end