[Kde-bindings] KDE/kdebindings/ruby/qtruby
Richard Dale
richard.j.dale at gmail.com
Tue Jun 22 02:37:06 UTC 2010
SVN commit 1141026 by rdale:
* Added snakecase versions of the methods in the Qt::DBusConnectionInterface
class
* Fixed bug with missing QVector<double> marshaller. Fixes problem reported
by Sylvain Sauvage http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586672
Thanks for the bug report.
CCMAIL: kde-bindings at kde.org
M +8 -0 ChangeLog
M +2 -0 src/handlers.cpp
M +28 -0 src/lib/Qt/qtruby4.rb
--- trunk/KDE/kdebindings/ruby/qtruby/ChangeLog #1141025:1141026
@@ -1,3 +1,11 @@
+2010-06-22 Richard Dale <richard.j.dale at gmail.com>
+
+ * Added snakecase versions of the methods in the Qt::DBusConnectionInterface
+ class
+ * Fixed bug with missing QVector<double> marshaller. Fixes problem reported
+ by Sylvain Sauvage http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586672
+ Thanks for the bug report.
+
2010-03-18 Richard Dale <richard.j.dale at gmail.com>
* Qualify all Qt includes with the module name, as not doing so is a bad
--- trunk/KDE/kdebindings/ruby/qtruby/src/handlers.cpp #1141025:1141026
@@ -2508,6 +2508,8 @@
{ "QVector<QPoint>&", marshall_QPointVector },
{ "QVector<qreal>", marshall_QVectorqreal },
{ "QVector<qreal>&", marshall_QVectorqreal },
+ { "QVector<double>", marshall_QVectorqreal },
+ { "QVector<double>&", marshall_QVectorqreal },
{ "QVector<QRectF>", marshall_QRectFVector },
{ "QVector<QRectF>&", marshall_QRectFVector },
{ "QVector<QRect>", marshall_QRectVector },
--- trunk/KDE/kdebindings/ruby/qtruby/src/lib/Qt/qtruby4.rb #1141025:1141026
@@ -709,30 +709,58 @@
return Qt::DBusReply.new(internalConstCall(Qt::DBus::AutoDetect, "GetNameOwner", [Qt::Variant.new(name)]))
end
+ def service_owner(name)
+ return serviceOwner(name)
+ end
+
def registeredServiceNames
return Qt::DBusReply.new(internalConstCall(Qt::DBus::AutoDetect, "ListNames"))
end
+ def registered_service_names
+ return registeredServiceNames
+ end
+
def isServiceRegistered(serviceName)
return Qt::DBusReply.new(internalConstCall(Qt::DBus::AutoDetect, "NameHasOwner", [Qt::Variant.new(serviceName)]))
end
+ def is_service_registered(serviceName)
+ return isServiceRegistered(serviceName)
+ end
+
def serviceRegistered?(serviceName)
return isServiceRegistered(serviceName)
end
+ def service_registered?(serviceName)
+ return isServiceRegistered(serviceName)
+ end
+
def servicePid(serviceName)
return Qt::DBusReply.new(internalConstCall(Qt::DBus::AutoDetect, "GetConnectionUnixProcessID", [Qt::Variant.new(serviceName)]))
end
+ def service_pid(serviceName)
+ return servicePid(serviceName)
+ end
+
def serviceUid(serviceName)
return Qt::DBusReply.new(internalConstCall(Qt::DBus::AutoDetect, "GetConnectionUnixUser", [Qt::Variant.new(serviceName)]))
end
+ def service_uid(serviceName)
+ return serviceUid(serviceName)
+ end
+
def startService(name)
return call("StartServiceByName", Qt::Variant.new(name), Qt::Variant.new(0)).value
end
+
+ def start_service(name)
+ startService(name)
end
+ end
class DBusError < Qt::Base
def type(*args)
More information about the Kde-bindings
mailing list