OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::ICloudServiceAgent Class Referenceabstract

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/ICloudServiceAgent.hpp>

Inheritance diagram for Slic3r::ICloudServiceAgent:

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

Detailed Description

Constructor & Destructor Documentation

◆ ~ICloudServiceAgent()

virtual Slic3r::ICloudServiceAgent::~ICloudServiceAgent ( )
virtualdefault

Member Function Documentation

◆ add_subscribe()

virtual int Slic3r::ICloudServiceAgent::add_subscribe ( std::vector< std::string > dev_list)
pure virtual

Subscribe to push streams for specific device identifiers.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ build_login_cmd()

virtual std::string Slic3r::ICloudServiceAgent::build_login_cmd ( )
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.

◆ build_login_info()

virtual std::string Slic3r::ICloudServiceAgent::build_login_info ( )
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.

◆ build_logout_cmd()

virtual std::string Slic3r::ICloudServiceAgent::build_logout_cmd ( )
pure virtual

Build a JSON command for WebView logout.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ change_user()

virtual int Slic3r::ICloudServiceAgent::change_user ( std::string user_info)
pure virtual

Authenticate the user with the provided JSON payload.

Supported formats:

  1. Traditional: {"username": "...", "password": "..."}
  2. WebView/OAuth: {"command": "user_login", "data": {...}}
  3. Token format: {"data": {"token": "...", "refresh_token": "...", "user": {...}}}

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ check_user_task_report()

virtual int Slic3r::ICloudServiceAgent::check_user_task_report ( int * task_id,
bool * printable )
pure virtual

Check for pending task reports.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ connect_server()

virtual int Slic3r::ICloudServiceAgent::connect_server ( )
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().

Here is the caller graph for this function:

◆ create_camera_signaling_channel()

virtual std::unique_ptr< ICameraSignalingChannel > Slic3r::ICloudServiceAgent::create_camera_signaling_channel ( const std::string & dev_id)
inlinevirtual

Create a camera signaling channel object for P2P camera streaming over WebRTC.

340 {
341 (void) dev_id;
342 return nullptr;
343 }

◆ del_subscribe()

virtual int Slic3r::ICloudServiceAgent::del_subscribe ( std::vector< std::string > dev_list)
pure virtual

Remove device-level subscriptions.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ delete_setting()

virtual int Slic3r::ICloudServiceAgent::delete_setting ( std::string setting_id)
pure virtual

Delete a remote preset.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ enable_multi_machine()

virtual void Slic3r::ICloudServiceAgent::enable_multi_machine ( bool enable)
pure virtual

Enable or disable multi-machine mode.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ ensure_token_fresh()

virtual bool Slic3r::ICloudServiceAgent::ensure_token_fresh ( const std::string & reason)
pure virtual

Ensure the access token is fresh, refreshing if necessary. Call before making API requests to avoid 401 errors.

Parameters
reasonDescriptive string for logging (e.g., "connect_server")
Returns
true if the token is fresh or was successfully refreshed

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_access_token()

virtual std::string Slic3r::ICloudServiceAgent::get_access_token ( ) const
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.

◆ get_camera_url()

virtual int Slic3r::ICloudServiceAgent::get_camera_url ( std::string dev_id,
std::function< void(std::string)> callback )
pure virtual

Request live camera streaming URL.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_cloud_login_url()

virtual std::string Slic3r::ICloudServiceAgent::get_cloud_login_url ( const std::string & language = "")
pure virtual

Return the login URL for the cloud service.

Parameters
languageOptional language code (e.g., "en-US", "zh-CN") for localized login page. If empty, returns the default (non-localized) login URL.
Returns
The full URL to the login page, or a local file:// URL for native implementations.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_cloud_service_host()

virtual std::string Slic3r::ICloudServiceAgent::get_cloud_service_host ( )
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.

◆ get_design_staffpick()

virtual int Slic3r::ICloudServiceAgent::get_design_staffpick ( int offset,
int limit,
std::function< void(std::string)> callback )
pure virtual

Fetch staff-picked designs from model mall.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

References Slic3r::offset().

Here is the call graph for this function:

◆ get_id()

virtual std::string Slic3r::ICloudServiceAgent::get_id ( ) const
pure virtual

◆ get_model_mall_detail_url()

virtual int Slic3r::ICloudServiceAgent::get_model_mall_detail_url ( std::string * url,
std::string id )
pure virtual

Build model detail page URL.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_model_mall_home_url()

virtual int Slic3r::ICloudServiceAgent::get_model_mall_home_url ( std::string * url)
pure virtual

Get model mall home URL.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_model_mall_rating_result()

virtual int Slic3r::ICloudServiceAgent::get_model_mall_rating_result ( int job_id,
std::string & rating_result,
unsigned int & http_code,
std::string & http_error )
pure virtual

Poll for rating result.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_model_publish_url()

virtual int Slic3r::ICloudServiceAgent::get_model_publish_url ( std::string * url)
pure virtual

Get model publish URL.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_mw_user_4ulist()

virtual int Slic3r::ICloudServiceAgent::get_mw_user_4ulist ( int seed,
int limit,
std::function< void(std::string)> callback )
pure virtual

