From 612821b199dfca62eb8373408886cd09fee2f7b2 Mon Sep 17 00:00:00 2001 From: Flavio Date: Thu, 27 Jan 2011 16:57:58 +0100 Subject: [PATCH] OS info in updater requests --- src/updatechecker.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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))); -- 2.39.5