Mercurial > minori
comparison include/gui/pages/torrents.h @ 183:01d259b9c89f
pages/torrents.cc: parse feed descriptions separately
services/anilist.cc: use constexpr STL string_view for HTTP queries
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Mon, 04 Dec 2023 13:40:42 -0500 |
| parents | 39521c47c7a3 |
| children | 2f5a9247e501 |
comparison
equal
deleted
inserted
replaced
| 182:c413e475f496 | 183:01d259b9c89f |
|---|---|
| 44 QVariant data(const QModelIndex& index, int role) const override; | 44 QVariant data(const QModelIndex& index, int role) const override; |
| 45 QVariant headerData(const int section, const Qt::Orientation orientation, const int role) const override; | 45 QVariant headerData(const int section, const Qt::Orientation orientation, const int role) const override; |
| 46 Qt::ItemFlags flags(const QModelIndex& index) const override; | 46 Qt::ItemFlags flags(const QModelIndex& index) const override; |
| 47 | 47 |
| 48 QByteArray DownloadTorrentList(); | 48 QByteArray DownloadTorrentList(); |
| 49 void ParseFeedDescription(const std::string& description, Torrent& torrent); | |
| 49 void ParseTorrentList(const QByteArray& ba); | 50 void ParseTorrentList(const QByteArray& ba); |
| 50 void RefreshTorrentList(); | 51 void RefreshTorrentList(); |
| 51 | 52 |
| 52 private: | 53 private: |
| 53 class TorrentModelItem : public Torrent { | 54 class TorrentModelItem : public Torrent { |
