diff options
author | David Kocik <kocikdav@gmail.com> | 2021-06-28 13:33:22 +0300 |
---|---|---|
committer | David Kocik <kocikdav@gmail.com> | 2021-06-28 13:36:01 +0300 |
commit | b14345012da71198de4ddd2009895d16440bf491 (patch) | |
tree | f533e8c1d3523d6840997e1d8280d6b1d30a9bf4 /src/slic3r/Utils/OctoPrint.hpp | |
parent | f10ec4d21c78caa47e6ea7f97ad1744ddf45018b (diff) |
PrusaLink - cherrypick pick from stable branch
Added to config enums, visible in Physical Printer Dialog and class derived from Octoprint
Diffstat (limited to 'src/slic3r/Utils/OctoPrint.hpp')
-rw-r--r-- | src/slic3r/Utils/OctoPrint.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/slic3r/Utils/OctoPrint.hpp b/src/slic3r/Utils/OctoPrint.hpp index f1b36096c..62bdfb6fa 100644 --- a/src/slic3r/Utils/OctoPrint.hpp +++ b/src/slic3r/Utils/OctoPrint.hpp @@ -70,6 +70,31 @@ private: std::string 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 |