Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kocik <kocikdav@gmail.com>2021-06-28 13:33:22 +0300
committerDavid Kocik <kocikdav@gmail.com>2021-06-28 13:36:01 +0300
commitb14345012da71198de4ddd2009895d16440bf491 (patch)
treef533e8c1d3523d6840997e1d8280d6b1d30a9bf4 /src/slic3r/Utils/OctoPrint.hpp
parentf10ec4d21c78caa47e6ea7f97ad1744ddf45018b (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.hpp25
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