Ongoing uploads while exiting dialog

Ongoing uploads while exiting dialog

Ongoing uploads while exiting dialog
This commit is contained in:
David Kocik 2020-12-10 10:58:40 +01:00
parent 48a21cae93
commit 3523bb421f
10 changed files with 63 additions and 12 deletions

View file

@ -64,7 +64,7 @@ public:
PrintHostQueueDialog(wxWindow *parent);
void append_job(const PrintHostJob &job);
void get_active_jobs(std::vector<std::pair<std::string, std::string>>& ret);
protected:
void on_dpi_changed(const wxRect &suggested_rect) override;
@ -103,13 +103,14 @@ private:
void on_progress(Event&);
void on_error(Event&);
void on_cancel(Event&);
// This vector keep adress and filename of uploads. It is used when checking for running uploads during exit.
std::vector<std::pair<std::string, std::string>> upload_names;
};
wxDECLARE_EVENT(EVT_PRINTHOST_PROGRESS, PrintHostQueueDialog::Event);
wxDECLARE_EVENT(EVT_PRINTHOST_ERROR, PrintHostQueueDialog::Event);
wxDECLARE_EVENT(EVT_PRINTHOST_CANCEL, PrintHostQueueDialog::Event);
}}
#endif