Classes | |
| struct | Resource |
Public Member Functions | |
| priv () | |
| void | set_download_prefs (AppConfig *app_config) |
| bool | get_file (const std::string &url, const fs::path &target_path) const |
| bool | extract_file (const fs::path &source_path, const fs::path &dest_path={}) |
| void | prune_tmp (const std::string &vendor_id) const |
| void | sync_version () const |
| void | parse_version_string (const std::string &body) const |
| void | sync_resources (std::string http_url, std::map< std::string, Resource > &resources, bool check_patch=false, std::string current_version="", std::string changelog_file="") |
| void | sync_vendor_config (const std::string &vendor_id) |
| void | check_new_vendors (const std::set< std::string > &system_vendors, std::function< void(std::vector< std::string >, bool)> callback) |
| void | sync_tooltip (std::string http_url, std::string language) |
| void | sync_plugins (std::string http_url, std::string plugin_version) |
| void | sync_printer_config (std::string http_url) |
| bool | get_cached_plugins_version (std::string &cached_version, bool &force) |
| bool | install_bundles_rsrc (const std::vector< std::string > &bundles, bool snapshot) const |
| void | check_installed_vendor_profiles () const |
| Updates | get_printer_config_updates (bool update=false) const |
| Updates | get_config_updates (const Semver &old_slic3r_version) const |
| bool | perform_updates (Updates &&updates, bool snapshot=true) const |
| void | set_waiting_updates (Updates u) |
Public Attributes | |
| std::vector< Index > | index_db |
| bool | enabled_version_check |
| bool | enabled_config_update |
| std::string | version_check_url |
| fs::path | cache_path |
| fs::path | rsrc_path |
| fs::path | vendor_path |
| bool | cancel |
| std::thread | thread |
| bool | has_waiting_updates { false } |
| Updates | waiting_updates |
| bool | has_waiting_printer_updates { false } |
| Updates | waiting_printer_updates |
| std::set< std::string > | checked_vendors |
| std::unordered_map< std::string, std::string > | vendor_changelogs |
| std::mutex | vendor_changelogs_mutex |
| std::vector< std::thread > | vendor_check_threads |
| std::atomic< bool > | vendor_check_cancel {false} |
| struct Slic3r::PresetUpdater::priv::Resource |
| Slic3r::PresetUpdater::priv::priv | ( | ) |
References cache_path, cancel, check_installed_vendor_profiles(), Slic3r::data_dir(), enabled_version_check, get_printer_config_updates(), perform_updates(), PRESET_SYSTEM_DIR, Slic3r::resources_dir(), rsrc_path, set_download_prefs(), and vendor_path.
| void Slic3r::PresetUpdater::priv::check_installed_vendor_profiles | ( | ) | const |
References Slic3r::PresetUpdater::install_bundles_rsrc(), Slic3r::installed_vendor_version(), Slic3r::is_vendor_installed(), Slic3r::PresetBundle::ORCA_DEFAULT_BUNDLE, Slic3r::PresetBundle::ORCA_FILAMENT_LIBRARY, Slic3r::remove_installed_vendor(), Slic3r::resource_vendor_version(), rsrc_path, Slic3r::Semver::to_string(), Slic3r::vendor_names_in(), and Slic3r::AppConfig::vendors().
Referenced by priv().
| void Slic3r::PresetUpdater::priv::check_new_vendors | ( | const std::set< std::string > & | system_vendors, |
| std::function< void(std::vector< std::string >, bool)> | callback ) |
References _L_PLURAL, _u8L, cache_path, cancel, extract_file(), Slic3r::format(), Slic3r::GUI::format(), Slic3r::Http::get(), get_config_updates(), Slic3r::GUI::NotificationManager::ImportantNotificationLevel, Slic3r::installed_vendor_version(), Slic3r::Http::on_error(), Slic3r::Http::on_progress(), Slic3r::AppConfig::orig_version(), perform_updates(), Slic3r::Http::post(), Slic3r::GUI::PresetUpdateFinished, Slic3r::AppConfig::profile_update_url(), Slic3r::reload_configs_update_gui(), Slic3r::GUI::DPIAware< P >::ShowModal(), Slic3r::Http::timeout_connect(), Slic3r::TMP_EXTENSION, Slic3r::Semver::to_string(), Slic3r::Updates::updates, Slic3r::Http::url_encode(), vendor_changelogs, vendor_changelogs_mutex, vendor_check_cancel, and vendor_check_threads.
| bool Slic3r::PresetUpdater::priv::extract_file | ( | const fs::path & | source_path, |
| const fs::path & | dest_path = {} ) |
References Slic3r::extract_archive_confined().
Referenced by check_new_vendors(), sync_resources(), and sync_vendor_config().
| bool Slic3r::PresetUpdater::priv::get_cached_plugins_version | ( | std::string & | cached_version, |
| bool & | force ) |
References cache_path.
Referenced by sync_plugins().
References BBL_JSON_KEY_DESCRIPTION, BBL_JSON_KEY_FORCE_UPDATE, BBL_JSON_KEY_VERSION, cache_path, Slic3r::GUI::Config::Version::comment, Slic3r::GUI::Config::Version::config_version, Slic3r::get_values_from_json(), Slic3r::installed_vendor_version(), Slic3r::is_json_file(), Slic3r::is_vendor_installed(), Slic3r::Semver::parse(), PRESET_FILAMENT_NAME, PRESET_PRINT_NAME, PRESET_PRINTER_NAME, Slic3r::Semver::to_string(), Slic3r::Updates::updates, Slic3r::VendorCacheFile::usable_version(), Slic3r::Semver::valid(), vendor_changelogs, vendor_changelogs_mutex, and vendor_path.
Referenced by check_new_vendors().
| bool Slic3r::PresetUpdater::priv::get_file | ( | const std::string & | url, |
| const fs::path & | target_path ) const |
References cancel, Slic3r::format(), Slic3r::Http::get(), Slic3r::get_current_pid(), Slic3r::Http::on_progress(), and Slic3r::TMP_EXTENSION.
Referenced by sync_resources().
| Updates Slic3r::PresetUpdater::priv::get_printer_config_updates | ( | bool | update = false | ) | const |
References cache_path, Slic3r::GUI::Config::Version::comment, Slic3r::GUI::Config::Version::config_version, Slic3r::data_dir(), Slic3r::load_string_file(), Slic3r::Semver::maj(), Slic3r::Semver::min(), Slic3r::resources_dir(), and Slic3r::Updates::updates.
Referenced by priv(), and sync_printer_config().
| bool Slic3r::PresetUpdater::priv::install_bundles_rsrc | ( | const std::vector< std::string > & | bundles, |
| bool | snapshot ) const |
References Slic3r::install_vendor_bundles_from_resources().
| void Slic3r::PresetUpdater::priv::parse_version_string | ( | const std::string & | body | ) | const |
References Slic3r::format(), Slic3r::GUI::from_u8(), and Slic3r::Semver::parse().
Referenced by sync_version().
| bool Slic3r::PresetUpdater::priv::perform_updates | ( | Updates && | updates, |
| bool | snapshot = true ) const |
References Slic3r::format().
Referenced by priv(), and check_new_vendors().
| void Slic3r::PresetUpdater::priv::prune_tmp | ( | const std::string & | vendor_id | ) | const |
References cache_path, and Slic3r::TMP_EXTENSION.
| void Slic3r::PresetUpdater::priv::set_download_prefs | ( | AppConfig * | app_config | ) |
References enabled_config_update, Slic3r::AppConfig::get_bool(), Slic3r::AppConfig::profile_update_url(), Slic3r::AppConfig::version_check_url(), and version_check_url.
Referenced by priv().
| void Slic3r::PresetUpdater::priv::set_waiting_updates | ( | Updates | u | ) |
References has_waiting_updates, and waiting_updates.
| void Slic3r::PresetUpdater::priv::sync_plugins | ( | std::string | http_url, |
| std::string | plugin_version ) |
References BAMBU_NETWORK_AGENT_VERSION_LEGACY, Slic3r::GUI::BBLPluginUpdateAvailable, cache_path, Slic3r::format(), get_cached_plugins_version(), Slic3r::Http::get_extra_headers(), Slic3r::get_latest_network_version(), Slic3r::Semver::maj(), Slic3r::Semver::min(), Slic3r::Semver::patch(), Slic3r::Http::set_extra_headers(), and sync_resources().
| void Slic3r::PresetUpdater::priv::sync_printer_config | ( | std::string | http_url | ) |
References Slic3r::GUI::BBLPrinterConfigUpdateAvailable, Slic3r::data_dir(), Slic3r::format(), get_printer_config_updates(), has_waiting_printer_updates, Slic3r::load_string_file(), Slic3r::Semver::maj(), Slic3r::Semver::min(), Slic3r::Semver::patch(), sync_resources(), and waiting_printer_updates.
| void Slic3r::PresetUpdater::priv::sync_resources | ( | std::string | http_url, |
| std::map< std::string, Resource > & | resources, | ||
| bool | check_patch = false, | ||
| std::string | current_version = "", | ||
| std::string | changelog_file = "" ) |
References cache_path, cancel, extract_file(), Slic3r::Http::get(), get_file(), Slic3r::http, Slic3r::Semver::maj(), Slic3r::Semver::min(), Slic3r::Semver::patch(), Slic3r::TMP_EXTENSION, Slic3r::Semver::to_string(), and Slic3r::trace().
Referenced by sync_plugins(), sync_printer_config(), and sync_tooltip().
| void Slic3r::PresetUpdater::priv::sync_tooltip | ( | std::string | http_url, |
| std::string | language ) |
References Slic3r::data_dir(), Slic3r::format(), Slic3r::load_string_file(), Slic3r::GUI::MarkdownTip::Reload(), and sync_resources().
| void Slic3r::PresetUpdater::priv::sync_vendor_config | ( | const std::string & | vendor_id | ) |
References cache_path, cancel, enabled_config_update, extract_file(), Slic3r::Http::get(), Slic3r::Http::on_error(), Slic3r::Http::on_progress(), Slic3r::AppConfig::profile_update_url(), Slic3r::Http::timeout_connect(), Slic3r::TMP_EXTENSION, Slic3r::Http::url_encode(), vendor_changelogs, vendor_changelogs_mutex, and vendor_check_cancel.
| void Slic3r::PresetUpdater::priv::sync_version | ( | ) | const |
References cancel, enabled_version_check, Slic3r::format(), Slic3r::Http::get(), Slic3r::Http::on_progress(), parse_version_string(), Slic3r::Http::size_limit(), Slic3r::SLIC3R_VERSION_BODY_MAX, and version_check_url.
| fs::path Slic3r::PresetUpdater::priv::cache_path |
| bool Slic3r::PresetUpdater::priv::cancel |
Referenced by priv(), check_new_vendors(), get_file(), sync_resources(), sync_vendor_config(), and sync_version().
| std::set<std::string> Slic3r::PresetUpdater::priv::checked_vendors |
| bool Slic3r::PresetUpdater::priv::enabled_config_update |
Referenced by set_download_prefs(), and sync_vendor_config().
| bool Slic3r::PresetUpdater::priv::enabled_version_check |
Referenced by priv(), and sync_version().
| bool Slic3r::PresetUpdater::priv::has_waiting_printer_updates { false } |
Referenced by sync_printer_config().
| bool Slic3r::PresetUpdater::priv::has_waiting_updates { false } |
Referenced by set_waiting_updates().
| std::vector<Index> Slic3r::PresetUpdater::priv::index_db |
| fs::path Slic3r::PresetUpdater::priv::rsrc_path |
Referenced by priv(), and check_installed_vendor_profiles().
| std::thread Slic3r::PresetUpdater::priv::thread |
| std::unordered_map<std::string, std::string> Slic3r::PresetUpdater::priv::vendor_changelogs |
Referenced by check_new_vendors(), get_config_updates(), and sync_vendor_config().
|
mutable |
Referenced by check_new_vendors(), get_config_updates(), and sync_vendor_config().
| std::atomic<bool> Slic3r::PresetUpdater::priv::vendor_check_cancel {false} |
Referenced by check_new_vendors(), and sync_vendor_config().
| std::vector<std::thread> Slic3r::PresetUpdater::priv::vendor_check_threads |
Referenced by check_new_vendors().
| fs::path Slic3r::PresetUpdater::priv::vendor_path |
Referenced by priv(), and get_config_updates().
| std::string Slic3r::PresetUpdater::priv::version_check_url |
Referenced by set_download_prefs(), and sync_version().
| Updates Slic3r::PresetUpdater::priv::waiting_printer_updates |
Referenced by sync_printer_config().
| Updates Slic3r::PresetUpdater::priv::waiting_updates |
Referenced by set_waiting_updates().