#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/ICloudServiceAgent.hpp>
Public Member Functions | |
| virtual | ~ICloudServiceAgent ()=default |
| virtual int | init_log ()=0 |
| virtual int | set_config_dir (std::string config_dir)=0 |
| virtual int | set_cert_file (std::string folder, std::string filename)=0 |
| virtual int | set_country_code (std::string country_code)=0 |
| virtual std::string | get_id () const =0 |
| virtual int | start ()=0 |
| virtual int | change_user (std::string user_info)=0 |
| virtual bool | is_user_login ()=0 |
| virtual int | user_logout (bool request=false)=0 |
| virtual std::string | get_user_id ()=0 |
| virtual std::string | get_user_name ()=0 |
| virtual std::string | get_user_avatar ()=0 |
| virtual std::string | get_user_nickname ()=0 |
| virtual std::string | build_login_cmd ()=0 |
| virtual std::string | build_logout_cmd ()=0 |
| virtual std::string | build_login_info ()=0 |
| virtual std::string | get_access_token () const =0 |
| virtual std::string | get_refresh_token () const =0 |
| virtual bool | ensure_token_fresh (const std::string &reason)=0 |
| virtual std::string | get_cloud_service_host ()=0 |
| virtual std::string | get_cloud_login_url (const std::string &language="")=0 |
| virtual int | connect_server ()=0 |
| virtual bool | is_server_connected ()=0 |
| virtual int | refresh_connection ()=0 |
| virtual int | start_subscribe (std::string module)=0 |
| virtual int | stop_subscribe (std::string module)=0 |
| virtual int | add_subscribe (std::vector< std::string > dev_list)=0 |
| virtual int | del_subscribe (std::vector< std::string > dev_list)=0 |
| virtual void | enable_multi_machine (bool enable)=0 |
| virtual int | get_user_presets (std::map< std::string, std::map< std::string, std::string > > *user_presets)=0 |
| virtual std::string | request_setting_id (std::string name, std::map< std::string, std::string > *values_map, unsigned int *http_code)=0 |
| virtual int | put_setting (std::string setting_id, std::string name, std::map< std::string, std::string > *values_map, unsigned int *http_code, bool force=false)=0 |
| virtual int | get_setting_list (std::string bundle_version, ProgressFn pro_fn=nullptr, WasCancelledFn cancel_fn=nullptr)=0 |
| virtual int | get_setting_list2 (std::string bundle_version, CheckFn chk_fn, ProgressFn pro_fn=nullptr, WasCancelledFn cancel_fn=nullptr)=0 |
| virtual int | delete_setting (std::string setting_id)=0 |
| virtual int | get_my_message (int type, int after, int limit, unsigned int *http_code, std::string *http_body)=0 |
| virtual int | check_user_task_report (int *task_id, bool *printable)=0 |
| virtual int | get_user_print_info (unsigned int *http_code, std::string *http_body)=0 |
| virtual int | get_user_tasks (TaskQueryParams params, std::string *http_body)=0 |
| virtual int | get_printer_firmware (std::string dev_id, unsigned *http_code, std::string *http_body)=0 |
| virtual int | get_task_plate_index (std::string task_id, int *plate_index)=0 |
| virtual int | get_user_info (int *identifier)=0 |
| virtual int | get_subtask_info (std::string subtask_id, std::string *task_json, unsigned int *http_code, std::string *http_body)=0 |
| virtual int | get_slice_info (std::string project_id, std::string profile_id, int plate_index, std::string *slice_json)=0 |
| virtual int | query_bind_status (std::vector< std::string > query_list, unsigned int *http_code, std::string *http_body)=0 |
| virtual int | modify_printer_name (std::string dev_id, std::string dev_name)=0 |
| virtual int | get_camera_url (std::string dev_id, std::function< void(std::string)> callback)=0 |
| virtual std::unique_ptr< ICameraSignalingChannel > | create_camera_signaling_channel (const std::string &dev_id) |
| virtual int | get_design_staffpick (int offset, int limit, std::function< void(std::string)> callback)=0 |
| virtual int | start_publish (PublishParams params, OnUpdateStatusFn update_fn, WasCancelledFn cancel_fn, std::string *out)=0 |
| virtual int | get_model_publish_url (std::string *url)=0 |
| virtual int | get_subtask (BBLModelTask *task, OnGetSubTaskFn getsub_fn)=0 |
| virtual int | get_model_mall_home_url (std::string *url)=0 |
| virtual int | get_model_mall_detail_url (std::string *url, std::string id)=0 |
| virtual int | get_my_profile (std::string token, unsigned int *http_code, std::string *http_body)=0 |
| virtual int | get_my_token (std::string ticket, unsigned int *http_code, std::string *http_body)=0 |
| virtual int | track_enable (bool enable)=0 |
| virtual int | track_remove_files ()=0 |
| virtual int | track_event (std::string evt_key, std::string content)=0 |
| virtual int | track_header (std::string header)=0 |
| virtual int | track_update_property (std::string name, std::string value, std::string type="string")=0 |
| virtual int | track_get_property (std::string name, std::string &value, std::string type="string")=0 |
| virtual bool | get_track_enable ()=0 |
| virtual 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)=0 |
| virtual int | get_oss_config (std::string &config, std::string country_code, unsigned int &http_code, std::string &http_error)=0 |
| virtual 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)=0 |
| virtual int | get_model_mall_rating_result (int job_id, std::string &rating_result, unsigned int &http_code, std::string &http_error)=0 |
| virtual int | get_mw_user_preference (std::function< void(std::string)> callback)=0 |
| virtual int | get_mw_user_4ulist (int seed, int limit, std::function< void(std::string)> callback)=0 |
| virtual std::string | get_version ()=0 |
| virtual int | set_on_server_connected_fn (AppOnServerConnectedFn fn)=0 |
| virtual int | set_on_http_error_fn (AppOnHttpErrorFn fn)=0 |
| virtual int | set_get_country_code_fn (GetCountryCodeFn fn)=0 |
| virtual int | set_queue_on_main_fn (QueueOnMainFn fn)=0 |
|
virtualdefault |
|
pure virtual |
Subscribe to push streams for specific device identifiers.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Build a JSON command for the WebView login flow. Contains backend URL, API key, and PKCE parameters.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Return a JSON snapshot of the active session (user info, no tokens). Used by WebView to display current user state.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Build a JSON command for WebView logout.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Authenticate the user with the provided JSON payload.
Supported formats:
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Check for pending task reports.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Perform a health check against the configured backend. Updates is_server_connected() state and triggers OnServerConnectedFn.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
Referenced by Slic3r::NetworkAgent::connect_server().
|
inlinevirtual |
Create a camera signaling channel object for P2P camera streaming over WebRTC.
|
pure virtual |
Remove device-level subscriptions.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Delete a remote preset.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Enable or disable multi-machine mode.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Ensure the access token is fresh, refreshing if necessary. Call before making API requests to avoid 401 errors.
| reason | Descriptive string for logging (e.g., "connect_server") |
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Return the current access token for API calls. Cloud and printer agents use this for Authorization headers.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Request live camera streaming URL.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Return the login URL for the cloud service.
| language | Optional language code (e.g., "en-US", "zh-CN") for localized login page. If empty, returns the default (non-localized) login URL. |
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Return the base hostname for cloud API calls (varies by region). Helpful for diagnostics and when building browser URLs.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Fetch staff-picked designs from model mall.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
References Slic3r::offset().
|
pure virtual |
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Build model detail page URL.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Get model mall home URL.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Poll for rating result.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Get model publish URL.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Retrieve MakerWorld "For You" list.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Fetch MakerWorld user preferences.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Retrieve inbox/notification messages.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Retrieve user's model mall profile.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Exchange a one-time login ticket (from a third-party OAuth callback) for token + profile JSON. Used by the localhost callback handler when the auth server redirects with ?ticket=...&redirect_url=... instead of passing tokens directly in the URL.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Get OSS configuration for image uploads.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Fetch firmware information for a printer.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Return the current refresh token (if available).
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Trigger bulk download of user presets.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Enhanced preset sync with per-item validation.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Retrieve slicing job info.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Fetch publishing subtask information.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Fetch subtask information.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Get plate index for a cloud task.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Check if tracking is enabled.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Return the avatar URL/path for the current user.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Return the backend-generated user ID for the current session.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Retrieve extended user profile info.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Return the display name for the current user.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Return the nickname for the current user.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Fetch all presets owned by the logged-in user.
| user_presets | Map populated with [type][setting_id] = json |
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Fetch aggregated print statistics.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Query user's tasks/prints.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Return the version of the cloud service implementation.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Initialize the logging backend for the agent. Call after set_config_dir() so logs have a destination.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
Referenced by Slic3r::NetworkAgent::init_log().
|
pure virtual |
Return whether the server is currently reachable.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Check whether a valid authenticated session exists.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Update printer name in cloud profile.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Submit a review for a marketplace design.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Upload rating images to OSS.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Update or create a preset with a known setting_id.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Query binding status for multiple devices.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Force a server state recheck, clearing any cached state. The result arrives through is_server_connected() and OnServerConnectedFn. Implementations may return before the check finishes, fold the call into a check already in flight, and ignore calls while the agent is shutting down.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
Referenced by Slic3r::NetworkAgent::refresh_connection().
|
pure virtual |
Request a new preset identifier from the server.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Register the client certificate file for TLS authentication. May be unused by some implementations (e.g., OrcaCloudServiceAgent).
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
Referenced by Slic3r::NetworkAgent::set_cert_file().
|
pure virtual |
Provide the writable configuration directory for storing auth state. Must be called before start().
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
Referenced by Slic3r::NetworkAgent::set_config_dir().
|
pure virtual |
Set the country code for region-specific backend selection.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
Referenced by Slic3r::NetworkAgent::set_country_code().
|
pure virtual |
Provide country code getter callback.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
Referenced by Slic3r::NetworkAgent::set_get_country_code_fn().
|
pure virtual |
Register HTTP error callback.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
Referenced by Slic3r::NetworkAgent::set_on_http_error_fn().
|
pure virtual |
Register server connection status callback.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
Referenced by Slic3r::NetworkAgent::set_on_server_connected_fn().
|
pure virtual |
Provide main thread queue callback.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Start the agent, performing any expensive initialization. Typically regenerates PKCE bundles and attempts silent sign-in.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
Referenced by Slic3r::NetworkAgent::start().
|
pure virtual |
Run multi-stage publishing workflow.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Subscribe to a logical module (e.g., "printer", "user").
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
References Slic3r::module().
|
pure virtual |
Stop listening to a formerly subscribed module.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
References Slic3r::module().
|
pure virtual |
Enable/disable telemetry.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Report a custom analytics event.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Read a tracked user property.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Set telemetry headers.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Delete telemetry files.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Update a tracked user property.
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.
|
pure virtual |
Terminate the current session.
| request | If true, also notify the backend to invalidate the session. |
Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.