mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 12:47:50 -06:00
PrusaLink - cherrypick pick from stable branch
Added to config enums, visible in Physical Printer Dialog and class derived from Octoprint
This commit is contained in:
parent
ea46af82d6
commit
13deee3c8f
1 changed files with 25 additions and 0 deletions
|
@ -96,6 +96,31 @@ private:
|
||||||
std::string m_password;
|
std::string m_password;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class PrusaLink : public OctoPrint
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PrusaLink(DynamicPrintConfig* config);
|
||||||
|
~PrusaLink() override = default;
|
||||||
|
|
||||||
|
const char* get_name() const override;
|
||||||
|
|
||||||
|
wxString get_test_ok_msg() const override;
|
||||||
|
wxString get_test_failed_msg(wxString& msg) const override;
|
||||||
|
bool can_start_print() const override { return true; }
|
||||||
|
|
||||||
|
protected:
|
||||||
|
bool validate_version_text(const boost::optional<std::string>& version_text) const override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
void set_auth(Http& http) const override;
|
||||||
|
|
||||||
|
// Host authorization type.
|
||||||
|
AuthorizationType authorization_type;
|
||||||
|
// username and password for HTTP Digest Authentization (RFC RFC2617)
|
||||||
|
std::string username;
|
||||||
|
std::string password;
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue