Class: Qt::DBusConnectionInterface

Inherits:
Base show all
Defined in:
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

#isServiceRegistered(serviceName) ⇒ Object



716
717
718
# File 'lib/Qt/qtruby4.rb', line 716

def isServiceRegistered(serviceName)
  		return Qt::DBusReply.new(internalConstCall(Qt::DBus::AutoDetect, "NameHasOwner", [Qt::Variant.new(serviceName)]))
end

#registeredServiceNamesObject



712
713
714
# File 'lib/Qt/qtruby4.rb', line 712

def registeredServiceNames
	return Qt::DBusReply.new(internalConstCall(Qt::DBus::AutoDetect, "ListNames"))
end

#serviceOwner(name) ⇒ Object



708
709
710
# File 'lib/Qt/qtruby4.rb', line 708

def serviceOwner(name)
  		return Qt::DBusReply.new(internalConstCall(Qt::DBus::AutoDetect, "GetNameOwner", [Qt::Variant.new(name)]))
end

#servicePid(serviceName) ⇒ Object



724
725
726
# File 'lib/Qt/qtruby4.rb', line 724

def servicePid(serviceName)
  		return Qt::DBusReply.new(internalConstCall(Qt::DBus::AutoDetect, "GetConnectionUnixProcessID", [Qt::Variant.new(serviceName)]))
end

#serviceRegistered?(serviceName) ⇒ Boolean

Returns:



720
721
722
# File 'lib/Qt/qtruby4.rb', line 720

def serviceRegistered?(serviceName)
  		return isServiceRegistered(serviceName)
end

#serviceUid(serviceName) ⇒ Object



728
729
730
# File 'lib/Qt/qtruby4.rb', line 728

def serviceUid(serviceName)
  		return Qt::DBusReply.new(internalConstCall(Qt::DBus::AutoDetect, "GetConnectionUnixUser", [Qt::Variant.new(serviceName)]))
end

#startService(name) ⇒ Object



732
733
734
# File 'lib/Qt/qtruby4.rb', line 732

def startService(name)
  		return call("StartServiceByName", Qt::Variant.new(name), Qt::Variant.new(0)).value
end