You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
637 B

  1. #ifndef COLLECTION_H
  2. #define COLLECTION_H
  3. #include <QDialog>
  4. #include <QStyledItemDelegate>
  5. #include <QListWidgetItem>
  6. #include "crunchyrollapi.h"
  7. #include "delegates.h"
  8. namespace Ui {
  9. class collection;
  10. }
  11. class collection : public QDialog
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit collection(CrunchyrollAPI* _api,query_t series, QWidget *parent = nullptr);
  16. ~collection();
  17. QVector<collection_t> getSelectedCollections();
  18. private:
  19. Ui::collection *ui;
  20. CrunchyrollAPI* api;
  21. QVector<collection_t> selection;
  22. query_t series;
  23. private slots:
  24. void selected();
  25. void fetchCollections();
  26. };
  27. #endif // COLLECTION_H