Retrieve MakerWorld "For You" list.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_mw_user_preference()

virtual int Slic3r::ICloudServiceAgent::get_mw_user_preference ( std::function< void(std::string)> callback)
pure virtual

Fetch MakerWorld user preferences.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_my_message()

virtual int Slic3r::ICloudServiceAgent::get_my_message ( int type,
int after,
int limit,
unsigned int * http_code,
std::string * http_body )
pure virtual

Retrieve inbox/notification messages.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_my_profile()

virtual int Slic3r::ICloudServiceAgent::get_my_profile ( std::string token,
unsigned int * http_code,
std::string * http_body )
pure virtual

Retrieve user's model mall profile.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_my_token()

virtual int Slic3r::ICloudServiceAgent::get_my_token ( std::string ticket,
unsigned int * http_code,
std::string * http_body )
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.

◆ get_oss_config()

virtual int Slic3r::ICloudServiceAgent::get_oss_config ( std::string & config,
std::string country_code,
unsigned int & http_code,
std::string & http_error )
pure virtual

Get OSS configuration for image uploads.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_printer_firmware()

virtual int Slic3r::ICloudServiceAgent::get_printer_firmware ( std::string dev_id,
unsigned * http_code,
std::string * http_body )
pure virtual

Fetch firmware information for a printer.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_refresh_token()

virtual std::string Slic3r::ICloudServiceAgent::get_refresh_token ( ) const
pure virtual

Return the current refresh token (if available).

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_setting_list()

virtual int Slic3r::ICloudServiceAgent::get_setting_list ( std::string bundle_version,
ProgressFn pro_fn = nullptr,
WasCancelledFn cancel_fn = nullptr )
pure virtual

Trigger bulk download of user presets.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_setting_list2()

virtual int Slic3r::ICloudServiceAgent::get_setting_list2 ( std::string bundle_version,
CheckFn chk_fn,
ProgressFn pro_fn = nullptr,
WasCancelledFn cancel_fn = nullptr )
pure virtual

Enhanced preset sync with per-item validation.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_slice_info()

virtual int Slic3r::ICloudServiceAgent::get_slice_info ( std::string project_id,
std::string profile_id,
int plate_index,
std::string * slice_json )
pure virtual

Retrieve slicing job info.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_subtask()

virtual int Slic3r::ICloudServiceAgent::get_subtask ( BBLModelTask * task,
OnGetSubTaskFn getsub_fn )
pure virtual

Fetch publishing subtask information.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_subtask_info()

virtual int Slic3r::ICloudServiceAgent::get_subtask_info ( std::string subtask_id,
std::string * task_json,
unsigned int * http_code,
std::string * http_body )
pure virtual

Fetch subtask information.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_task_plate_index()

virtual int Slic3r::ICloudServiceAgent::get_task_plate_index ( std::string task_id,
int * plate_index )
pure virtual

Get plate index for a cloud task.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_track_enable()

virtual bool Slic3r::ICloudServiceAgent::get_track_enable ( )
pure virtual

Check if tracking is enabled.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_user_avatar()

virtual std::string Slic3r::ICloudServiceAgent::get_user_avatar ( )
pure virtual

Return the avatar URL/path for the current user.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_user_id()

virtual std::string Slic3r::ICloudServiceAgent::get_user_id ( )
pure virtual

Return the backend-generated user ID for the current session.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_user_info()

virtual int Slic3r::ICloudServiceAgent::get_user_info ( int * identifier)
pure virtual

Retrieve extended user profile info.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_user_name()

virtual std::string Slic3r::ICloudServiceAgent::get_user_name ( )
pure virtual

Return the display name for the current user.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_user_nickname()

virtual std::string Slic3r::ICloudServiceAgent::get_user_nickname ( )
pure virtual

Return the nickname for the current user.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_user_presets()

virtual int Slic3r::ICloudServiceAgent::get_user_presets ( std::map< std::string, std::map< std::string, std::string > > * user_presets)
pure virtual

Fetch all presets owned by the logged-in user.

Parameters
user_presetsMap populated with [type][setting_id] = json

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_user_print_info()

virtual int Slic3r::ICloudServiceAgent::get_user_print_info ( unsigned int * http_code,
std::string * http_body )
pure virtual

Fetch aggregated print statistics.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_user_tasks()

virtual int Slic3r::ICloudServiceAgent::get_user_tasks ( TaskQueryParams params,
std::string * http_body )
pure virtual

Query user's tasks/prints.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ get_version()

virtual std::string Slic3r::ICloudServiceAgent::get_version ( )
pure virtual

Return the version of the cloud service implementation.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ init_log()

virtual int Slic3r::ICloudServiceAgent::init_log ( )
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().

Here is the caller graph for this function:

◆ is_server_connected()

virtual bool Slic3r::ICloudServiceAgent::is_server_connected ( )
pure virtual

Return whether the server is currently reachable.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ is_user_login()

virtual bool Slic3r::ICloudServiceAgent::is_user_login ( )
pure virtual

Check whether a valid authenticated session exists.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ modify_printer_name()

