Class: Qt::DBusMessage

Inherits:
Base show all
Defined in:
lib/Qt/qtruby4.rb,
ext/ruby/qtruby/src/lib/Qt/qtruby4.rb

Instance Method Summary collapse

Methods inherited from Base

#%, #&, #*, #**, #+, #-, #-@, #/, #<, #<=, #==, #>, #>=, #>>, #QCOMPARE, #QEXPECT_FAIL, #QFAIL, #QSKIP, #QTEST, #QVERIFY, #QVERIFY2, #QWARN, #^, ancestors, #is_a?, #methods, private_slots, #protected_methods, #public_methods, q_classinfo, q_signal, q_slot, signals, #singleton_methods, slots, #|, #~

Instance Method Details

#<<(a) ⇒ Object



822
823
824
825
826
827
828
# File 'lib/Qt/qtruby4.rb', line 822

def <<(a)
	if a.kind_of?(Qt::Variant)
		return super(a)
	else
		return super(qVariantFromValue(a))
	end
end

#type(*args) ⇒ Object



803
804
805
# File 'lib/Qt/qtruby4.rb', line 803

def type(*args)
	method_missing(:type, *args)
end

#valueObject



807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'lib/Qt/qtruby4.rb', line 807

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