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:
Diffstat (limited to 'src/slic3r/Utils/Duet.hpp')
-rw-r--r--src/slic3r/Utils/Duet.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/slic3r/Utils/Duet.hpp b/src/slic3r/Utils/Duet.hpp
index 702efbddb..e5aec548b 100644
--- a/src/slic3r/Utils/Duet.hpp
+++ b/src/slic3r/Utils/Duet.hpp
@@ -14,7 +14,7 @@ class Http;
class Duet : public PrintHost
{
public:
- Duet(DynamicPrintConfig *config);
+ explicit Duet(DynamicPrintConfig *config);
~Duet() override = default;
const char* get_name() const override;
@@ -27,18 +27,19 @@ public:
bool can_test() const override { return true; }
bool can_start_print() const override { return true; }
std::string get_host() const override { return host; }
-
+
private:
+ enum class ConnectionType { rrf, dsf, error };
std::string host;
std::string password;
- std::string get_upload_url(const std::string &filename) const;
- std::string get_connect_url() const;
+ std::string get_upload_url(const std::string &filename, ConnectionType connectionType) const;
+ std::string get_connect_url(const bool dsfUrl) const;
std::string get_base_url() const;
std::string timestamp_str() const;
- bool connect(wxString &msg) const;
- void disconnect() const;
- bool start_print(wxString &msg, const std::string &filename) const;
+ ConnectionType connect(wxString &msg) const;
+ void disconnect(ConnectionType connectionType) const;
+ bool start_print(wxString &msg, const std::string &filename, ConnectionType connectionType) const;
int get_err_code_from_body(const std::string &body) const;
};