#pragma once #ifndef ES_APP_GUIS_GUI_SCRAPER_MULTI_H #define ES_APP_GUIS_GUI_SCRAPER_MULTI_H #include "GuiComponent.h" #include "components/NinePatchComponent.h" #include "components/ComponentGrid.h" #include "scrapers/Scraper.h" #include class ScraperSearchComponent; class TextComponent; class GuiScraperMulti : public GuiComponent { public: GuiScraperMulti(Window* window, const std::queue& searches, bool approveResults); virtual ~GuiScraperMulti(); void onSizeChanged() override; std::vector getHelpPrompts() override; private: void acceptResult(const ScraperSearchResult& result); void skip(); void doNextSearch(); void finish(); unsigned int mTotalGames; unsigned int mCurrentGame; unsigned int mTotalSuccessful; unsigned int mTotalSkipped; std::queue mSearchQueue; NinePatchComponent mBackground; ComponentGrid mGrid; std::shared_ptr mTitle; std::shared_ptr mSystem; std::shared_ptr mSubtitle; std::shared_ptr mSearchComp; std::shared_ptr mButtonGrid; }; #endif // ES_APP_GUIS_GUI_SCRAPER_MULTI_H