#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/NetworkAgent.hpp>
Classes | |
| struct | PrinterCallbacks |
Public Member Functions | |
| NetworkAgent (std::shared_ptr< ICloudServiceAgent > cloud_agent, std::shared_ptr< IPrinterAgent > printer_agent) | |
| ~NetworkAgent () | |
| std::shared_ptr< ICloudServiceAgent > | get_cloud_agent (const std::string &provider=ORCA_CLOUD_PROVIDER) const |
| std::shared_ptr< IPrinterAgent > | get_printer_agent () const |
| std::uint64_t | get_user_machine_list_generation () const |
| void | add_cloud_agent (const std::string &provider, std::shared_ptr< ICloudServiceAgent > agent) |
| void | set_printer_agent (std::shared_ptr< IPrinterAgent > printer_agent) |
| int | set_queue_on_main_fn (QueueOnMainFn fn, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| void * | get_network_agent () |
| int | init_log () |
| int | set_config_dir (std::string config_dir) |
| int | set_cert_file (std::string folder, std::string filename) |
| int | set_country_code (std::string country_code) |
| int | start () |
| int | set_on_server_connected_fn (AppOnServerConnectedFn fn) |
| int | set_on_http_error_fn (AppOnHttpErrorFn fn) |
| int | set_get_country_code_fn (GetCountryCodeFn fn) |
| int | connect_server () |
| int | refresh_connection (const std::string &provider="") |
| int | change_user (std::string user_info, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| bool | is_user_login (const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | user_logout (bool request=false, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| std::string | get_user_id (const std::string &provider=ORCA_CLOUD_PROVIDER) |
| std::string | get_user_name (const std::string &provider=ORCA_CLOUD_PROVIDER) |
| std::string | get_user_avatar (const std::string &provider=ORCA_CLOUD_PROVIDER) |
| std::string | get_user_nickname (const std::string &provider=ORCA_CLOUD_PROVIDER) |
| std::string | build_login_cmd (const std::string &provider=ORCA_CLOUD_PROVIDER) |
| std::string | build_logout_cmd (const std::string &provider=ORCA_CLOUD_PROVIDER) |
| std::string | build_login_info (const std::string &provider=ORCA_CLOUD_PROVIDER) |
| std::string | get_cloud_service_host (const std::string &provider=ORCA_CLOUD_PROVIDER) |
| std::string | get_cloud_login_url (const std::string &language="", const std::string &provider=ORCA_CLOUD_PROVIDER) |
| bool | is_server_connected (const std::string &provider=ORCA_CLOUD_PROVIDER) |
| void | enable_multi_machine (bool enable, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_user_presets (std::map< std::string, std::map< std::string, std::string > > *user_presets, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| std::string | request_setting_id (std::string name, std::map< std::string, std::string > *values_map, unsigned int *http_code, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | put_setting (std::string setting_id, std::string name, std::map< std::string, std::string > *values_map, unsigned int *http_code, const std::string &provider=ORCA_CLOUD_PROVIDER, bool force=false) |
| int | get_setting_list (std::string bundle_version, ProgressFn pro_fn=nullptr, WasCancelledFn cancel_fn=nullptr, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_setting_list2 (std::string bundle_version, CheckFn chk_fn, ProgressFn pro_fn=nullptr, WasCancelledFn cancel_fn=nullptr, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | delete_setting (std::string setting_id, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_my_message (int type, int after, int limit, unsigned int *http_code, std::string *http_body, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | check_user_task_report (int *task_id, bool *printable, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_user_print_info (unsigned int *http_code, std::string *http_body, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_user_tasks (TaskQueryParams params, std::string *http_body, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_printer_firmware (std::string dev_id, unsigned *http_code, std::string *http_body, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_task_plate_index (std::string task_id, int *plate_index, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_user_info (int *identifier, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_subtask_info (std::string subtask_id, std::string *task_json, unsigned int *http_code, std::string *http_body, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_slice_info (std::string project_id, std::string profile_id, int plate_index, std::string *slice_json, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | query_bind_status (std::vector< std::string > query_list, unsigned int *http_code, std::string *http_body, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | modify_printer_name (std::string dev_id, std::string dev_name, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_camera_url (std::string dev_id, std::function< void(std::string)> callback, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| std::unique_ptr< ICameraSignalingChannel > | create_camera_signaling_channel (const std::string &dev_id, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_design_staffpick (int offset, int limit, std::function< void(std::string)> callback, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | start_publish (PublishParams params, OnUpdateStatusFn update_fn, WasCancelledFn cancel_fn, std::string *out, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_model_publish_url (std::string *url, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_subtask (BBLModelTask *task, OnGetSubTaskFn getsub_fn, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_model_mall_home_url (std::string *url, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_model_mall_detail_url (std::string *url, std::string id, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_my_profile (std::string token, unsigned int *http_code, std::string *http_body, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_my_token (std::string ticket, unsigned int *http_code, std::string *http_body, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | track_enable (bool enable) |
| int | track_remove_files () |
| int | track_event (std::string evt_key, std::string content, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | track_header (std::string header, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | track_update_property (std::string name, std::string value, std::string type="string", const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | track_get_property (std::string name, std::string &value, std::string type="string", const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | put_model_mall_rating (int design_id, int score, std::string content, std::vector< std::string > images, unsigned int &http_code, std::string &http_error, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_oss_config (std::string &config, std::string country_code, unsigned int &http_code, std::string &http_error, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | put_rating_picture_oss (std::string &config, std::string &pic_oss_path, std::string model_id, int profile_id, unsigned int &http_code, std::string &http_error, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_model_mall_rating_result (int job_id, std::string &rating_result, unsigned int &http_code, std::string &http_error, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| bool | get_track_enable () |
| int | get_mw_user_preference (std::function< void(std::string)> callback, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | get_mw_user_4ulist (int seed, int limit, std::function< void(std::string)> callback, const std::string &provider=ORCA_CLOUD_PROVIDER) |
| int | set_on_ssdp_msg_fn (OnMsgArrivedFn fn) |
| int | set_on_printer_connected_fn (OnPrinterConnectedFn fn) |
| int | set_on_subscribe_failure_fn (GetSubscribeFailureFn fn) |
| int | set_on_message_fn (OnMessageFn fn) |
| int | set_on_user_message_fn (OnMessageFn fn) |
| int | set_on_local_connect_fn (OnLocalConnectedFn fn) |
| int | set_on_local_message_fn (OnMessageFn fn) |
| int | set_server_callback (OnServerErrFn fn) |
| int | send_message (std::string dev_id, std::string json_str, int qos, int flag) |
| int | command_ams_refresh_rfid (std::string dev_id, int ams_id, int slot_id, int sequence_id, bool lan_mode) |
| int | command_ams_calibrate (std::string dev_id, int ams_id, int sequence_id, bool lan_mode) |
| int | command_ams_select_tray (std::string dev_id, std::string tray_id, int sequence_id, bool lan_mode) |
| int | command_start_camera (std::string dev_id) |
| int | command_xyz_abs (std::string dev_id, int sequence_id, bool lan_mode) |
| int | command_auto_leveling (std::string dev_id, int sequence_id, bool lan_mode) |
| int | command_go_home (std::string dev_id, bool is_printing, bool supports_mqtt_homing, int sequence_id, bool lan_mode) |
| int | command_set_bed (std::string dev_id, int temp, bool supports_mqtt_bed_ctrl, int sequence_id, bool lan_mode) |
| int | command_set_nozzle (std::string dev_id, int temp, int sequence_id, bool lan_mode) |
| int | command_axis_control (std::string dev_id, std::string axis, double unit, double input_val, int speed, bool is_core_xy, bool supports_mqtt_axis_control, int sequence_id, bool lan_mode) |
| int | connect_printer (const PrinterConnectionParams ¶ms) |
| int | disconnect_printer () |
| int | send_message_to_printer (std::string dev_id, std::string json_str, int qos, int flag) |
| std::string | default_lan_username () const |
| int | check_cert () |
| void | install_device_cert (std::string dev_id, bool lan_only) |
| bool | start_discovery (bool start, bool sending) |
| int | ping_bind (std::string ping_code) |
| int | bind_detect (std::string dev_ip, std::string sec_link, detectResult &detect) |
| int | bind (std::string dev_ip, std::string dev_id, std::string dev_model, std::string sec_link, std::string timezone, bool improved, OnUpdateStatusFn update_fn) |
| int | unbind (std::string dev_id) |
| std::string | get_user_selected_machine () |
| int | set_user_selected_machine (std::string dev_id) |
| int | start_subscribe (std::string module) |
| int | stop_subscribe (std::string module) |
| int | add_subscribe (std::vector< std::string > dev_list) |
| int | del_subscribe (std::vector< std::string > dev_list) |
| int | start_print (PrintParams params, OnUpdateStatusFn update_fn, WasCancelledFn cancel_fn, OnWaitFn wait_fn) |
| int | start_local_print_with_record (PrintParams params, OnUpdateStatusFn update_fn, WasCancelledFn cancel_fn, OnWaitFn wait_fn) |
| int | start_send_gcode_to_sdcard (PrintParams params, OnUpdateStatusFn update_fn, WasCancelledFn cancel_fn, OnWaitFn wait_fn) |
| int | start_local_print (PrintParams params, OnUpdateStatusFn update_fn, WasCancelledFn cancel_fn) |
| int | start_sdcard_print (PrintParams params, OnUpdateStatusFn update_fn, WasCancelledFn cancel_fn) |
| FilamentSyncMode | get_filament_sync_mode () const |
| bool | fetch_filament_info (std::string dev_id, FilamentSyncMode sync_mode=FilamentSyncMode::pull) |
| CameraStreamMode | get_camera_stream_mode () const |
| std::string | get_local_camera_stream_url () const |
| std::string | to_orca_filament_id (const std::string &printer_filament_id) const |
| std::string | from_orca_filament_id (const std::string &orca_filament_id) const |
| int | request_bind_ticket (std::string *ticket) |
| int | get_hms_snapshot (std::string dev_id, std::string file_name, std::function< void(std::string, int)> callback) |
Static Public Member Functions | |
| static std::string | get_libpath_in_current_directory (std::string library_name) |
| static std::string | get_versioned_library_path (const std::string &version) |
| static bool | versioned_library_exists (const std::string &version) |
| static bool | legacy_library_exists () |
| static void | remove_legacy_library () |
| static std::vector< std::string > | scan_plugin_versions () |
| static int | initialize_network_module (bool using_backup=false, const std::string &version="") |
| static int | unload_network_module () |
| static bool | is_network_module_loaded () |
| static void * | get_bambu_source_entry () |
| static std::string | get_version () |
| static void * | get_network_function (const char *name) |
| static NetworkLibraryLoadError | get_load_error () |
| static void | clear_load_error () |
| static void | set_load_error (const std::string &message, const std::string &technical_details, const std::string &attempted_path) |
Private Member Functions | |
| void | apply_printer_callbacks (const std::shared_ptr< IPrinterAgent > &printer_agent, const PrinterCallbacks &callbacks) |
| int | apply_discovery_callback (const std::shared_ptr< IPrinterAgent > &printer_agent, const PrinterCallbacks &callbacks) |
Private Attributes | |
| std::shared_ptr< int > | m_discovery_session = std::make_shared<int>(0) |
| PrinterCallbacks | m_printer_callbacks |
| bool | enable_track = false |
| std::map< std::string, std::shared_ptr< ICloudServiceAgent > > | m_cloud_agents |
| std::shared_ptr< IPrinterAgent > | m_printer_agent |
| std::string | m_printer_agent_id |
| std::atomic< std::uint64_t > | m_user_machine_list_generation {0} |
| struct Slic3r::NetworkAgent::PrinterCallbacks |
| Class Members | ||
|---|---|---|
| OnLocalConnectedFn | on_local_connect_fn = nullptr | |
| OnMessageFn | on_local_message_fn = nullptr | |
| OnMessageFn | on_message_fn = nullptr | |
| OnPrinterConnectedFn | on_printer_connected_fn = nullptr | |
| OnServerErrFn | on_server_err_fn = nullptr | |
| OnMsgArrivedFn | on_ssdp_msg_fn = nullptr | |
| GetSubscribeFailureFn | on_subscribe_failure_fn = nullptr | |
| OnMessageFn | on_user_message_fn = nullptr | |
| QueueOnMainFn | queue_on_main_fn = nullptr | |
| Slic3r::NetworkAgent::NetworkAgent | ( | std::shared_ptr< ICloudServiceAgent > | cloud_agent, |
| std::shared_ptr< IPrinterAgent > | printer_agent ) |
References m_cloud_agents, and m_printer_agent.
| Slic3r::NetworkAgent::~NetworkAgent | ( | ) |
| void Slic3r::NetworkAgent::add_cloud_agent | ( | const std::string & | provider, |
| std::shared_ptr< ICloudServiceAgent > | agent ) |
References m_cloud_agents.
| int Slic3r::NetworkAgent::add_subscribe | ( | std::vector< std::string > | dev_list | ) |
References add_subscribe(), m_printer_agent, and Slic3r::trace().
Referenced by add_subscribe().
|
private |
References m_discovery_session, Slic3r::NetworkAgent::PrinterCallbacks::on_ssdp_msg_fn, and Slic3r::NetworkAgent::PrinterCallbacks::queue_on_main_fn.
Referenced by apply_printer_callbacks(), set_on_ssdp_msg_fn(), and set_queue_on_main_fn().
|
private |
References apply_discovery_callback(), Slic3r::NetworkAgent::PrinterCallbacks::on_local_connect_fn, Slic3r::NetworkAgent::PrinterCallbacks::on_local_message_fn, Slic3r::NetworkAgent::PrinterCallbacks::on_message_fn, Slic3r::NetworkAgent::PrinterCallbacks::on_printer_connected_fn, Slic3r::NetworkAgent::PrinterCallbacks::on_server_err_fn, Slic3r::NetworkAgent::PrinterCallbacks::on_subscribe_failure_fn, Slic3r::NetworkAgent::PrinterCallbacks::on_user_message_fn, and Slic3r::NetworkAgent::PrinterCallbacks::queue_on_main_fn.
Referenced by set_printer_agent().
| int Slic3r::NetworkAgent::bind | ( | std::string | dev_ip, |
| std::string | dev_id, | ||
| std::string | dev_model, | ||
| std::string | sec_link, | ||
| std::string | timezone, | ||
| bool | improved, | ||
| OnUpdateStatusFn | update_fn ) |
References bind(), and m_printer_agent.
Referenced by bind(), and Slic3r::GUI::BindJob::process().
| int Slic3r::NetworkAgent::bind_detect | ( | std::string | dev_ip, |
| std::string | sec_link, | ||
| detectResult & | detect ) |
References bind_detect(), and m_printer_agent.
Referenced by bind_detect().
| std::string Slic3r::NetworkAgent::build_login_cmd | ( | const std::string & | provider = ORCA_CLOUD_PROVIDER | ) |
References build_login_cmd(), and get_cloud_agent().
Referenced by build_login_cmd().
| std::string Slic3r::NetworkAgent::build_login_info | ( | const std::string & | provider = ORCA_CLOUD_PROVIDER | ) |
References build_login_info(), and get_cloud_agent().
Referenced by build_login_info().
| std::string Slic3r::NetworkAgent::build_logout_cmd | ( | const std::string & | provider = ORCA_CLOUD_PROVIDER | ) |
References build_logout_cmd(), and get_cloud_agent().
Referenced by build_logout_cmd().
| int Slic3r::NetworkAgent::change_user | ( | std::string | user_info, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References change_user(), and get_cloud_agent().
Referenced by Slic3r::GUI::HttpServer::auth_handle_request(), and change_user().
| int Slic3r::NetworkAgent::check_cert | ( | ) |
References check_cert(), and m_printer_agent.
Referenced by check_cert().
| int Slic3r::NetworkAgent::check_user_task_report | ( | int * | task_id, |
| bool * | printable, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References check_user_task_report(), and get_cloud_agent().
Referenced by check_user_task_report().
|
static |
References Slic3r::BBLNetworkPlugin::clear_load_error(), and Slic3r::BBLNetworkPlugin::instance().
| int Slic3r::NetworkAgent::command_ams_calibrate | ( | std::string | dev_id, |
| int | ams_id, | ||
| int | sequence_id, | ||
| bool | lan_mode ) |
References command_ams_calibrate(), and m_printer_agent.
Referenced by command_ams_calibrate().
| int Slic3r::NetworkAgent::command_ams_refresh_rfid | ( | std::string | dev_id, |
| int | ams_id, | ||
| int | slot_id, | ||
| int | sequence_id, | ||
| bool | lan_mode ) |
References command_ams_refresh_rfid(), and m_printer_agent.
Referenced by command_ams_refresh_rfid().
| int Slic3r::NetworkAgent::command_ams_select_tray | ( | std::string | dev_id, |
| std::string | tray_id, | ||
| int | sequence_id, | ||
| bool | lan_mode ) |
References command_ams_select_tray(), and m_printer_agent.
Referenced by command_ams_select_tray().
| int Slic3r::NetworkAgent::command_auto_leveling | ( | std::string | dev_id, |
| int | sequence_id, | ||
| bool | lan_mode ) |
References command_auto_leveling(), and m_printer_agent.
Referenced by command_auto_leveling().
| int Slic3r::NetworkAgent::command_axis_control | ( | std::string | dev_id, |
| std::string | axis, | ||
| double | unit, | ||
| double | input_val, | ||
| int | speed, | ||
| bool | is_core_xy, | ||
| bool | supports_mqtt_axis_control, | ||
| int | sequence_id, | ||
| bool | lan_mode ) |
References command_axis_control(), and m_printer_agent.
Referenced by command_axis_control().
| int Slic3r::NetworkAgent::command_go_home | ( | std::string | dev_id, |
| bool | is_printing, | ||
| bool | supports_mqtt_homing, | ||
| int | sequence_id, | ||
| bool | lan_mode ) |
References command_go_home(), and m_printer_agent.
Referenced by command_go_home().
| int Slic3r::NetworkAgent::command_set_bed | ( | std::string | dev_id, |
| int | temp, | ||
| bool | supports_mqtt_bed_ctrl, | ||
| int | sequence_id, | ||
| bool | lan_mode ) |
References command_set_bed(), and m_printer_agent.
Referenced by command_set_bed().
| int Slic3r::NetworkAgent::command_set_nozzle | ( | std::string | dev_id, |
| int | temp, | ||
| int | sequence_id, | ||
| bool | lan_mode ) |
References command_set_nozzle(), and m_printer_agent.
Referenced by command_set_nozzle().
| int Slic3r::NetworkAgent::command_start_camera | ( | std::string | dev_id | ) |
References command_start_camera(), and m_printer_agent.
Referenced by command_start_camera().
| int Slic3r::NetworkAgent::command_xyz_abs | ( | std::string | dev_id, |
| int | sequence_id, | ||
| bool | lan_mode ) |
References command_xyz_abs(), and m_printer_agent.
Referenced by command_xyz_abs().
| int Slic3r::NetworkAgent::connect_printer | ( | const PrinterConnectionParams & | params | ) |
References connect_printer(), and m_printer_agent.
Referenced by connect_printer().
| int Slic3r::NetworkAgent::connect_server | ( | ) |
References Slic3r::ICloudServiceAgent::connect_server(), connect_server(), and m_cloud_agents.
Referenced by connect_server().
| std::unique_ptr< ICameraSignalingChannel > Slic3r::NetworkAgent::create_camera_signaling_channel | ( | const std::string & | dev_id, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References create_camera_signaling_channel(), and get_cloud_agent().
Referenced by create_camera_signaling_channel().
| std::string Slic3r::NetworkAgent::default_lan_username | ( | ) | const |
References default_lan_username(), and m_printer_agent.
Referenced by default_lan_username(), Slic3r::GUI::PrintJob::process(), and Slic3r::GUI::SendJob::process().
| int Slic3r::NetworkAgent::del_subscribe | ( | std::vector< std::string > | dev_list | ) |
References del_subscribe(), m_printer_agent, and Slic3r::trace().
Referenced by del_subscribe().
| int Slic3r::NetworkAgent::delete_setting | ( | std::string | setting_id, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References delete_setting(), and get_cloud_agent().
Referenced by delete_setting().
| int Slic3r::NetworkAgent::disconnect_printer | ( | ) |
References disconnect_printer(), and m_printer_agent.
Referenced by disconnect_printer().
| void Slic3r::NetworkAgent::enable_multi_machine | ( | bool | enable, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References enable_multi_machine(), and get_cloud_agent().
Referenced by enable_multi_machine().
| bool Slic3r::NetworkAgent::fetch_filament_info | ( | std::string | dev_id, |
| FilamentSyncMode | sync_mode = FilamentSyncMode::pull ) |
References fetch_filament_info(), and m_printer_agent.
Referenced by fetch_filament_info().
| std::string Slic3r::NetworkAgent::from_orca_filament_id | ( | const std::string & | orca_filament_id | ) | const |
References from_orca_filament_id(), and m_printer_agent.
Referenced by from_orca_filament_id(), and Slic3r::GUI::SelectMachineDialog::update_show_status().
|
static |
References Slic3r::BBLNetworkPlugin::get_bambu_source_entry(), and Slic3r::BBLNetworkPlugin::instance().
Referenced by Slic3r::GUI::GUI_App::on_init_network().
| CameraStreamMode Slic3r::NetworkAgent::get_camera_stream_mode | ( | ) | const |
References get_camera_stream_mode(), m_printer_agent, and Slic3r::none.
Referenced by get_camera_stream_mode().
| int Slic3r::NetworkAgent::get_camera_url | ( | std::string | dev_id, |
| std::function< void(std::string)> | callback, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_camera_url(), and get_cloud_agent().
Referenced by Slic3r::GUI::MediaFilePanel::fetchUrl(), Slic3r::GUI::PartSkipDialog::fetchUrl(), get_camera_url(), Slic3r::GUI::SendToPrinterDialog::GetConnection(), and Slic3r::GUI::MediaPlayCtrl::ToggleStream().
| std::shared_ptr< ICloudServiceAgent > Slic3r::NetworkAgent::get_cloud_agent | ( | const std::string & | provider = ORCA_CLOUD_PROVIDER | ) | const |
References get_cloud_agent(), m_cloud_agents, and Slic3r::ORCA_CLOUD_PROVIDER().
Referenced by build_login_cmd(), build_login_info(), build_logout_cmd(), change_user(), check_user_task_report(), create_camera_signaling_channel(), delete_setting(), enable_multi_machine(), get_camera_url(), get_cloud_agent(), get_cloud_login_url(), get_cloud_service_host(), get_design_staffpick(), get_model_mall_detail_url(), get_model_mall_home_url(), get_model_mall_rating_result(), get_model_publish_url(), get_mw_user_4ulist(), get_mw_user_preference(), get_my_message(), get_my_profile(), get_my_token(), Slic3r::GUI::get_orca_cloud_agent(), get_oss_config(), get_printer_firmware(), get_setting_list(), get_setting_list2(), get_slice_info(), get_subtask(), get_subtask_info(), get_task_plate_index(), get_user_avatar(), get_user_id(), get_user_info(), get_user_name(), get_user_nickname(), get_user_presets(), get_user_print_info(), get_user_tasks(), is_server_connected(), is_user_login(), modify_printer_name(), put_model_mall_rating(), put_rating_picture_oss(), put_setting(), query_bind_status(), refresh_connection(), request_setting_id(), set_queue_on_main_fn(), start_publish(), Slic3r::GUI::anonymous_namespace{GUI_App.cpp}::stop_orca_health_check(), track_enable(), track_event(), track_get_property(), track_header(), track_remove_files(), track_update_property(), and user_logout().
| std::string Slic3r::NetworkAgent::get_cloud_login_url | ( | const std::string & | language = "", |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_cloud_login_url().
Referenced by get_cloud_login_url().
| std::string Slic3r::NetworkAgent::get_cloud_service_host | ( | const std::string & | provider = ORCA_CLOUD_PROVIDER | ) |
References get_cloud_agent(), and get_cloud_service_host().
Referenced by get_cloud_service_host().
| int Slic3r::NetworkAgent::get_design_staffpick | ( | int | offset, |
| int | limit, | ||
| std::function< void(std::string)> | callback, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), get_design_staffpick(), and Slic3r::offset().
Referenced by get_design_staffpick().
| FilamentSyncMode Slic3r::NetworkAgent::get_filament_sync_mode | ( | ) | const |
References get_filament_sync_mode(), m_printer_agent, and Slic3r::none.
Referenced by get_filament_sync_mode().
| int Slic3r::NetworkAgent::get_hms_snapshot | ( | std::string | dev_id, |
| std::string | file_name, | ||
| std::function< void(std::string, int)> | callback ) |
References get_hms_snapshot(), and m_printer_agent.
Referenced by Slic3r::GUI::DeviceErrorDialog::get_fail_snapshot_from_cloud(), and get_hms_snapshot().
|
static |
References Slic3r::BBLNetworkPlugin::get_libpath_in_current_directory().
|
static |
References Slic3r::BBLNetworkPlugin::get_load_error(), and Slic3r::BBLNetworkPlugin::instance().
Referenced by Slic3r::anonymous_namespace{PluginHostApp.cpp}::app_info(), and Slic3r::GUI::GUI_App::show_network_plugin_download_dialog().
| std::string Slic3r::NetworkAgent::get_local_camera_stream_url | ( | ) | const |
References get_local_camera_stream_url(), and m_printer_agent.
Referenced by get_local_camera_stream_url().
| int Slic3r::NetworkAgent::get_model_mall_detail_url | ( | std::string * | url, |
| std::string | id, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_model_mall_detail_url().
Referenced by get_model_mall_detail_url(), and Slic3r::GUI::WebViewPanel::OpenModelDetail().
| int Slic3r::NetworkAgent::get_model_mall_home_url | ( | std::string * | url, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_model_mall_home_url().
Referenced by get_model_mall_home_url().
| int Slic3r::NetworkAgent::get_model_mall_rating_result | ( | int | job_id, |
| std::string & | rating_result, | ||
| unsigned int & | http_code, | ||
| std::string & | http_error, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_model_mall_rating_result().
Referenced by get_model_mall_rating_result().
| int Slic3r::NetworkAgent::get_model_publish_url | ( | std::string * | url, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_model_publish_url().
Referenced by get_model_publish_url().
| int Slic3r::NetworkAgent::get_mw_user_4ulist | ( | int | seed, |
| int | limit, | ||
| std::function< void(std::string)> | callback, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_mw_user_4ulist().
Referenced by get_mw_user_4ulist().
| int Slic3r::NetworkAgent::get_mw_user_preference | ( | std::function< void(std::string)> | callback, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_mw_user_preference().
Referenced by get_mw_user_preference().
| int Slic3r::NetworkAgent::get_my_message | ( | int | type, |
| int | after, | ||
| int | limit, | ||
| unsigned int * | http_code, | ||
| std::string * | http_body, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_my_message().
Referenced by get_my_message().
| int Slic3r::NetworkAgent::get_my_profile | ( | std::string | token, |
| unsigned int * | http_code, | ||
| std::string * | http_body, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_my_profile().
Referenced by Slic3r::GUI::HttpServer::auth_handle_request(), and get_my_profile().
| int Slic3r::NetworkAgent::get_my_token | ( | std::string | ticket, |
| unsigned int * | http_code, | ||
| std::string * | http_body, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_my_token().
Referenced by Slic3r::GUI::HttpServer::auth_handle_request(), and get_my_token().
| void * Slic3r::NetworkAgent::get_network_agent | ( | ) |
References Slic3r::BBLNetworkPlugin::get_agent(), and Slic3r::BBLNetworkPlugin::instance().
|
static |
References Slic3r::BBLNetworkPlugin::get_network_function(), and Slic3r::BBLNetworkPlugin::instance().
| int Slic3r::NetworkAgent::get_oss_config | ( | std::string & | config, |
| std::string | country_code, | ||
| unsigned int & | http_code, | ||
| std::string & | http_error, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_oss_config().
Referenced by get_oss_config().
|
inline |
References m_printer_agent.
Referenced by Slic3r::NetworkAgentFactory::deregister_python_printer_agent().
| int Slic3r::NetworkAgent::get_printer_firmware | ( | std::string | dev_id, |
| unsigned * | http_code, | ||
| std::string * | http_body, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_printer_firmware().
Referenced by get_printer_firmware().
| int Slic3r::NetworkAgent::get_setting_list | ( | std::string | bundle_version, |
| ProgressFn | pro_fn = nullptr, | ||
| WasCancelledFn | cancel_fn = nullptr, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_setting_list().
Referenced by get_setting_list().
| int Slic3r::NetworkAgent::get_setting_list2 | ( | std::string | bundle_version, |
| CheckFn | chk_fn, | ||
| ProgressFn | pro_fn = nullptr, | ||
| WasCancelledFn | cancel_fn = nullptr, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_setting_list2().
Referenced by get_setting_list2().
| int Slic3r::NetworkAgent::get_slice_info | ( | std::string | project_id, |
| std::string | profile_id, | ||
| int | plate_index, | ||
| std::string * | slice_json, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_slice_info().
Referenced by get_slice_info().
| int Slic3r::NetworkAgent::get_subtask | ( | BBLModelTask * | task, |
| OnGetSubTaskFn | getsub_fn, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_subtask().
Referenced by get_subtask().
| int Slic3r::NetworkAgent::get_subtask_info | ( | std::string | subtask_id, |
| std::string * | task_json, | ||
| unsigned int * | http_code, | ||
| std::string * | http_body, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_subtask_info().
Referenced by get_subtask_info().
| int Slic3r::NetworkAgent::get_task_plate_index | ( | std::string | task_id, |
| int * | plate_index, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_task_plate_index().
Referenced by get_task_plate_index().
|
inline |
References enable_track.
| std::string Slic3r::NetworkAgent::get_user_avatar | ( | const std::string & | provider = ORCA_CLOUD_PROVIDER | ) |
References get_cloud_agent(), and get_user_avatar().
Referenced by get_user_avatar().
| std::string Slic3r::NetworkAgent::get_user_id | ( | const std::string & | provider = ORCA_CLOUD_PROVIDER | ) |
References get_cloud_agent(), and get_user_id().
Referenced by Slic3r::GUI::ExportConfigsDialog::archive_filament_bundle_to_file(), Slic3r::GUI::ExportConfigsDialog::archive_preset_bundle_to_file(), get_user_id(), Slic3r::GUI::MainFrame::load_config_file(), and Slic3r::GUI::ExportPresetBundleDialog::OnExportData().
| int Slic3r::NetworkAgent::get_user_info | ( | int * | identifier, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_user_info().
Referenced by get_user_info().
|
inline |
References m_user_machine_list_generation.
| std::string Slic3r::NetworkAgent::get_user_name | ( | const std::string & | provider = ORCA_CLOUD_PROVIDER | ) |
References get_cloud_agent(), and get_user_name().
Referenced by get_user_name().
| std::string Slic3r::NetworkAgent::get_user_nickname | ( | const std::string & | provider = ORCA_CLOUD_PROVIDER | ) |
References get_cloud_agent(), and get_user_nickname().
Referenced by get_user_nickname().
| int Slic3r::NetworkAgent::get_user_presets | ( | std::map< std::string, std::map< std::string, std::string > > * | user_presets, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_user_presets().
Referenced by get_user_presets().
| int Slic3r::NetworkAgent::get_user_print_info | ( | unsigned int * | http_code, |
| std::string * | http_body, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), get_user_print_info(), m_printer_agent_id, and m_user_machine_list_generation.
Referenced by get_user_print_info(), Slic3r::GUI::SelectMachinePopup::Popup(), Slic3r::GUI::SelectMObjectPopup::Popup(), Slic3r::GUI::SelectMachineDialog::update_user_machine_list(), Slic3r::GUI::SendToPrinterDialog::update_user_machine_list(), and Slic3r::GUI::SyncAmsInfoDialog::update_user_machine_list().
| std::string Slic3r::NetworkAgent::get_user_selected_machine | ( | ) |
References get_user_selected_machine(), and m_printer_agent.
Referenced by get_user_selected_machine().
| int Slic3r::NetworkAgent::get_user_tasks | ( | TaskQueryParams | params, |
| std::string * | http_body, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and get_user_tasks().
Referenced by Slic3r::TaskManager::get_task_list(), and get_user_tasks().
|
static |
References Slic3r::BBLNetworkPlugin::get_version(), and Slic3r::BBLNetworkPlugin::instance().
Referenced by Slic3r::anonymous_namespace{PluginHostApp.cpp}::app_info(), Slic3r::GUI::ExportConfigsDialog::archive_filament_bundle_to_file(), Slic3r::GUI::ExportConfigsDialog::archive_preset_bundle_to_file(), Slic3r::GUI::GUI_App::check_networking_version(), Slic3r::GUI::PreferencesDialog::create_item_network_plugin_version(), Slic3r::GUI::MediaFilePanel::fetchUrl(), Slic3r::GUI::PartSkipDialog::fetchUrl(), Slic3r::GUI::SendToPrinterDialog::GetConnection(), Slic3r::GUI::GUI_App::has_network_update_available(), Slic3r::GUI::GUI_App::hot_reload_network_plugin(), Slic3r::GUI::MonitorPanel::init_tabpanel(), Slic3r::GUI::GUI_App::on_init_network(), Slic3r::GUI::ExportPresetBundleDialog::OnExportData(), Slic3r::GUI::GUI_App::post_init(), Slic3r::GUI::GUI_App::show_network_plugin_download_dialog(), Slic3r::GUI::MediaPlayCtrl::ToggleStream(), and Slic3r::GUI::MonitorPanel::update_network_version_footer().
|
static |
References Slic3r::BBLNetworkPlugin::get_versioned_library_path().
| int Slic3r::NetworkAgent::init_log | ( | ) |
References Slic3r::ICloudServiceAgent::init_log(), init_log(), and m_cloud_agents.
Referenced by init_log().
|
static |
References Slic3r::BBLNetworkPlugin::initialize(), and Slic3r::BBLNetworkPlugin::instance().
Referenced by Slic3r::GUI::GUI_App::on_init_network().
| void Slic3r::NetworkAgent::install_device_cert | ( | std::string | dev_id, |
| bool | lan_only ) |
References install_device_cert(), and m_printer_agent.
Referenced by install_device_cert(), and Slic3r::DeviceManagerRefresher::on_timer().
|
static |
References Slic3r::BBLNetworkPlugin::instance(), and Slic3r::BBLNetworkPlugin::is_loaded().
Referenced by Slic3r::anonymous_namespace{PluginHostApp.cpp}::app_info(), Slic3r::GUI::GUI_App::hot_reload_network_plugin(), and Slic3r::GUI::Plater::priv::on_tab_selection_changing().
| bool Slic3r::NetworkAgent::is_server_connected | ( | const std::string & | provider = ORCA_CLOUD_PROVIDER | ) |
References get_cloud_agent(), and is_server_connected().
Referenced by is_server_connected(), Slic3r::GUI::CalibrationPanel::update_all(), Slic3r::GUI::MonitorPanel::update_all(), Slic3r::GUI::CalibrationPresetPage::update_show_status(), Slic3r::GUI::SelectMachineDialog::update_show_status(), Slic3r::GUI::SendToPrinterDialog::update_show_status(), and Slic3r::GUI::SyncAmsInfoDialog::update_show_status().
| bool Slic3r::NetworkAgent::is_user_login | ( | const std::string & | provider = ORCA_CLOUD_PROVIDER | ) |
References get_cloud_agent(), and is_user_login().
Referenced by Slic3r::GUI::HttpServer::auth_handle_request(), is_user_login(), Slic3r::GUI::PingCodeBindDialog::on_bind_printer(), Slic3r::GUI::SelectMachineDialog::set_default(), Slic3r::GUI::SendToPrinterDialog::set_default(), Slic3r::GUI::SyncAmsInfoDialog::set_default(), Slic3r::GUI::CalibrationPresetPage::update_show_status(), Slic3r::GUI::SendToPrinterDialog::update_show_status(), Slic3r::GUI::SyncAmsInfoDialog::update_show_status(), Slic3r::GUI::SelectMachineDialog::update_user_machine_list(), Slic3r::GUI::SendToPrinterDialog::update_user_machine_list(), and Slic3r::GUI::SyncAmsInfoDialog::update_user_machine_list().
|
static |
References Slic3r::BBLNetworkPlugin::legacy_library_exists().
| int Slic3r::NetworkAgent::modify_printer_name | ( | std::string | dev_id, |
| std::string | dev_name, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and modify_printer_name().
Referenced by modify_printer_name().
| int Slic3r::NetworkAgent::ping_bind | ( | std::string | ping_code | ) |
References m_printer_agent, and ping_bind().
Referenced by Slic3r::GUI::PingCodeBindDialog::on_bind_printer(), and ping_bind().
| int Slic3r::NetworkAgent::put_model_mall_rating | ( | int | design_id, |
| int | score, | ||
| std::string | content, | ||
| std::vector< std::string > | images, | ||
| unsigned int & | http_code, | ||
| std::string & | http_error, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and put_model_mall_rating().
Referenced by put_model_mall_rating().
| int Slic3r::NetworkAgent::put_rating_picture_oss | ( | std::string & | config, |
| std::string & | pic_oss_path, | ||
| std::string | model_id, | ||
| int | profile_id, | ||
| unsigned int & | http_code, | ||
| std::string & | http_error, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and put_rating_picture_oss().
Referenced by put_rating_picture_oss().
| int Slic3r::NetworkAgent::put_setting | ( | std::string | setting_id, |
| std::string | name, | ||
| std::map< std::string, std::string > * | values_map, | ||
| unsigned int * | http_code, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER, | ||
| bool | force = false ) |
References get_cloud_agent(), and put_setting().
Referenced by put_setting().
| int Slic3r::NetworkAgent::query_bind_status | ( | std::vector< std::string > | query_list, |
| unsigned int * | http_code, | ||
| std::string * | http_body, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and query_bind_status().
Referenced by query_bind_status().
| int Slic3r::NetworkAgent::refresh_connection | ( | const std::string & | provider = "" | ) |
References get_cloud_agent(), m_cloud_agents, Slic3r::ICloudServiceAgent::refresh_connection(), and refresh_connection().
Referenced by Slic3r::DeviceManagerRefresher::on_timer(), and refresh_connection().
|
static |
References Slic3r::BBLNetworkPlugin::remove_legacy_library().
| int Slic3r::NetworkAgent::request_bind_ticket | ( | std::string * | ticket | ) |
References m_printer_agent, and request_bind_ticket().
Referenced by request_bind_ticket().
| std::string Slic3r::NetworkAgent::request_setting_id | ( | std::string | name, |
| std::map< std::string, std::string > * | values_map, | ||
| unsigned int * | http_code, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and request_setting_id().
Referenced by request_setting_id().
|
static |
References Slic3r::BBLNetworkPlugin::scan_plugin_versions().
| int Slic3r::NetworkAgent::send_message | ( | std::string | dev_id, |
| std::string | json_str, | ||
| int | qos, | ||
| int | flag ) |
References m_printer_agent, and send_message().
Referenced by send_message().
| int Slic3r::NetworkAgent::send_message_to_printer | ( | std::string | dev_id, |
| std::string | json_str, | ||
| int | qos, | ||
| int | flag ) |
References m_printer_agent, and send_message_to_printer().
Referenced by send_message_to_printer().
| int Slic3r::NetworkAgent::set_cert_file | ( | std::string | folder, |
| std::string | filename ) |
References m_cloud_agents, Slic3r::ICloudServiceAgent::set_cert_file(), and set_cert_file().
Referenced by set_cert_file().
| int Slic3r::NetworkAgent::set_config_dir | ( | std::string | config_dir | ) |
References m_cloud_agents, Slic3r::ICloudServiceAgent::set_config_dir(), and set_config_dir().
Referenced by set_config_dir().
| int Slic3r::NetworkAgent::set_country_code | ( | std::string | country_code | ) |
References m_cloud_agents, Slic3r::ICloudServiceAgent::set_country_code(), and set_country_code().
Referenced by Slic3r::GUI::PreferencesDialog::create_debug_page(), Slic3r::GUI::PreferencesDialog::create_item_region_combobox(), Slic3r::GUI::GuideFrame::OnScriptMessage(), and set_country_code().
| int Slic3r::NetworkAgent::set_get_country_code_fn | ( | GetCountryCodeFn | fn | ) |
References m_cloud_agents, Slic3r::ICloudServiceAgent::set_get_country_code_fn(), and set_get_country_code_fn().
Referenced by set_get_country_code_fn().
|
static |
References Slic3r::BBLNetworkPlugin::instance(), and Slic3r::BBLNetworkPlugin::set_load_error().
| int Slic3r::NetworkAgent::set_on_http_error_fn | ( | AppOnHttpErrorFn | fn | ) |
References m_cloud_agents, Slic3r::ICloudServiceAgent::set_on_http_error_fn(), and set_on_http_error_fn().
Referenced by set_on_http_error_fn().
| int Slic3r::NetworkAgent::set_on_local_connect_fn | ( | OnLocalConnectedFn | fn | ) |
References m_printer_agent, m_printer_callbacks, and set_on_local_connect_fn().
Referenced by set_on_local_connect_fn().
| int Slic3r::NetworkAgent::set_on_local_message_fn | ( | OnMessageFn | fn | ) |
References m_printer_agent, m_printer_callbacks, and set_on_local_message_fn().
Referenced by set_on_local_message_fn().
| int Slic3r::NetworkAgent::set_on_message_fn | ( | OnMessageFn | fn | ) |
References m_printer_agent, m_printer_callbacks, and set_on_message_fn().
Referenced by set_on_message_fn().
| int Slic3r::NetworkAgent::set_on_printer_connected_fn | ( | OnPrinterConnectedFn | fn | ) |
References m_printer_agent, m_printer_callbacks, and set_on_printer_connected_fn().
Referenced by set_on_printer_connected_fn().
| int Slic3r::NetworkAgent::set_on_server_connected_fn | ( | AppOnServerConnectedFn | fn | ) |
References m_cloud_agents, Slic3r::ICloudServiceAgent::set_on_server_connected_fn(), and set_on_server_connected_fn().
Referenced by set_on_server_connected_fn().
| int Slic3r::NetworkAgent::set_on_ssdp_msg_fn | ( | OnMsgArrivedFn | fn | ) |
References apply_discovery_callback(), m_discovery_session, m_printer_agent, m_printer_callbacks, and set_on_ssdp_msg_fn().
Referenced by set_on_ssdp_msg_fn().
| int Slic3r::NetworkAgent::set_on_subscribe_failure_fn | ( | GetSubscribeFailureFn | fn | ) |
References m_printer_agent, m_printer_callbacks, and set_on_subscribe_failure_fn().
Referenced by set_on_subscribe_failure_fn().
| int Slic3r::NetworkAgent::set_on_user_message_fn | ( | OnMessageFn | fn | ) |
References m_printer_agent, m_printer_callbacks, and set_on_user_message_fn().
Referenced by set_on_user_message_fn().
| void Slic3r::NetworkAgent::set_printer_agent | ( | std::shared_ptr< IPrinterAgent > | printer_agent | ) |
References apply_printer_callbacks(), m_discovery_session, m_printer_agent, m_printer_agent_id, m_printer_callbacks, and m_user_machine_list_generation.
Referenced by Slic3r::NetworkAgentFactory::deregister_python_printer_agent().
| int Slic3r::NetworkAgent::set_queue_on_main_fn | ( | QueueOnMainFn | fn, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References apply_discovery_callback(), get_cloud_agent(), m_printer_agent, m_printer_callbacks, and set_queue_on_main_fn().
Referenced by set_queue_on_main_fn().
| int Slic3r::NetworkAgent::set_server_callback | ( | OnServerErrFn | fn | ) |
References m_printer_agent, m_printer_callbacks, and set_server_callback().
Referenced by set_server_callback().
| int Slic3r::NetworkAgent::set_user_selected_machine | ( | std::string | dev_id | ) |
References m_printer_agent, set_user_selected_machine(), and Slic3r::trace().
Referenced by Slic3r::DeviceManagerRefresher::on_timer(), set_user_selected_machine(), and Slic3r::GUI::CalibrationPanel::update_all().
| int Slic3r::NetworkAgent::start | ( | ) |
References m_cloud_agents, Slic3r::ICloudServiceAgent::start(), and start().
Referenced by start(), and start_discovery().
| bool Slic3r::NetworkAgent::start_discovery | ( | bool | start, |
| bool | sending ) |
References m_printer_agent, start(), and start_discovery().
Referenced by start_discovery().
| int Slic3r::NetworkAgent::start_local_print | ( | PrintParams | params, |
| OnUpdateStatusFn | update_fn, | ||
| WasCancelledFn | cancel_fn ) |
References m_printer_agent, and start_local_print().
Referenced by Slic3r::GUI::PrintJob::process(), and start_local_print().
| int Slic3r::NetworkAgent::start_local_print_with_record | ( | PrintParams | params, |
| OnUpdateStatusFn | update_fn, | ||
| WasCancelledFn | cancel_fn, | ||
| OnWaitFn | wait_fn ) |
References m_printer_agent, and start_local_print_with_record().
Referenced by Slic3r::GUI::PrintJob::process(), and start_local_print_with_record().
| int Slic3r::NetworkAgent::start_print | ( | PrintParams | params, |
| OnUpdateStatusFn | update_fn, | ||
| WasCancelledFn | cancel_fn, | ||
| OnWaitFn | wait_fn ) |
References m_printer_agent, and start_print().
Referenced by Slic3r::GUI::PrintJob::process(), Slic3r::TaskManager::schedule(), and start_print().
| int Slic3r::NetworkAgent::start_publish | ( | PublishParams | params, |
| OnUpdateStatusFn | update_fn, | ||
| WasCancelledFn | cancel_fn, | ||
| std::string * | out, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and start_publish().
Referenced by start_publish().
| int Slic3r::NetworkAgent::start_sdcard_print | ( | PrintParams | params, |
| OnUpdateStatusFn | update_fn, | ||
| WasCancelledFn | cancel_fn ) |
References m_printer_agent, and start_sdcard_print().
Referenced by Slic3r::GUI::PrintJob::process(), and start_sdcard_print().
| int Slic3r::NetworkAgent::start_send_gcode_to_sdcard | ( | PrintParams | params, |
| OnUpdateStatusFn | update_fn, | ||
| WasCancelledFn | cancel_fn, | ||
| OnWaitFn | wait_fn ) |
References m_printer_agent, and start_send_gcode_to_sdcard().
Referenced by Slic3r::GUI::PrintJob::process(), Slic3r::GUI::SendJob::process(), and start_send_gcode_to_sdcard().
| int Slic3r::NetworkAgent::start_subscribe | ( | std::string | module | ) |
References m_printer_agent, Slic3r::module(), and start_subscribe().
Referenced by start_subscribe().
| int Slic3r::NetworkAgent::stop_subscribe | ( | std::string | module | ) |
References m_printer_agent, Slic3r::module(), and stop_subscribe().
Referenced by stop_subscribe().
| std::string Slic3r::NetworkAgent::to_orca_filament_id | ( | const std::string & | printer_filament_id | ) | const |
References m_printer_agent, and to_orca_filament_id().
Referenced by to_orca_filament_id().
| int Slic3r::NetworkAgent::track_enable | ( | bool | enable | ) |
References Slic3r::BBL_CLOUD_PROVIDER(), enable_track, get_cloud_agent(), and track_enable().
Referenced by Slic3r::GUI::MainFrame::shutdown(), and track_enable().
| int Slic3r::NetworkAgent::track_event | ( | std::string | evt_key, |
| std::string | content, | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and track_event().
Referenced by Slic3r::GUI::CalibUtils::calib_generic_auto_pa_cali(), and track_event().
| int Slic3r::NetworkAgent::track_get_property | ( | std::string | name, |
| std::string & | value, | ||
| std::string | type = "string", | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and track_get_property().
Referenced by track_get_property().
| int Slic3r::NetworkAgent::track_header | ( | std::string | header, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and track_header().
Referenced by track_header().
| int Slic3r::NetworkAgent::track_remove_files | ( | ) |
References Slic3r::BBL_CLOUD_PROVIDER(), get_cloud_agent(), and track_remove_files().
Referenced by track_remove_files().
| int Slic3r::NetworkAgent::track_update_property | ( | std::string | name, |
| std::string | value, | ||
| std::string | type = "string", | ||
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and track_update_property().
Referenced by Slic3r::GUI::GLCanvas3D::_init_main_toolbar(), Slic3r::GUI::BindMachineDialog::on_bind_printer(), Slic3r::GUI::SelectMachineDialog::on_send_print(), Slic3r::MachineObject::parse_json(), Slic3r::GUI::BindJob::process(), and track_update_property().
| int Slic3r::NetworkAgent::unbind | ( | std::string | dev_id | ) |
References m_printer_agent, and unbind().
Referenced by unbind().
|
static |
References Slic3r::BBLNetworkPlugin::instance(), and Slic3r::BBLNetworkPlugin::unload().
Referenced by Slic3r::GUI::GUI_App::hot_reload_network_plugin(), Slic3r::GUI::GUI_App::on_init_inner(), and Slic3r::GUI::GUI_App::on_init_network().
| int Slic3r::NetworkAgent::user_logout | ( | bool | request = false, |
| const std::string & | provider = ORCA_CLOUD_PROVIDER ) |
References get_cloud_agent(), and user_logout().
Referenced by user_logout().
|
static |
References Slic3r::BBLNetworkPlugin::versioned_library_exists().
Referenced by Slic3r::GUI::PreferencesDialog::create_item_network_plugin_version().
|
private |
Referenced by get_track_enable(), and track_enable().
|
private |
|
private |
Referenced by apply_discovery_callback(), set_on_ssdp_msg_fn(), and set_printer_agent().
|
private |
Referenced by NetworkAgent(), add_subscribe(), bind(), bind_detect(), check_cert(), command_ams_calibrate(), command_ams_refresh_rfid(), command_ams_select_tray(), command_auto_leveling(), command_axis_control(), command_go_home(), command_set_bed(), command_set_nozzle(), command_start_camera(), command_xyz_abs(), connect_printer(), default_lan_username(), del_subscribe(), disconnect_printer(), fetch_filament_info(), from_orca_filament_id(), get_camera_stream_mode(), get_filament_sync_mode(), get_hms_snapshot(), get_local_camera_stream_url(), get_printer_agent(), get_user_selected_machine(), install_device_cert(), ping_bind(), request_bind_ticket(), send_message(), send_message_to_printer(), set_on_local_connect_fn(), set_on_local_message_fn(), set_on_message_fn(), set_on_printer_connected_fn(), set_on_ssdp_msg_fn(), set_on_subscribe_failure_fn(), set_on_user_message_fn(), set_printer_agent(), set_queue_on_main_fn(), set_server_callback(), set_user_selected_machine(), start_discovery(), start_local_print(), start_local_print_with_record(), start_print(), start_sdcard_print(), start_send_gcode_to_sdcard(), start_subscribe(), stop_subscribe(), to_orca_filament_id(), and unbind().
|
private |
Referenced by get_user_print_info(), and set_printer_agent().
|
private |
|
private |
Referenced by get_user_machine_list_generation(), get_user_print_info(), and set_printer_agent().