Enumerations | |
| enum class | ElegooPrinterType { Other , CC , CC2 } |
Functions | |
| std::string | sn_cache_key (const std::string &host_ip, const std::string &token) |
| void | cache_sn (const std::string &host_ip, const std::string &token, const std::string &sn) |
| std::string | lookup_sn (const std::string &host_ip, const std::string &token) |
| std::string | load_sn_from_config (const std::string &host_ip) |
| void | persist_sn (const std::string &host_ip, const std::string &token, const std::string &sn) |
| ElegooPrinterType | classify_printer_model (const std::string &printer_model) |
| std::string | get_cc2_token (const std::string &apikey) |
| bool | parse_cc2_response (const std::string &body, std::string &error_message, std::string *serial_number=nullptr) |
| std::string | lookup_cc2_serial_impl (const std::string &printer_model, const std::string &print_host, const std::string &apikey) |
| std::string | lookup_cc2_serial (DynamicPrintConfig *config) |
| std::string | escape_string (const std::string &unescaped) |
| std::string | escape_path_by_element (const boost::filesystem::path &path) |
| std::string | path_to_utf8 (const boost::filesystem::path &path) |
| std::string | filename_to_utf8 (const boost::filesystem::path &path) |
Variables | |
| constexpr const char * | ELEGOO_CC2_DEFAULT_TOKEN = "123456" |
| constexpr const char * | ELEGOO_DEV_SN_SECTION = "dev_sn" |
| static std::mutex | s_sn_cache_mutex |
| static std::map< std::string, std::string > | s_sn_cache |
|
strong |
| void Slic3r::anonymous_namespace{ElegooLink.cpp}::cache_sn | ( | const std::string & | host_ip, |
| const std::string & | token, | ||
| const std::string & | sn ) |
References cache_sn(), s_sn_cache, s_sn_cache_mutex, and sn_cache_key().
Referenced by cache_sn(), and persist_sn().
| ElegooPrinterType Slic3r::anonymous_namespace{ElegooLink.cpp}::classify_printer_model | ( | const std::string & | printer_model | ) |
References CC, CC2, classify_printer_model(), and Other.
Referenced by classify_printer_model(), and lookup_cc2_serial_impl().
| std::string Slic3r::anonymous_namespace{ElegooLink.cpp}::escape_path_by_element | ( | const boost::filesystem::path & | path | ) |
References escape_path_by_element(), and escape_string().
Referenced by escape_path_by_element().
| std::string Slic3r::anonymous_namespace{ElegooLink.cpp}::escape_string | ( | const std::string & | unescaped | ) |
References escape_string().
Referenced by escape_path_by_element(), and escape_string().
| std::string Slic3r::anonymous_namespace{ElegooLink.cpp}::filename_to_utf8 | ( | const boost::filesystem::path & | path | ) |
References filename_to_utf8().
Referenced by filename_to_utf8().
| std::string Slic3r::anonymous_namespace{ElegooLink.cpp}::get_cc2_token | ( | const std::string & | apikey | ) |
References ELEGOO_CC2_DEFAULT_TOKEN, and get_cc2_token().
Referenced by get_cc2_token(), and lookup_cc2_serial_impl().
| std::string Slic3r::anonymous_namespace{ElegooLink.cpp}::load_sn_from_config | ( | const std::string & | host_ip | ) |
References ELEGOO_DEV_SN_SECTION, Slic3r::AppConfig::get(), Slic3r::GUI::get_app_config(), and load_sn_from_config().
Referenced by load_sn_from_config(), and lookup_cc2_serial_impl().
| std::string Slic3r::anonymous_namespace{ElegooLink.cpp}::lookup_cc2_serial | ( | DynamicPrintConfig * | config | ) |
References lookup_cc2_serial(), lookup_cc2_serial_impl(), and Slic3r::DynamicConfig::opt_string().
Referenced by lookup_cc2_serial().
| std::string Slic3r::anonymous_namespace{ElegooLink.cpp}::lookup_cc2_serial_impl | ( | const std::string & | printer_model, |
| const std::string & | print_host, | ||
| const std::string & | apikey ) |
References CC2, classify_printer_model(), get_cc2_token(), Slic3r::Http::get_host_header_value(), load_sn_from_config(), lookup_cc2_serial_impl(), and lookup_sn().
Referenced by lookup_cc2_serial(), and lookup_cc2_serial_impl().
| std::string Slic3r::anonymous_namespace{ElegooLink.cpp}::lookup_sn | ( | const std::string & | host_ip, |
| const std::string & | token ) |
References lookup_sn(), s_sn_cache, s_sn_cache_mutex, and sn_cache_key().
Referenced by lookup_cc2_serial_impl(), and lookup_sn().
| bool Slic3r::anonymous_namespace{ElegooLink.cpp}::parse_cc2_response | ( | const std::string & | body, |
| std::string & | error_message, | ||
| std::string * | serial_number = nullptr ) |
References _u8L, and parse_cc2_response().
Referenced by parse_cc2_response().
| std::string Slic3r::anonymous_namespace{ElegooLink.cpp}::path_to_utf8 | ( | const boost::filesystem::path & | path | ) |
References path_to_utf8().
Referenced by path_to_utf8().
| void Slic3r::anonymous_namespace{ElegooLink.cpp}::persist_sn | ( | const std::string & | host_ip, |
| const std::string & | token, | ||
| const std::string & | sn ) |
References cache_sn(), ELEGOO_DEV_SN_SECTION, Slic3r::GUI::get_app_config(), persist_sn(), and Slic3r::AppConfig::set_str().
Referenced by persist_sn().
| std::string Slic3r::anonymous_namespace{ElegooLink.cpp}::sn_cache_key | ( | const std::string & | host_ip, |
| const std::string & | token ) |
References sn_cache_key().
Referenced by cache_sn(), lookup_sn(), and sn_cache_key().
|
constexpr |
Referenced by get_cc2_token().
|
constexpr |
Referenced by load_sn_from_config(), and persist_sn().
|
static |
Referenced by cache_sn(), and lookup_sn().
|
static |
Referenced by cache_sn(), and lookup_sn().