Fix compiler error with VS2019 (hopefully)

This commit is contained in:
Manuel Coenen 2020-06-29 12:14:53 +02:00
parent 06e329655d
commit 1da6a2c20f
2 changed files with 17 additions and 17 deletions

View file

@ -29,17 +29,17 @@ public:
std::string get_host() const override { return host; }
private:
enum ConnectionType { RRF, DSF, ERROR };
enum class ConnectionType { rrf, dsf, error };
std::string host;
std::string password;
std::string get_upload_url(const std::string &filename, Duet::ConnectionType connectionType) 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;
Duet::ConnectionType connect(wxString &msg) const;
void disconnect(Duet::ConnectionType connectionType) const;
bool start_print(wxString &msg, const std::string &filename, Duet::ConnectionType connectionType) 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;
};