aboutsummaryrefslogtreecommitdiff
path: root/launcher/news/NewsChecker.h
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/news/NewsChecker.h')
-rw-r--r--launcher/news/NewsChecker.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/launcher/news/NewsChecker.h b/launcher/news/NewsChecker.h
index 41babfff..cdd621a2 100644
--- a/launcher/news/NewsChecker.h
+++ b/launcher/news/NewsChecker.h
@@ -15,18 +15,17 @@
#pragma once
+#include <QList>
#include <QObject>
#include <QString>
-#include <QList>
#include <net/NetJob.h>
#include "NewsEntry.h"
-class NewsChecker : public QObject
-{
+class NewsChecker : public QObject {
Q_OBJECT
-public:
+ public:
/*!
* Constructs a news reader to read from the given RSS feed URL.
*/
@@ -57,7 +56,7 @@ public:
*/
void Q_SLOT reloadNews();
-signals:
+ signals:
/*!
* Signal fired after the news has finished loading.
*/
@@ -68,11 +67,11 @@ signals:
*/
void newsLoadingFailed(QString errorMsg);
-protected slots:
+ protected slots:
void rssDownloadFinished();
void rssDownloadFailed(QString reason);
-protected: /* data */
+ protected: /* data */
//! The URL for the RSS feed to fetch.
QString m_feedUrl;
@@ -95,11 +94,10 @@ protected: /* data */
shared_qobject_ptr<QNetworkAccessManager> m_network;
-protected slots:
+ protected slots:
/// Emits newsLoaded() and sets m_lastLoadError to empty string.
void succeed();
/// Emits newsLoadingFailed() and sets m_lastLoadError to the given message.
void fail(const QString& errorMsg);
};
-