Mercurial > minori
comparison include/gui/pages/anime_list.h @ 320:1b5c04268d6a
services/kitsu: ACTUALLY finish GetAnimeList
there are some things the API just... doesn't provide. therefore
we have to request the genres separately any time a new anime info
box is opened...
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Wed, 12 Jun 2024 19:49:19 -0400 |
| parents | 8769c5d50b06 |
| children |
comparison
equal
deleted
inserted
replaced
| 319:d928ec7b6a0d | 320:1b5c04268d6a |
|---|---|
| 16 | 16 |
| 17 class AnimeListPageUpdateEntryThread final : public QThread { | 17 class AnimeListPageUpdateEntryThread final : public QThread { |
| 18 Q_OBJECT | 18 Q_OBJECT |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 AnimeListPageUpdateEntryThread(AnimeListPage* parent); | 21 AnimeListPageUpdateEntryThread(QObject* parent = nullptr); |
| 22 | 22 |
| 23 void AddToQueue(int id); | 23 void AddToQueue(int id); |
| 24 | 24 |
| 25 signals: | 25 signals: |
| 26 void NeedRefresh(); | 26 void NeedRefresh(); |
| 27 | 27 |
| 28 protected: | 28 protected: |
| 29 void run() override; | 29 void run() override; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 AnimeListPage* page_ = nullptr; | 32 std::mutex queue_mutex_; |
| 33 std::mutex _queue_mutex; | |
| 34 std::queue<int> queue_; | 33 std::queue<int> queue_; |
| 35 }; | 34 }; |
| 36 | 35 |
| 37 class AnimeListPageSortFilter final : public QSortFilterProxyModel { | 36 class AnimeListPageSortFilter final : public QSortFilterProxyModel { |
| 38 Q_OBJECT | 37 Q_OBJECT |
