#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/RemovableDriveManager.hpp>
Classes | |
| struct | RemovableDrivesStatus |
Public Member Functions | |
| RemovableDriveManager ()=default | |
| RemovableDriveManager (RemovableDriveManager const &)=delete | |
| void | operator= (RemovableDriveManager const &)=delete |
| ~RemovableDriveManager () | |
| void | init (wxEvtHandler *callback_evt_handler) |
| void | shutdown () |
| std::string | get_removable_drive_path (const std::string &path) |
| bool | is_path_on_removable_drive (const std::string &path) |
| bool | set_and_verify_last_save_path (const std::string &path) |
| void | eject_drive () |
| RemovableDrivesStatus | status () |
| void | update () |
| void | set_exporting_finished (bool b) |
Private Member Functions | |
| void | thread_proc () |
| std::vector< DriveData > | search_for_removable_drives () const |
| std::string | get_removable_drive_from_path (const std::string &path) |
| std::vector< DriveData >::const_iterator | find_last_save_path_drive_data () const |
Private Attributes | |
| bool | m_initialized { false } |
| wxEvtHandler * | m_callback_evt_handler { nullptr } |
| boost::thread | m_thread |
| std::condition_variable | m_thread_stop_condition |
| std::mutex | m_thread_stop_mutex |
| bool | m_stop { false } |
| std::vector< DriveData > | m_current_drives |
| std::mutex | m_drives_mutex |
| std::mutex | m_inside_update_mutex |
| std::string | m_last_save_path |
| bool | m_exporting_finished |
| struct Slic3r::GUI::RemovableDriveManager::RemovableDrivesStatus |
|
default |
|
delete |
|
inline |
| void Slic3r::GUI::RemovableDriveManager::eject_drive | ( | ) |
References find_last_save_path_drive_data(), m_callback_evt_handler, m_current_drives, m_drives_mutex, m_last_save_path, Slic3r::trace(), and update().
|
private |
References Slic3r::binary_find_by_predicate(), and m_current_drives.
Referenced by eject_drive(), and status().
|
private |
References Slic3r::GUI::search_for_drives_internal::compare_filesystem_id(), m_current_drives, and m_drives_mutex.
Referenced by set_and_verify_last_save_path().
| std::string Slic3r::GUI::RemovableDriveManager::get_removable_drive_path | ( | const std::string & | path | ) |
References Slic3r::GUI::search_for_drives_internal::compare_filesystem_id(), m_current_drives, m_drives_mutex, and update().
Referenced by Slic3r::GUI::Plater::export_gcode(), and is_path_on_removable_drive().
| void Slic3r::GUI::RemovableDriveManager::init | ( | wxEvtHandler * | callback_evt_handler | ) |
References m_callback_evt_handler, m_initialized, m_thread, thread_proc(), and update().
|
inline |
References get_removable_drive_path().
Referenced by Slic3r::GUI::Plater::export_gcode_3mf().
|
delete |
|
private |
References Slic3r::LinuxOnChromium, Slic3r::platform_flavor(), and Slic3r::GUI::search_for_drives_internal::search_path().
Referenced by update().
| bool Slic3r::GUI::RemovableDriveManager::set_and_verify_last_save_path | ( | const std::string & | path | ) |
References get_removable_drive_from_path(), m_exporting_finished, m_last_save_path, and update().
Referenced by Slic3r::GUI::Plater::export_gcode().
|
inline |
References m_exporting_finished.
| void Slic3r::GUI::RemovableDriveManager::shutdown | ( | ) |
References m_callback_evt_handler, m_initialized, m_stop, m_thread, m_thread_stop_condition, and m_thread_stop_mutex.
Referenced by Slic3r::GUI::GUI_App::shutdown().
| RemovableDriveManager::RemovableDrivesStatus Slic3r::GUI::RemovableDriveManager::status | ( | ) |
References find_last_save_path_drive_data(), Slic3r::GUI::RemovableDriveManager::RemovableDrivesStatus::has_eject, Slic3r::GUI::RemovableDriveManager::RemovableDrivesStatus::has_removable_drives, Slic3r::LinuxOnChromium, m_current_drives, m_drives_mutex, m_exporting_finished, m_last_save_path, and Slic3r::platform_flavor().
|
private |
References m_stop, m_thread_stop_condition, m_thread_stop_mutex, and update().
Referenced by init().
| void Slic3r::GUI::RemovableDriveManager::update | ( | ) |
References m_callback_evt_handler, m_current_drives, m_drives_mutex, m_inside_update_mutex, and search_for_removable_drives().
Referenced by eject_drive(), get_removable_drive_path(), init(), set_and_verify_last_save_path(), and thread_proc().
|
private |
Referenced by eject_drive(), init(), shutdown(), and update().
|
private |
|
mutableprivate |
Referenced by eject_drive(), get_removable_drive_from_path(), get_removable_drive_path(), status(), and update().
|
private |
Referenced by set_and_verify_last_save_path(), set_exporting_finished(), and status().
|
private |
Referenced by init(), and shutdown().
|
mutableprivate |
Referenced by update().
|
private |
Referenced by eject_drive(), set_and_verify_last_save_path(), and status().
|
private |
Referenced by shutdown(), and thread_proc().
|
private |
Referenced by init(), and shutdown().
|
private |
Referenced by shutdown(), and thread_proc().
|
mutableprivate |
Referenced by shutdown(), and thread_proc().