mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -06:00 
			
		
		
		
	 6e1e56be18
			
		
	
	
		6e1e56be18
		
	
	
	
	
		
			
			link to hms wiki page Change-Id: I1b1c5b2021f9f68320235ce17580ae80ea9b82a3 Signed-off-by: Stone Li <stone.li@bambulab.com>
		
			
				
	
	
		
			45 lines
		
	
	
		
			No EOL
		
	
	
		
			929 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			No EOL
		
	
	
		
			929 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef slic3r_HMS_hpp_
 | |
| #define slic3r_HMS_hpp_
 | |
| 
 | |
| #include "GUI_App.hpp"
 | |
| #include "GUI.hpp"
 | |
| #include "I18N.hpp"
 | |
| #include "Widgets/Label.hpp"
 | |
| #include "Widgets/Button.hpp"
 | |
| #include "Widgets/StepCtrl.hpp"
 | |
| #include "BitmapCache.hpp"
 | |
| #include "slic3r/Utils/Http.hpp"
 | |
| #include "libslic3r/Thread.hpp"
 | |
| #include "nlohmann/json.hpp"
 | |
| 
 | |
| namespace Slic3r {
 | |
| namespace GUI {
 | |
| 
 | |
| #define HMS_INFO_FILE	"hms.json"
 | |
| 
 | |
| class HMSQuery {
 | |
| protected:
 | |
| 	json m_hms_json;
 | |
| 	int download_hms_info();
 | |
| 	int load_from_local(std::string& version_info);
 | |
| 	int save_to_local();
 | |
| 	std::string get_hms_file();
 | |
| public:
 | |
| 	HMSQuery() {}
 | |
| 	int check_hms_info();
 | |
| 	wxString query_hms_msg(std::string long_error_code);
 | |
| 	wxString query_error_msg(std::string error_code);
 | |
| 	wxString query_print_error_msg(int print_error);
 | |
| };
 | |
| 
 | |
| int get_hms_info_version(std::string &version);
 | |
| 
 | |
| std::string get_hms_wiki_url(std::string code);
 | |
| 
 | |
| std::string get_error_message(int error_code);
 | |
| 
 | |
| }
 | |
| }
 | |
| 
 | |
| 
 | |
| #endif |