From: Flavio Date: Thu, 27 Jan 2011 15:57:58 +0000 (+0100) Subject: OS info in updater requests X-Git-Tag: 1.4~32 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=612821b199dfca62eb8373408886cd09fee2f7b2;p=minitube OS info in updater requests --- diff --git a/src/updatechecker.cpp b/src/updatechecker.cpp index f8d381d..f3f02eb 100644 --- a/src/updatechecker.cpp +++ b/src/updatechecker.cpp @@ -12,7 +12,17 @@ UpdateChecker::UpdateChecker() { void UpdateChecker::checkForUpdate() { QUrl updateUrl(QString(Constants::WEBSITE) + "-ws/release.xml"); - // QUrl updateUrl("http://flavio.tordini.org:8012/release.xml"); + updateUrl.addQueryItem("v", Constants::VERSION); + +#ifdef APP_MAC + updateUrl.addQueryItem("os", "mac"); +#endif +#ifdef APP_WIN + updateUrl.addQueryItem("os", "win"); +#endif +#ifdef APP_DEMO + updateUrl.addQueryItem("t", "demo"); +#endif QObject *reply = The::http()->get(updateUrl); connect(reply, SIGNAL(data(QByteArray)), SLOT(requestFinished(QByteArray)));