8 #include <QRecursiveMutex>
13 #include <QNetworkReply>
18 using namespace std::chrono_literals;
27 class List :
public std::vector<RSSSite*>
55 const QString&
GetTitle()
const {
return m_title; }
57 const QString&
GetImage()
const {
return m_image; }
60 const QString&
GetURL()
const {
return m_url; }
61 const QString&
GetAuthor()
const {
return m_author; }
63 const QDateTime&
GetUpdated()
const {
return m_updated; }
65 std::chrono::minutes timeSinceLastUpdate(
void)
const;
78 static QUrl redirectUrl(
const QUrl& possibleRedirectUrl,
79 const QUrl& oldRedirectUrl) ;
95 bool m_podcast {
false};
99 QNetworkReply *m_reply {
nullptr};
100 QNetworkAccessManager *m_manager {
nullptr};
103 void slotCheckRedirect(QNetworkReply* reply);
128 void slotRefreshRSS(
void);
129 void slotRSSRetrieved(
RSSSite *site);
132 void processAndInsertRSS(
RSSSite *site);
134 QTimer *m_timer {
nullptr};
136 std::chrono::hours m_updateFreq {6h};
142 #endif // RSSMANAGER_H