![]() |
Prusa Slicer 2.6.0
|
#include <src/slic3r/Utils/Duet.hpp>
Inheritance diagram for Slic3r::Duet:
Collaboration diagram for Slic3r::Duet:Public Types | |
| typedef Http::ProgressFn | ProgressFn |
| typedef std::function< void(wxString)> | ErrorFn |
| typedef std::function< void(wxString, wxString)> | InfoFn |
Public Member Functions | |
| Duet (DynamicPrintConfig *config) | |
| ~Duet () override=default | |
| const char * | get_name () const override |
| bool | test (wxString &curl_msg) const override |
| wxString | get_test_ok_msg () const override |
| wxString | get_test_failed_msg (wxString &msg) const override |
| bool | upload (PrintHostUpload upload_data, ProgressFn prorgess_fn, ErrorFn error_fn, InfoFn info_fn) const override |
| bool | has_auto_discovery () const override |
| bool | can_test () const override |
| PrintHostPostUploadActions | get_post_upload_actions () const override |
| std::string | get_host () const override |
| virtual bool | supports_multiple_printers () const |
| virtual bool | get_groups (wxArrayString &) const |
| virtual bool | get_printers (wxArrayString &) const |
| virtual bool | get_storage (wxArrayString &, wxArrayString &) const |
Static Public Member Functions | |
| static PrintHost * | get_print_host (DynamicPrintConfig *config) |
Protected Member Functions | |
| virtual wxString | format_error (const std::string &body, const std::string &error, unsigned status) const |
Private Types | |
| enum class | ConnectionType { rrf , dsf , error } |
Private Member Functions | |
| 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 |
| ConnectionType | connect (wxString &msg) const |
| void | disconnect (ConnectionType connectionType) const |
| bool | start_print (wxString &msg, const std::string &filename, ConnectionType connectionType, bool simulationMode) const |
| int | get_err_code_from_body (const std::string &body) const |
Private Attributes | |
| std::string | host |
| std::string | password |
|
inherited |
|
inherited |
|
inherited |
|
strongprivate |
|
explicit |
|
overridedefault |
|
inlineoverridevirtual |
Implements Slic3r::PrintHost.
|
private |
References dsf, error, Slic3r::PrintHost::format_error(), Slic3r::Http::get(), get_connect_url(), get_err_code_from_body(), L, and rrf.
Referenced by test(), and upload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References error, Slic3r::Http::get(), get_base_url(), and rrf.
Referenced by test(), and upload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectedvirtualinherited |
References error.
Referenced by connect(), Slic3r::PrusaLink::post_inner(), Slic3r::PrusaLink::put_inner(), start_print(), Slic3r::AstroBox::test(), Slic3r::FlashAir::test(), Slic3r::Moonraker::test(), Slic3r::OctoPrint::test(), Slic3r::PrusaLink::test(), Slic3r::Repetier::test(), Slic3r::PrusaLink::test_with_method_check(), Slic3r::AstroBox::upload(), upload(), Slic3r::FlashAir::upload(), Slic3r::MKS::upload(), Slic3r::Moonraker::upload(), Slic3r::Repetier::upload(), and Slic3r::OctoPrint::upload_inner_with_host().
Here is the caller graph for this function:
|
private |
References host.
Referenced by disconnect(), get_connect_url(), get_upload_url(), and start_print().
Here is the caller graph for this function:
|
private |
References get_base_url(), password, and timestamp_str().
Referenced by connect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
inlinevirtualinherited |
Reimplemented in Slic3r::Repetier.
|
inlineoverridevirtual |
|
overridevirtual |
Implements Slic3r::PrintHost.
|
inlineoverridevirtual |
Implements Slic3r::PrintHost.
References Slic3r::StartPrint, and Slic3r::StartSimulation.
|
staticinherited |
References Slic3r::htAstroBox, Slic3r::htDuet, Slic3r::htFlashAir, Slic3r::htMKS, Slic3r::htMoonraker, Slic3r::htOctoPrint, Slic3r::htPrusaConnect, Slic3r::htPrusaLink, Slic3r::htRepetier, Slic3r::ConfigBase::option(), Slic3r::ptFFF, and Slic3r::ConfigOptionSingle< T >::value.
Referenced by Slic3r::GUI::PhysicalPrinterDialog::build_printhost_settings(), Slic3r::GUI::PhysicalPrinterDialog::update_printers(), and Slic3r::GUI::PhysicalPrinterDialog::update_printhost_buttons().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtualinherited |
Reimplemented in Slic3r::Repetier.
|
inlinevirtualinherited |
Reimplemented in Slic3r::PrusaLink, and Slic3r::PrusaConnect.
|
overridevirtual |
Implements Slic3r::PrintHost.
References _L, and Slic3r::GUI::format_wxstr().
Here is the call graph for this function:
|
overridevirtual |
|
private |
References dsf, error, get_base_url(), timestamp_str(), and Slic3r::Http::url_encode().
Referenced by upload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineoverridevirtual |
Implements Slic3r::PrintHost.
|
private |
References dsf, error, Slic3r::PrintHost::format_error(), Slic3r::Http::get(), get_base_url(), Slic3r::Http::post(), and Slic3r::Http::url_encode().
Referenced by upload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtualinherited |
Reimplemented in Slic3r::Repetier.
|
overridevirtual |
Implements Slic3r::PrintHost.
References connect(), disconnect(), and error.
Here is the call graph for this function:
|
private |
Referenced by get_connect_url(), and get_upload_url().
Here is the caller graph for this function:
|
overridevirtual |
Implements Slic3r::PrintHost.
References connect(), disconnect(), dsf, error, Slic3r::PrintHost::format_error(), get_err_code_from_body(), get_upload_url(), L, Slic3r::Http::post(), Slic3r::PrintHostUpload::post_action, Slic3r::Http::put(), Slic3r::PrintHostUpload::source_path, start_print(), Slic3r::StartPrint, Slic3r::StartSimulation, and Slic3r::PrintHostUpload::upload_path.
Here is the call graph for this function:
|
private |
Referenced by get_base_url(), and get_host().
|
private |
Referenced by get_connect_url().