diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-02-07 12:55:18 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-12 20:57:17 +0200 |
commit | 7a71ecd8af0454e405b25080a4b266fc99306269 (patch) | |
tree | e1bb6527d5d968ddb41f2f281b46582dff5b9131 /logic/notifications/NotificationChecker.h | |
parent | 4e94de413ba60a1da91715a41c8ba8caa8474728 (diff) | |
download | MultiMC-7a71ecd8af0454e405b25080a4b266fc99306269.tar MultiMC-7a71ecd8af0454e405b25080a4b266fc99306269.tar.gz MultiMC-7a71ecd8af0454e405b25080a4b266fc99306269.tar.lz MultiMC-7a71ecd8af0454e405b25080a4b266fc99306269.tar.xz MultiMC-7a71ecd8af0454e405b25080a4b266fc99306269.zip |
NOISSUE fix notification checker
Diffstat (limited to 'logic/notifications/NotificationChecker.h')
-rw-r--r-- | logic/notifications/NotificationChecker.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/logic/notifications/NotificationChecker.h b/logic/notifications/NotificationChecker.h index 915ee54d..a3e615db 100644 --- a/logic/notifications/NotificationChecker.h +++ b/logic/notifications/NotificationChecker.h @@ -12,8 +12,10 @@ class NotificationChecker : public QObject public: explicit NotificationChecker(QObject *parent = 0); - QUrl notificationsUrl() const; void setNotificationsUrl(const QUrl ¬ificationsUrl); + void setApplicationPlatform(QString platform); + void setApplicationChannel(QString channel); + void setApplicationFullVersion(QString version); struct NotificationEntry { @@ -29,8 +31,6 @@ public: QString platform; QString from; QString to; - bool applies() const; - static bool versionLessThan(const QString &v1, const QString &v2); }; QList<NotificationEntry> notificationEntries() const; @@ -47,8 +47,15 @@ signals: void notificationCheckFinished(); private: + bool entryApplies(const NotificationEntry &entry) const; + +private: QList<NotificationEntry> m_entries; QUrl m_notificationsUrl; NetJobPtr m_checkJob; CacheDownloadPtr m_download; + + QString m_appVersionChannel; + QString m_appPlatform; + QString m_appFullVersion; }; |