Class: Qt::DBusMessage

Inherits:
Base show all
Defined in:
lib/qt/qtruby4.rb

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

#<<(a) ⇒ Object



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

#valueObject



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