mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-28 03:11:47 +00:00
fix: printer agent switching on preset change
This commit is contained in:
@@ -12,6 +12,41 @@
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#if 1
|
||||
|
||||
struct OrcaProtocol
|
||||
{
|
||||
enum CameraStreamMode { http, http_snapshot, rtsp, webrtc };
|
||||
struct Capabilities {
|
||||
bool has_ams;
|
||||
struct CameraInfo {
|
||||
CameraStreamMode available_modes;
|
||||
std::string url;
|
||||
};
|
||||
|
||||
std::vector<CameraInfo> cameras;
|
||||
|
||||
bool toolchanger;
|
||||
int nozzle_count;
|
||||
};
|
||||
|
||||
struct AMSInfo {
|
||||
int slot_count;
|
||||
std::vector<std::string> color_info;
|
||||
std::vector<std::string> filament_id;
|
||||
};
|
||||
|
||||
AMSInfo ams_info;
|
||||
|
||||
struct Status {
|
||||
std::vector<int> nozzle_temps;
|
||||
int bed_temp;
|
||||
int chamber_temp;
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
class ICloudServiceAgent;
|
||||
|
||||
Reference in New Issue
Block a user