mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-01 23:32:10 +00:00
NEW:support displaying new HMS error message
jira:[hms ] Change-Id: I99c2877eba5476f2f5ee25636ebea2923c6aafdb (cherry picked from commit 512ac4b6c18a3623a4197213c8e879b450023cf9) (cherry picked from commit d4187d91e7b5f1b1da24b1e9331a140c58dd2702)
This commit is contained in:
@@ -23,22 +23,23 @@ class HMSQuery {
|
||||
protected:
|
||||
json m_hms_info_json;
|
||||
json m_hms_action_json;
|
||||
int download_hms_related(std::string hms_type,json* receive_json);
|
||||
int load_from_local(std::string& version_info, std::string hms_type, json* load_json);
|
||||
int save_to_local(std::string lang, std::string hms_type,json save_json);
|
||||
std::string get_hms_file(std::string hms_type, std::string lang = std::string("en"));
|
||||
int download_hms_related(std::string hms_type, json *receive_json, std::string dev_type);
|
||||
int load_from_local(std::string &version_info, std::string hms_type, json *load_json, std::string dev_type);
|
||||
int save_to_local(std::string lang, std::string hms_type, std::string dev_type, json save_json);
|
||||
std::string get_hms_file(std::string hms_type, std::string lang = std::string("en"), std::string dev_type = "");
|
||||
wxString _query_hms_msg(std::string long_error_code, std::string lang_code = std::string("en"));
|
||||
bool _query_error_msg(wxString &error_msg, std::string long_error_code, std::string lang_code = std::string("en"));
|
||||
wxString _query_error_url_action(std::string long_error_code, std::string dev_id, std::vector<int>& button_action);
|
||||
public:
|
||||
HMSQuery() {}
|
||||
int check_hms_info();
|
||||
wxString query_hms_msg(std::string long_error_code);
|
||||
int check_hms_info(std::string dev_type = "00M");
|
||||
void check_hms_info_from_local(std::string dev_type);
|
||||
wxString query_hms_msg(std::string long_error_code);
|
||||
bool query_print_error_msg(int print_error, wxString &error_msg);
|
||||
wxString query_print_error_url_action(int print_error, std::string dev_id, std::vector<int>& button_action);
|
||||
static std::string hms_language_code();
|
||||
static std::string build_query_params(std::string& lang);
|
||||
|
||||
bool check_local_file(std::string dev_type);
|
||||
bool save_local = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user