NEW: add service to check network state

Change-Id: Ic2072d0e141767d3acc617f6011ca62eccaf6278
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2023-04-13 17:09:16 +08:00 committed by Lane.Wei
parent 80a3e17663
commit cb5f7843c0
4 changed files with 92 additions and 0 deletions

View file

@ -293,12 +293,16 @@ private:
bool m_adding_script_handler { false };
bool m_side_popup_status{false};
HttpServer m_http_server;
boost::thread m_check_network_thread;
public:
void check_filaments_in_blacklist(std::string tag_supplier, std::string tag_material, bool& in_blacklist, std::string& action, std::string& info);
std::string get_local_models_path();
bool OnInit() override;
bool initialized() const { return m_initialized; }
std::map<std::string, bool> test_url_state;
//BBS: remove GCodeViewer as seperate APP logic
explicit GUI_App();
//explicit GUI_App(EAppMode mode = EAppMode::Editor);
@ -420,6 +424,9 @@ public:
void on_set_selected_machine(wxCommandEvent& evt);
void on_user_login(wxCommandEvent &evt);
void on_user_login_handle(wxCommandEvent& evt);
void start_check_network_state();
bool check_network_state();
void start_test_url(std::string url);
void enable_user_preset_folder(bool enable);
// BBS