virtual int Slic3r::ICloudServiceAgent::modify_printer_name ( std::string dev_id,
std::string dev_name )
pure virtual

Update printer name in cloud profile.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ put_model_mall_rating()

virtual int Slic3r::ICloudServiceAgent::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 )
pure virtual

Submit a review for a marketplace design.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ put_rating_picture_oss()

virtual int Slic3r::ICloudServiceAgent::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 )
pure virtual

Upload rating images to OSS.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ put_setting()

virtual int Slic3r::ICloudServiceAgent::put_setting ( std::string setting_id,
std::string name,
std::map< std::string, std::string > * values_map,
unsigned int * http_code,
bool force = false )
pure virtual

Update or create a preset with a known setting_id.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ query_bind_status()

virtual int Slic3r::ICloudServiceAgent::query_bind_status ( std::vector< std::string > query_list,
unsigned int * http_code,
std::string * http_body )
pure virtual

Query binding status for multiple devices.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ refresh_connection()

virtual int Slic3r::ICloudServiceAgent::refresh_connection ( )
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().

Here is the caller graph for this function:

◆ request_setting_id()

virtual std::string Slic3r::ICloudServiceAgent::request_setting_id ( std::string name,
std::map< std::string, std::string > * values_map,
unsigned int * http_code )
pure virtual

Request a new preset identifier from the server.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ set_cert_file()

virtual int Slic3r::ICloudServiceAgent::set_cert_file ( std::string folder,
std::string filename )
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().

Here is the caller graph for this function:

◆ set_config_dir()

virtual int Slic3r::ICloudServiceAgent::set_config_dir ( std::string config_dir)
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().

Here is the caller graph for this function:

◆ set_country_code()

virtual int Slic3r::ICloudServiceAgent::set_country_code ( std::string country_code)
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().

Here is the caller graph for this function:

◆ set_get_country_code_fn()

virtual int Slic3r::ICloudServiceAgent::set_get_country_code_fn ( GetCountryCodeFn fn)
pure virtual

Provide country code getter callback.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

Referenced by Slic3r::NetworkAgent::set_get_country_code_fn().

Here is the caller graph for this function:

◆ set_on_http_error_fn()

virtual int Slic3r::ICloudServiceAgent::set_on_http_error_fn ( AppOnHttpErrorFn fn)
pure virtual

Register HTTP error callback.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

Referenced by Slic3r::NetworkAgent::set_on_http_error_fn().

Here is the caller graph for this function:

◆ set_on_server_connected_fn()

virtual int Slic3r::ICloudServiceAgent::set_on_server_connected_fn ( AppOnServerConnectedFn fn)
pure virtual

Register server connection status callback.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

Referenced by Slic3r::NetworkAgent::set_on_server_connected_fn().

Here is the caller graph for this function:

◆ set_queue_on_main_fn()

virtual int Slic3r::ICloudServiceAgent::set_queue_on_main_fn ( QueueOnMainFn fn)
pure virtual

Provide main thread queue callback.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ start()

virtual int Slic3r::ICloudServiceAgent::start ( )
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().

Here is the caller graph for this function:

◆ start_publish()

virtual int Slic3r::ICloudServiceAgent::start_publish ( PublishParams params,
OnUpdateStatusFn update_fn,
WasCancelledFn cancel_fn,
std::string * out )
pure virtual

Run multi-stage publishing workflow.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ start_subscribe()

virtual int Slic3r::ICloudServiceAgent::start_subscribe ( std::string module)
pure virtual

Subscribe to a logical module (e.g., "printer", "user").

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

References Slic3r::module().

Here is the call graph for this function:

◆ stop_subscribe()

virtual int Slic3r::ICloudServiceAgent::stop_subscribe ( std::string module)
pure virtual

Stop listening to a formerly subscribed module.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

References Slic3r::module().

Here is the call graph for this function:

◆ track_enable()

virtual int Slic3r::ICloudServiceAgent::track_enable ( bool enable)
pure virtual

Enable/disable telemetry.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ track_event()

virtual int Slic3r::ICloudServiceAgent::track_event ( std::string evt_key,
std::string content )
pure virtual

Report a custom analytics event.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ track_get_property()

virtual int Slic3r::ICloudServiceAgent::track_get_property ( std::string name,
std::string & value,
std::string type = "string" )
pure virtual

Read a tracked user property.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ track_header()

virtual int Slic3r::ICloudServiceAgent::track_header ( std::string header)
pure virtual

Set telemetry headers.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ track_remove_files()

virtual int Slic3r::ICloudServiceAgent::track_remove_files ( )
pure virtual

Delete telemetry files.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ track_update_property()

virtual int Slic3r::ICloudServiceAgent::track_update_property ( std::string name,
std::string value,
std::string type = "string" )
pure virtual

Update a tracked user property.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.

◆ user_logout()

virtual int Slic3r::ICloudServiceAgent::user_logout ( bool request = false)
pure virtual

Terminate the current session.

Parameters
requestIf true, also notify the backend to invalidate the session.

Implemented in Slic3r::BBLCloudServiceAgent, and Slic3r::OrcaCloudServiceAgent.


The documentation for this class was generated from the following file: