ENH:optimize the detection of FTP connection status

Change-Id: I9e7095959f3933e5fa22a0b274d221b1c2c42878
This commit is contained in:
tao wang 2023-02-17 17:30:17 +08:00 committed by Lane.Wei
parent 9b59fb4cbc
commit 875c851b61
3 changed files with 26 additions and 25 deletions

View file

@ -21,7 +21,7 @@ class SendJob : public PlaterJob
bool m_job_finished{ false };
int m_print_job_completed_id = 0;
bool m_is_check_mode{false};
bool m_chck_and_continue{false};
bool m_check_and_continue{false};
std::function<void()> m_success_fun{nullptr};
std::function<void()> m_enter_ip_address_fun_fail{nullptr};
std::function<void()> m_enter_ip_address_fun_success{nullptr};
@ -55,7 +55,7 @@ public:
wxString get_http_error_msg(unsigned int status, std::string body);
void set_check_mode() {m_is_check_mode = true;};
void check_and_continue() {m_chck_and_continue = true;};
void check_and_continue() {m_check_and_continue = true;};
bool is_finished() { return m_job_finished; }
void process() override;
void on_success(std::function<void()> success);