chore: reformat

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2023-08-02 18:35:35 +02:00
parent ce2ca13815
commit 1d468ac35a
594 changed files with 16040 additions and 16536 deletions

View File

@ -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);
};