#include "updatechecker.h"
#include "networkaccess.h"
#include "constants.h"
+#ifdef APP_ACTIVATION
+#include "activation.h"
+#endif
namespace The {
NetworkAccess* http();
#ifdef APP_WIN
updateUrl.addQueryItem("os", "win");
#endif
-#ifdef APP_DEMO
- updateUrl.addQueryItem("t", "demo");
+#ifdef APP_ACTIVATION
+ QString t = "demo";
+ if (Activation::instance().isActivated()) t = "active";
+ updateUrl.addQueryItem("t", t);
#endif
#ifdef APP_MAC_STORE
updateUrl.addQueryItem("store", "mac");
while (!atEnd()) {
readNext();
if (isStartElement()) {
- if (name() == "release") {
+ if (name() == QLatin1String("release")) {
while (!atEnd()) {
readNext();
- if (isStartElement() && name() == "version") {
+ if (isStartElement() && name() == QLatin1String("version")) {
QString remoteVersion = readElementText();
qDebug() << remoteVersion << QString(Constants::VERSION);
m_needUpdate = remoteVersion != QString(Constants::VERSION);