Version information for the qml ui module

This commit is contained in:
Thomas Perl 2014-02-06 23:56:03 +01:00
parent 238cac1eb8
commit 51efb2e089
2 changed files with 9 additions and 8 deletions

View file

@ -40,11 +40,9 @@ Python {
signal updatedPodcast(var podcast) signal updatedPodcast(var podcast)
Component.onCompleted: { Component.onCompleted: {
setHandler('hello', function (version, copyright, date, url) { setHandler('hello', function (coreversion, uiversion) {
console.log('gPodder ' + version + ' (' + date + ')'); console.log('gPodder Core ' + coreversion);
console.log(url); console.log('gPodder QML UI ' + uiversion);
console.log(copyright);
console.log('PyOtherSide ' + py.pluginVersion()); console.log('PyOtherSide ' + py.pluginVersion());
console.log('Python ' + py.pythonVersion()); console.log('Python ' + py.pythonVersion());
}); });

View file

@ -15,6 +15,11 @@
# PERFORMANCE OF THIS SOFTWARE. # PERFORMANCE OF THIS SOFTWARE.
# #
# Version of the QML UI implementation, this is usually the same as the version
# of gpodder-core, but we might have a different release schedule later on. If
# we decide to have parallel releases, we can at least start using this version
# to check if the core version is compatible with the QML UI version.
__version__ = '4.0.0'
import sys import sys
import os import os
@ -294,9 +299,7 @@ class gPotherSide:
gpotherside = gPotherSide() gpotherside = gPotherSide()
pyotherside.atexit(gpotherside.atexit) pyotherside.atexit(gpotherside.atexit)
pyotherside.send('hello', pyotherside.send('hello', gpodder.__version__, __version__)
gpodder.__version__, gpodder.__copyright__,
gpodder.__date__, gpodder.__url__)
# Exposed API Endpoints for calls from QML # Exposed API Endpoints for calls from QML
initialize = gpotherside.initialize initialize = gpotherside.initialize