summaryrefslogtreecommitdiffstats
path: root/logic/news
diff options
context:
space:
mode:
authorForkk <forkk@forkk.net>2014-01-02 13:25:38 -0600
committerForkk <forkk@forkk.net>2014-01-02 13:25:38 -0600
commit4495e20cd7f7f2ab062f3b60f19ac4b79f32c350 (patch)
treef5bbc9d40ea49fcfd52e3d310c7c1e0ce4c8c6a2 /logic/news
parent9d8006b597aead06f1d51dacbdb346ebab3d5e8f (diff)
downloadMultiMC-4495e20cd7f7f2ab062f3b60f19ac4b79f32c350.tar
MultiMC-4495e20cd7f7f2ab062f3b60f19ac4b79f32c350.tar.gz
MultiMC-4495e20cd7f7f2ab062f3b60f19ac4b79f32c350.tar.lz
MultiMC-4495e20cd7f7f2ab062f3b60f19ac4b79f32c350.tar.xz
MultiMC-4495e20cd7f7f2ab062f3b60f19ac4b79f32c350.zip
Add news checking system and news toolbar
Diffstat (limited to 'logic/news')
-rw-r--r--logic/news/NewsChecker.cpp5
-rw-r--r--logic/news/NewsChecker.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/logic/news/NewsChecker.cpp b/logic/news/NewsChecker.cpp
index 08d4ef23..8fc44fa9 100644
--- a/logic/news/NewsChecker.cpp
+++ b/logic/news/NewsChecker.cpp
@@ -102,6 +102,11 @@ void NewsChecker::rssDownloadFailed()
}
+QList<NewsEntryPtr> NewsChecker::getNewsEntries() const
+{
+ return m_newsEntries;
+}
+
bool NewsChecker::isLoadingNews() const
{
return m_newsNetJob.get() != nullptr;
diff --git a/logic/news/NewsChecker.h b/logic/news/NewsChecker.h
index 6d1fb935..820fe626 100644
--- a/logic/news/NewsChecker.h
+++ b/logic/news/NewsChecker.h
@@ -42,6 +42,9 @@ public:
* Returns true if the news has been loaded successfully.
*/
bool isNewsLoaded() const;
+
+ //! True if the news is currently loading. If true, reloadNews() will do nothing.
+ bool isLoadingNews() const;
/*!
* Returns a list of news entries.
@@ -78,9 +81,6 @@ protected:
//! The network job to use to load the news.
NetJobPtr m_newsNetJob;
-
- //! True if the news is currently loading. If true, reloadNews() will do nothing.
- bool isLoadingNews() const;
//! True if news has been loaded.
bool m_loadedNews;