#include "export_template_manager.h"
#include "core/io/dir_access.h"
#include "core/io/json.h"
#include "core/io/zip_io.h"
#include "core/version.h"
#include "editor/editor_file_system.h"
#include "editor/editor_node.h"
#include "editor/editor_paths.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/export/editor_export.h"
#include "editor/progress_dialog.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/file_dialog.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/separator.h"
#include "scene/gui/tree.h"
#include "scene/main/http_request.h"
enum DownloadsAvailability { … };
static DownloadsAvailability _get_downloads_availability() { … }
void ExportTemplateManager::_update_template_status() { … }
void ExportTemplateManager::_download_current() { … }
void ExportTemplateManager::_download_template(const String &p_url, bool p_skip_check) { … }
void ExportTemplateManager::_download_template_completed(int p_status, int p_code, const PackedStringArray &headers, const PackedByteArray &p_data) { … }
void ExportTemplateManager::_cancel_template_download() { … }
void ExportTemplateManager::_refresh_mirrors() { … }
void ExportTemplateManager::_refresh_mirrors_completed(int p_status, int p_code, const PackedStringArray &headers, const PackedByteArray &p_data) { … }
bool ExportTemplateManager::_humanize_http_status(HTTPRequest *p_request, String *r_status, int *r_downloaded_bytes, int *r_total_bytes) { … }
void ExportTemplateManager::_set_current_progress_status(const String &p_status, bool p_error) { … }
void ExportTemplateManager::_set_current_progress_value(float p_value, const String &p_status) { … }
void ExportTemplateManager::_install_file() { … }
bool ExportTemplateManager::_install_file_selected(const String &p_file, bool p_skip_progress) { … }
void ExportTemplateManager::_uninstall_template(const String &p_version) { … }
void ExportTemplateManager::_uninstall_template_confirmed() { … }
String ExportTemplateManager::_get_selected_mirror() const { … }
void ExportTemplateManager::_mirror_options_button_cbk(int p_id) { … }
void ExportTemplateManager::_installed_table_button_cbk(Object *p_item, int p_column, int p_id, MouseButton p_button) { … }
void ExportTemplateManager::_open_template_folder(const String &p_version) { … }
void ExportTemplateManager::popup_manager() { … }
void ExportTemplateManager::ok_pressed() { … }
void ExportTemplateManager::_hide_dialog() { … }
String ExportTemplateManager::get_android_build_directory(const Ref<EditorExportPreset> &p_preset) { … }
String ExportTemplateManager::get_android_source_zip(const Ref<EditorExportPreset> &p_preset) { … }
String ExportTemplateManager::get_android_template_identifier(const Ref<EditorExportPreset> &p_preset) { … }
bool ExportTemplateManager::is_android_template_installed(const Ref<EditorExportPreset> &p_preset) { … }
bool ExportTemplateManager::can_install_android_template(const Ref<EditorExportPreset> &p_preset) { … }
Error ExportTemplateManager::install_android_template(const Ref<EditorExportPreset> &p_preset) { … }
Error ExportTemplateManager::install_android_template_from_file(const String &p_file, const Ref<EditorExportPreset> &p_preset) { … }
void ExportTemplateManager::_notification(int p_what) { … }
ExportTemplateManager::ExportTemplateManager() { … }