#pragma once #include "./screen.hpp" #include #include #include #include #include #include #include #include #include #include "./tox_client.hpp" #include "./auto_dirty.hpp" #include "./media_meta_info_loader.hpp" #include "./sdlrenderer_texture_uploader.hpp" #include "./chat_gui4.hpp" #include #include #include // fwd extern "C" { struct SDL_Renderer; } // C struct MainScreen final : public Screen { SDL_Renderer* renderer; std::chrono::high_resolution_clock::time_point last_time = std::chrono::high_resolution_clock::now(); SimpleConfigModel conf; Contact3Registry cr; RegistryMessageModel rmm; MessageTimeSort mts; PluginManager pm; ToxEventLogger tel{std::cout}; ToxClient tc; AutoDirty ad; ToxContactModel2 tcm; ToxMessageManager tmm; ToxTransferManager ttm; MediaMetaInfoLoader mmil; SDLRendererTextureUploader sdlrtu; //OpenGLTextureUploader ogltu; ChatGui4 cg; MainScreen(SDL_Renderer* renderer_, std::string save_path, std::string save_password, std::vector plugins); ~MainScreen(void); bool handleEvent(SDL_Event& e) override; // return nullptr if not next // sets bool quit to true if exit Screen* poll(bool&) override; };