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.
 
 
 
 

54 lines
1.2 KiB

  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <QSettings>
  5. #include "WebLoader/src/NetworkRequestLoader.h"
  6. #include "models.h"
  7. #include "crunchyrollapi.h"
  8. namespace Ui {
  9. class MainWindow;
  10. }
  11. class MainWindow : public QMainWindow
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit MainWindow(QWidget *parent = nullptr);
  16. ~MainWindow();
  17. public slots:
  18. void openSearchDlg();
  19. void openCollectionDlg();
  20. void openEpisodesDlg();
  21. void updateLocale();
  22. void reloadSeriesBlock();
  23. void reloadCollectionBlock();
  24. void reloadEpisodesBlock(bool redownload);
  25. void reloadBlocks(bool onlyLogin = false);
  26. void show();
  27. void enableDlLayout(bool);
  28. static bool checkFFmpeg();
  29. quality getQuality();
  30. private slots:
  31. void showCredits();
  32. void showLicense();
  33. void openGithub();
  34. void saveUserdata();
  35. void loadUserdata(bool loadAccount);
  36. private:
  37. Ui::MainWindow *ui;
  38. query_t currentSeries;
  39. QVector<collection_t> currentCollections;
  40. QVector<meta_episode_t> currentEpisodes;
  41. QVector<meta_episode_t> allEpisodes;
  42. CrunchyrollAPI* api;
  43. QSettings* settings;
  44. void updateProgressArgs();
  45. };
  46. #endif // MAINWINDOW_H