ENH:optimize the management of access code

Change-Id: If8a3644207d5bca2bb10f49f8ee251b6b6219ce2
This commit is contained in:
tao wang 2023-02-08 15:26:39 +08:00 committed by Lane.Wei
parent 21cee56dbf
commit 3f109501ba
3 changed files with 15 additions and 1 deletions

View file

@ -405,11 +405,14 @@ public:
std::string connection_type() { return dev_connection_type; }
void set_dev_ip(std::string ip) {dev_ip = ip;};
bool has_access_right() { return !get_access_code().empty(); }
void set_access_code(std::string code);
std::string get_access_code();
void set_access_code(std::string code);
void set_user_access_code(std::string code);
std::string get_user_access_code();
bool is_lan_mode_printer();
//PRINTER_TYPE printer_type = PRINTER_3DPrinter_UKNOWN;
std::string printer_type; /* model_id */