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



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

def is_service_registered(serviceName)
    return isServiceRegistered(serviceName)
end

#isServiceRegistered(serviceName) ⇒ Object



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

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

#registered_service_namesObject



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

def registered_service_names
  return registeredServiceNames
end

#registeredServiceNamesObject



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

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

#service_owner(name) ⇒ Object



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

def service_owner(name)
    return serviceOwner(name)
end

#service_pid(serviceName) ⇒ Object



765
766
767
# File 'lib/Qt/qtruby4.rb', line 765

def service_pid(serviceName)
    return servicePid(serviceName)
end

#service_registered?(serviceName) ⇒ Boolean



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

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

#service_uid(serviceName) ⇒ Object



773
774
775
# File 'lib/Qt/qtruby4.rb', line 773

def service_uid(serviceName)
    return serviceUid(serviceName)
end

#serviceOwner(name) ⇒ Object



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

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

#servicePid(serviceName) ⇒ Object



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

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

#serviceRegistered?(serviceName) ⇒ Boolean



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

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

#serviceUid(serviceName) ⇒ Object



769
770
771
# File 'lib/Qt/qtruby4.rb', line 769

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

#start_service(name) ⇒ Object



781
782
783
# File 'lib/Qt/qtruby4.rb', line 781

def start_service(name)
    startService(name)
end

#startService(name) ⇒ Object



777
778
779
# File 'lib/Qt/qtruby4.rb', line 777

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