Public Member Functions | |
| priv (PrintHostJobQueue *q) | |
| void | emit_progress (int progress) |
| void | emit_error (wxString error) |
| void | emit_cancel (size_t id) |
| void | emit_info (wxString tag, wxString status) |
| void | start_bg_thread () |
| void | stop_bg_thread () |
| void | bg_thread_main () |
| void | progress_fn (Http::Progress progress, bool &cancel) |
| void | error_fn (wxString error) |
| void | info_fn (wxString tag, wxString status) |
| void | remove_source (const fs::path &path) |
| void | remove_source () |
| void | perform_job (PrintHostJob the_job) |
Public Attributes | |
| PrintHostJobQueue * | q |
| Channel< PrintHostJob > | channel_jobs |
| Channel< size_t > | channel_cancels |
| size_t | job_id = 0 |
| int | prev_progress = -1 |
| fs::path | source_to_remove |
| std::thread | bg_thread |
| bool | bg_exit = false |
| PrintHostQueueDialog * | queue_dialog |
|
inline |
References Slic3r::PrintHostJobQueue::PrintHostJobQueue(), and q.
| void Slic3r::PrintHostJobQueue::priv::bg_thread_main | ( | ) |
References bg_exit, channel_jobs, emit_error(), job_id, perform_job(), remove_source(), and source_to_remove.
| void Slic3r::PrintHostJobQueue::priv::emit_cancel | ( | size_t | id | ) |
References queue_dialog.
Referenced by error_fn(), and progress_fn().
| void Slic3r::PrintHostJobQueue::priv::emit_error | ( | wxString | error | ) |
References job_id, and queue_dialog.
Referenced by bg_thread_main(), and error_fn().
| void Slic3r::PrintHostJobQueue::priv::emit_info | ( | wxString | tag, |
| wxString | status ) |
References job_id, and queue_dialog.
Referenced by info_fn().
| void Slic3r::PrintHostJobQueue::priv::emit_progress | ( | int | progress | ) |
References job_id, and queue_dialog.
Referenced by perform_job(), and progress_fn().
| void Slic3r::PrintHostJobQueue::priv::error_fn | ( | wxString | error | ) |
References channel_cancels, channel_jobs, emit_cancel(), emit_error(), and job_id.
Referenced by perform_job().
| void Slic3r::PrintHostJobQueue::priv::info_fn | ( | wxString | tag, |
| wxString | status ) |
References emit_info().
Referenced by perform_job().
| void Slic3r::PrintHostJobQueue::priv::perform_job | ( | PrintHostJob | the_job | ) |
References Slic3r::PrintHostJobQueue::cancel(), emit_progress(), error_fn(), info_fn(), progress_fn(), Slic3r::PrintHostJob::switch_to_device_tab, TAB_ID_MONITOR, and Slic3r::PrintHostJobQueue::upload_job().
Referenced by bg_thread_main().
| void Slic3r::PrintHostJobQueue::priv::progress_fn | ( | Http::Progress | progress, |
| bool & | cancel ) |
References bg_exit, Slic3r::PrintHostJobQueue::cancel(), channel_cancels, channel_jobs, emit_cancel(), emit_progress(), job_id, prev_progress, Slic3r::Http::Progress::ulnow, and Slic3r::Http::Progress::ultotal.
Referenced by perform_job().
| void Slic3r::PrintHostJobQueue::priv::remove_source | ( | ) |
| void Slic3r::PrintHostJobQueue::priv::remove_source | ( | const fs::path & | path | ) |
Referenced by bg_thread_main(), and remove_source().
| void Slic3r::PrintHostJobQueue::priv::start_bg_thread | ( | ) |
| void Slic3r::PrintHostJobQueue::priv::stop_bg_thread | ( | ) |
References bg_exit, bg_thread, and channel_jobs.
| bool Slic3r::PrintHostJobQueue::priv::bg_exit = false |
Referenced by bg_thread_main(), progress_fn(), and stop_bg_thread().
| std::thread Slic3r::PrintHostJobQueue::priv::bg_thread |
Referenced by start_bg_thread(), and stop_bg_thread().
| Channel<size_t> Slic3r::PrintHostJobQueue::priv::channel_cancels |
Referenced by error_fn(), and progress_fn().
| Channel<PrintHostJob> Slic3r::PrintHostJobQueue::priv::channel_jobs |
Referenced by bg_thread_main(), error_fn(), progress_fn(), and stop_bg_thread().
| size_t Slic3r::PrintHostJobQueue::priv::job_id = 0 |
Referenced by bg_thread_main(), emit_error(), emit_info(), emit_progress(), error_fn(), and progress_fn().
| int Slic3r::PrintHostJobQueue::priv::prev_progress = -1 |
Referenced by progress_fn().
| PrintHostJobQueue* Slic3r::PrintHostJobQueue::priv::q |
Referenced by priv(), and start_bg_thread().
| PrintHostQueueDialog* Slic3r::PrintHostJobQueue::priv::queue_dialog |
Referenced by emit_cancel(), emit_error(), emit_info(), and emit_progress().
| fs::path Slic3r::PrintHostJobQueue::priv::source_to_remove |
Referenced by bg_thread_main(), and remove_source().