Added a system to load news from MultiMC.org's RSS

Currently it doesn't show it anywhere in the UI. That's next.
This commit is contained in:
Andrew
2013-12-15 14:48:58 -06:00
parent 1e96a0c8eb
commit 0ee8f90d40
9 changed files with 409 additions and 1 deletions

View File

@ -76,6 +76,8 @@
#include "logic/updater/DownloadUpdateTask.h"
#include "logic/news/NewsChecker.h"
#include "logic/net/URLConstants.h"
#include "logic/BaseInstance.h"
@ -243,6 +245,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
MMC->lwjgllist()->loadList();
}
MMC->newsChecker()->reloadNews();
// set up the updater object.
auto updater = MMC->updateChecker();
QObject::connect(updater.get(), &UpdateChecker::updateAvailable, this, &MainWindow::updateAvailable);