aboutsummaryrefslogtreecommitdiff
path: root/launcher/news/NewsChecker.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:04:53 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:04:53 +0300
commit91eb30f03795921b48360b79bdb739dcd0f10f17 (patch)
tree1a2fccbbbf4751cf2cf6f6418cb525dcee5f2acd /launcher/news/NewsChecker.h
parenta3ffa6455021b69bd1940b65fefb3b6177c96730 (diff)
parentae793f6cf11658c9abc5111e82d5ba7b3e6af127 (diff)
downloadPrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.tar.gz
PrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.tar.bz2
PrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into pack_changelog
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);
};
-