[Kde-bindings] KDE/kdebase/workspace/plasma/scriptengines/ruby
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Tue Nov 18 20:29:06 UTC 2008
SVN commit 886212 by rdale:
* Added a 'dbpedia-queries' data engine for making SPARQL queries to DBpedia
about music albums
* The sources() and init() methods needn't be implemented by a scripting
data engine
CCMAIL: kde-bindings at kde.org
M +4 -0 ChangeLog
M +9 -2 data_engine.rb
A examples/dataengines/dbpedia-queries (directory)
A examples/dataengines/dbpedia-queries/contents (directory)
A examples/dataengines/dbpedia-queries/contents/code (directory)
A examples/dataengines/dbpedia-queries/contents/code/main.rb
A examples/dataengines/dbpedia-queries/metadata.desktop
--- trunk/KDE/kdebase/workspace/plasma/scriptengines/ruby/ChangeLog #886211:886212
@@ -1,6 +1,10 @@
2008-11-18 Richard Dale <richard.j.dale at gmail.com>
* Fix problem with the ruby 'type()' method clashing with the one in
Qt::GraphicsItem subclasses reported by David Palacio
+* Added a 'dbpedia-queries' data engine for making SPARQL queries to DBpedia
+ about music albums
+* The sources() and init() methods needn't be implemented by a scripting
+ data engine
2008-11-17 Richard Dale <richard.j.dale at gmail.com>
* Fixed missing constructor bug in Qt::GraphicsProxyWidget reported by David
--- trunk/KDE/kdebase/workspace/plasma/scriptengines/ruby/data_engine.rb #886211:886212
@@ -32,6 +32,9 @@
connect(@data_engine_script.dataEngine, SIGNAL("sourceRemoved(QString)"), self, SIGNAL("sourceRemoved(QString)"))
end
+ def init
+ end
+
def sourceRequestEvent(name)
end
@@ -40,9 +43,9 @@
def setData(*args)
if args.length == 2 && !args[1].kind_of?(Qt::Variant)
- args[1] = Qt::Variant.new(args[1])
+ args[1] = Qt::Variant.fromValue(args[1])
elsif args.length == 3 && !args[2].kind_of?(Qt::Variant)
- args[2] = Qt::Variant.new(args[2])
+ args[2] = Qt::Variant.fromValue(args[2])
end
@data_engine_script.setData(*args)
end
@@ -86,6 +89,10 @@
def removeAllSources
@data_engine_script.removeAllSources
end
+
+ def sources
+ return []
+ end
end
end
More information about the Kde-bindings
mailing list