Class: Qt::DBusMessage
Instance Method Summary collapse
Instance Method Details
#<<(a) ⇒ Object
859 860 861 862 863 864 865 |
# File 'lib/Qt/qtruby4.rb', line 859 def <<(a) if a.kind_of?(Qt::Variant) return super(a) else return super(qVariantFromValue(a)) end end |
#type(*args) ⇒ Object
840 841 842 |
# File 'lib/Qt/qtruby4.rb', line 840 def type(*args) method_missing(:type, *args) end |
#value ⇒ Object
844 845 846 847 848 849 850 851 852 853 854 855 856 857 |
# File 'lib/Qt/qtruby4.rb', line 844 def value if type() == Qt::DBusMessage::ReplyMessage reply = arguments() if reply.length == 0 return nil elsif reply.length == 1 return reply[0].value else return reply.collect {|v| v.value} end else return nil end end |