]> git.sur5r.net Git - minitube/blobdiff - src/updatechecker.cpp
Imported Debian patch 1.6-1
[minitube] / src / updatechecker.cpp
index 35c4639dc2b937ea34f22fbde156117337ebda8d..da60d8fb706253a4eba40b8581ba0156e2b286a2 100644 (file)
@@ -1,6 +1,6 @@
 #include "updatechecker.h"
 #include "networkaccess.h"
-#include "Constants.h"
+#include "constants.h"
 
 namespace The {
     NetworkAccess* http();
@@ -12,7 +12,20 @@ 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
+#ifdef APP_MAC_STORE
+    updateUrl.addQueryItem("store", "mac");
+#endif
 
     QObject *reply = The::http()->get(updateUrl);
     connect(reply, SIGNAL(data(QByteArray)), SLOT(requestFinished(QByteArray)));