From 141e0a02a0a0c4bbc4cc2e900560db5048366104 Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Wed, 4 Feb 2015 21:10:10 +0100 Subject: SCRATCH move things to the right places --- logic/updater/NotificationChecker.h | 54 ------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 logic/updater/NotificationChecker.h (limited to 'logic/updater/NotificationChecker.h') diff --git a/logic/updater/NotificationChecker.h b/logic/updater/NotificationChecker.h deleted file mode 100644 index 915ee54d..00000000 --- a/logic/updater/NotificationChecker.h +++ /dev/null @@ -1,54 +0,0 @@ -#pragma once - -#include - -#include "logic/net/NetJob.h" -#include "logic/net/CacheDownload.h" - -class NotificationChecker : public QObject -{ - Q_OBJECT - -public: - explicit NotificationChecker(QObject *parent = 0); - - QUrl notificationsUrl() const; - void setNotificationsUrl(const QUrl ¬ificationsUrl); - - struct NotificationEntry - { - int id; - QString message; - enum - { - Critical, - Warning, - Information - } type; - QString channel; - QString platform; - QString from; - QString to; - bool applies() const; - static bool versionLessThan(const QString &v1, const QString &v2); - }; - - QList notificationEntries() const; - -public -slots: - void checkForNotifications(); - -private -slots: - void downloadSucceeded(int); - -signals: - void notificationCheckFinished(); - -private: - QList m_entries; - QUrl m_notificationsUrl; - NetJobPtr m_checkJob; - CacheDownloadPtr m_download; -}; -- cgit