2018-07-08 12:32:48 +00:00
|
|
|
#ifndef slic3r_PrintHost_hpp_
|
|
|
|
#define slic3r_PrintHost_hpp_
|
|
|
|
|
2018-08-21 09:10:32 +00:00
|
|
|
#include <memory>
|
2018-07-08 12:32:48 +00:00
|
|
|
#include <string>
|
|
|
|
#include <wx/string.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
|
|
|
|
class DynamicPrintConfig;
|
|
|
|
|
|
|
|
class PrintHost
|
|
|
|
{
|
|
|
|
public:
|
2018-08-21 09:10:32 +00:00
|
|
|
virtual ~PrintHost();
|
2018-07-08 12:32:48 +00:00
|
|
|
|
|
|
|
virtual bool test(wxString &curl_msg) const = 0;
|
|
|
|
virtual wxString get_test_ok_msg () const = 0;
|
|
|
|
virtual wxString get_test_failed_msg (wxString &msg) const = 0;
|
|
|
|
// Send gcode file to print host, filename is expected to be in UTF-8
|
|
|
|
virtual bool send_gcode(const std::string &filename) const = 0;
|
2018-08-21 09:10:32 +00:00
|
|
|
virtual bool has_auto_discovery() const = 0;
|
2018-07-08 12:32:48 +00:00
|
|
|
virtual bool can_test() const = 0;
|
2018-08-21 09:10:32 +00:00
|
|
|
|
|
|
|
static PrintHost* get_print_host(DynamicPrintConfig *config);
|
2018-07-08 12:32:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|