[Kde-bindings] KDE/kdebindings/qtruby
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Thu Oct 5 17:10:27 UTC 2006
SVN commit 592764 by rdale:
* Added the QtDBus chat example
* Made the Qt::DBusMessage '<<' create a Qt::Variant if the arg passed
to it wasn't already a Qt::Variant
CCMAIL: kde-bindings at kde.org
M +5 -0 ChangeLog
A rubylib/examples/qdbus/chat (directory)
A rubylib/examples/qdbus/chat/chat.rb
A rubylib/examples/qdbus/chat/chat_adaptor.rb
A rubylib/examples/qdbus/chat/chat_interface.rb
A rubylib/examples/qdbus/chat/chatmainwindow.ui
A rubylib/examples/qdbus/chat/chatsetnickname.ui
A rubylib/examples/qdbus/chat/makefile
M +14 -0 rubylib/qtruby/lib/Qt/qtruby4.rb
--- trunk/KDE/kdebindings/qtruby/ChangeLog #592763:592764
@@ -3,6 +3,11 @@
* Each rbuic generated class is now wrapped in a Ui module so that as
well as class 'Ui_Foobar' there is a 'Ui::Foobar' version.
+ * Added the QtDBus chat example
+
+ * Made the Qt::DBusMessage '<<' create a Qt::Variant if the arg passed
+ to it wasn't already a Qt::Variant
+
2006-10-04 Richard Dale <rdale at foton.es>
* Added the QtDBus remote contoller car example
--- trunk/KDE/kdebindings/qtruby/rubylib/qtruby/lib/Qt/qtruby4.rb #592763:592764
@@ -398,6 +398,12 @@
end
end
+ class DBusConnection < Qt::Base
+ def send(*args)
+ method_missing(:send, *args)
+ end
+ end
+
class DBusConnectionInterface < Qt::Base
def serviceOwner(name)
return Qt::DBusReply.new(internalConstCall(Qt::DBus::AutoDetect, "GetNameOwner", [Qt::Variant.new(name)]))
@@ -459,6 +465,14 @@
return nil
end
end
+
+ def <<(a)
+ if a.kind_of?(Qt::Variant)
+ return super(a)
+ else
+ return super(qVariantFromValue(a))
+ end
+ end
end
class DBusReply
More information about the Kde-bindings
mailing list