Class: Qt::DBusMessage
Instance Method Summary
collapse
Methods inherited from Base
#%, #&, #*, #**, #+, #-, #-@, #/, #<, #<=, #==, #>, #>=, #>>, #^, #methods, #protected_methods, #public_methods, q_classinfo, q_signal, q_slot, signals, #singleton_methods, slots, #|, #~
Instance Method Details
503
504
505
506
507
508
509
|
# File 'lib/qt/qtruby4.rb', line 503
def <<(a)
if a.kind_of?(Qt::Variant)
return super(a)
else
return super(qVariantFromValue(a))
end
end
|
#type(*args) ⇒ Object
490
491
492
|
# File 'lib/qt/qtruby4.rb', line 490
def type(*args)
method_missing(:type, *args)
end
|
494
495
496
497
498
499
500
501
|
# File 'lib/qt/qtruby4.rb', line 494
def value
if type() == Qt::DBusMessage::ReplyMessage
reply = arguments()
return reply.length > 0 ? reply[0].value : nil
else
return nil
end
end
|