summaryrefslogtreecommitdiff
path: root/editor/export_template_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/export_template_manager.h')
-rw-r--r--editor/export_template_manager.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/editor/export_template_manager.h b/editor/export_template_manager.h
index c77f85688f..644c6b466b 100644
--- a/editor/export_template_manager.h
+++ b/editor/export_template_manager.h
@@ -33,13 +33,20 @@
#include "editor/editor_settings.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/file_dialog.h"
+#include "scene/gui/progress_bar.h"
#include "scene/gui/scroll_container.h"
+#include "scene/main/http_request.h"
class ExportTemplateVersion;
class ExportTemplateManager : public ConfirmationDialog {
GDCLASS(ExportTemplateManager, ConfirmationDialog)
+ AcceptDialog *template_downloader;
+ VBoxContainer *template_list;
+ Label *template_list_state;
+ ProgressBar *template_download_progress;
+
ScrollContainer *installed_scroll;
VBoxContainer *installed_vb;
HBoxContainer *current_hb;
@@ -48,6 +55,13 @@ class ExportTemplateManager : public ConfirmationDialog {
ConfirmationDialog *remove_confirm;
String to_remove;
+ HTTPRequest *request_mirror;
+ HTTPRequest *download_templates;
+
+ Vector<uint8_t> download_data;
+
+ float update_countdown;
+
void _update_template_list();
void _download_template(const String &p_version);
@@ -57,7 +71,13 @@ class ExportTemplateManager : public ConfirmationDialog {
virtual void ok_pressed();
void _install_from_file(const String &p_file);
+ void _http_download_mirror_completed(int p_status, int p_code, const PoolStringArray &headers, const PoolByteArray &p_data);
+ void _http_download_templates_completed(int p_status, int p_code, const PoolStringArray &headers, const PoolByteArray &p_data);
+
+ void _begin_template_download(const String &p_url);
+
protected:
+ void _notification(int p_what);
static void _bind_methods();
public: