ENH:add network verification process for LAN printing

Change-Id: I0a9e9fa5e9746f5ceb989b00c6b44e812d071132
This commit is contained in:
tao wang 2023-02-07 10:42:30 +08:00 committed by Lane.Wei
parent 088668994c
commit a94b78d296
5 changed files with 71 additions and 14 deletions

View file

@ -29,6 +29,8 @@ class PrintJob : public PlaterJob
std::string m_dev_id;
bool m_job_finished{ false };
int m_print_job_completed_id = 0;
std::function<void()> m_enter_ip_address_fun_fail{ nullptr };
std::function<void()> m_enter_ip_address_fun_success{ nullptr };
protected:
@ -78,6 +80,8 @@ public:
void process() override;
void finalize() override;
void set_project_name(std::string name);
void on_check_ip_address_fail(std::function<void()> func);
void on_check_ip_address_success(std::function<void()> func);
};
}} // namespace Slic3r::GUI