#pragma once #include "./screen.hpp" #include #include #include #include #include #include #include #include #include "./tox_client.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; PluginManager pm; ToxEventLogger tel{std::cout}; ToxClient tc; ToxContactModel2 tcm; ToxMessageManager tmm; ToxTransferManager ttm; SDLRendererTextureUploader sdlrtu; //OpenGLTextureUploader ogltu; ChatGui4 cg; MainScreen(SDL_Renderer* renderer_, std::string save_path); ~MainScreen(void); // return nullptr if not next // sets bool quit to true if exit Screen* poll(bool&) override; };