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

#is_service_registered(serviceName) ⇒ Object



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

def is_service_registered(serviceName)
    return isServiceRegistered(serviceName)
end

#isServiceRegistered(serviceName) ⇒ Object



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

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

#registered_service_namesObject



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

def registered_service_names
  return registeredServiceNames
end

#registeredServiceNamesObject



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

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

#service_owner(name) ⇒ Object



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

def service_owner(name)
    return serviceOwner(name)
end

#service_pid(serviceName) ⇒ Object



744
745
746
# File 'lib/Qt/qtruby4.rb', line 744

def service_pid(serviceName)
    return servicePid(serviceName)
end

#service_registered?(serviceName) ⇒ Boolean

Returns:



736
737
738
# File 'lib/Qt/qtruby4.rb', line 736

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

#service_uid(serviceName) ⇒ Object



752
753
754
# File 'lib/Qt/qtruby4.rb', line 752

def service_uid(serviceName)
    return serviceUid(serviceName)
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



740
741
742
# File 'lib/Qt/qtruby4.rb', line 740

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

#serviceRegistered?(serviceName) ⇒ Boolean

Returns:



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

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

#serviceUid(serviceName) ⇒ Object



748
749
750
# File 'lib/Qt/qtruby4.rb', line 748

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

#start_service(name) ⇒ Object



760
761
762
# File 'lib/Qt/qtruby4.rb', line 760

def start_service(name)
    startService(name)
end

#startService(name) ⇒ Object



756
757
758
# File 'lib/Qt/qtruby4.rb', line 756

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