![]() |
Prusa Slicer 2.6.0
|
#include <src/slic3r/GUI/Downloader.hpp>
Inheritance diagram for Slic3r::GUI::Downloader:
Collaboration diagram for Slic3r::GUI::Downloader:Public Member Functions | |
| Downloader () | |
| bool | get_initialized () |
| void | init (const boost::filesystem::path &dest_folder) |
| void | start_download (const std::string &full_url) |
| bool | user_action_callback (DownloaderUserAction action, int id) |
Private Member Functions | |
| size_t | get_next_id () |
| void | on_progress (wxCommandEvent &event) |
| void | on_error (wxCommandEvent &event) |
| void | on_complete (wxCommandEvent &event) |
| void | on_name_change (wxCommandEvent &event) |
| void | on_paused (wxCommandEvent &event) |
| void | on_canceled (wxCommandEvent &event) |
| void | set_download_state (int id, DownloadState state) |
Private Attributes | |
| bool | m_initialized { false } |
| std::vector< std::unique_ptr< Download > > | m_downloads |
| boost::filesystem::path | m_dest_folder |
| size_t | m_next_id { 0 } |
| Slic3r::GUI::Downloader::Downloader | ( | ) |
References on_canceled(), on_complete(), on_error(), on_name_change(), on_paused(), and on_progress().
Here is the call graph for this function:
|
inline |
References m_initialized.
|
inlineprivate |
References m_dest_folder, and m_initialized.
|
private |
References Slic3r::GUI::NotificationManager::set_download_URL_canceled().
Referenced by Downloader().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References Slic3r::GUI::DownloadDone, and set_download_state().
Referenced by Downloader().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References _L, Slic3r::GUI::DownloadError, error, Slic3r::GUI::format_wxstr(), L, boost::nowide::narrow(), set_download_state(), Slic3r::GUI::NotificationManager::set_download_URL_error(), and Slic3r::GUI::show_error().
Referenced by Downloader().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
References Slic3r::GUI::NotificationManager::set_download_URL_paused().
Referenced by Downloader().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References boost::nowide::narrow(), and Slic3r::GUI::NotificationManager::set_download_URL_progress().
Referenced by Downloader().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References m_downloads.
Referenced by on_complete(), and on_error().
Here is the caller graph for this function:References _L, Slic3r::GUI::CustomNotification, error, Slic3r::GUI::FileGet::escape_url(), Slic3r::GUI::format(), get_next_id(), Slic3r::GUI::FileGet::is_subdomain(), m_dest_folder, m_downloads, m_initialized, Slic3r::GUI::NotificationManager::push_download_URL_progress_notification(), Slic3r::GUI::NotificationManager::push_notification(), Slic3r::GUI::NotificationManager::RegularNotificationLevel, and user_action_callback().
Here is the call graph for this function:| bool Slic3r::GUI::Downloader::user_action_callback | ( | DownloaderUserAction | action, |
| int | id | ||
| ) |
References Slic3r::GUI::DownloadUserCanceled, Slic3r::GUI::DownloadUserContinued, Slic3r::GUI::DownloadUserOpenedFolder, Slic3r::GUI::DownloadUserPaused, and m_downloads.
Referenced by start_download().
Here is the caller graph for this function:
|
private |
Referenced by init(), and start_download().
|
private |
Referenced by set_download_state(), start_download(), and user_action_callback().
|
private |
Referenced by get_initialized(), init(), and start_download().
|
private |
Referenced by get_next_id().