Line data Source code
1 : #ifndef RAWFEED_H
2 : #define RAWFEED_H
3 :
4 : #include <memory>
5 :
6 : #include <QList>
7 : #include <QString>
8 : #include <QUrl>
9 : #include <QDateTime>
10 :
11 : #include "RawNews.h"
12 :
13 : class RawFeed
14 : {
15 : public:
16 : enum FeedType { RSS = 0, GoogleNewsSitemap = 1, JSONFeed = 2 };
17 :
18 172 : RawFeed() = default;
19 :
20 : FeedType feedType = RSS;
21 :
22 : QString title;
23 : QString subtitle;
24 : QUrl url;
25 : QDateTime lastUpdated;
26 : quint32 minutesToUpdate = 0;
27 : QUrl siteURL;
28 : QUrl imageURL;
29 :
30 : QList<std::shared_ptr<RawNews>> items;
31 :
32 : bool isPodcast = false;
33 : };
34 :
35 : #endif // RAWFEED_H
|