#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/OrcaCloudServiceAgent.hpp>
Classes | |
| struct | SessionInfo |
| struct | PkceBundle |
| struct | HttpResult |
Public Types | |
| using | SessionHandler = std::function<bool(const std::string&)> |
| using | OnLoginCompleteHandler = std::function<void(bool success, const std::string& user_id)> |
Public Member Functions | |
| OrcaCloudServiceAgent (std::string log_dir) | |
| ~OrcaCloudServiceAgent () override | |
| std::string | get_id () const override |
| void | configure_urls (AppConfig *app_config) |
| void | set_api_base_url (const std::string &url) |
| void | set_auth_base_url (const std::string &url) |
| void | set_cloud_base_url (const std::string &url) |
| std::string | get_cloud_base_url () const |
| void | set_use_encrypted_token_file (bool use) |
| bool | get_use_encrypted_token_file () const |
| int | init_log () override |
| int | set_config_dir (std::string config_dir) override |
| int | set_cert_file (std::string folder, std::string filename) override |
| int | set_country_code (std::string country_code) override |
| int | start () override |
| int | change_user (std::string user_info) override |
| bool | is_user_login () override |
| int | user_logout (bool request=false) override |
| std::string | get_user_id () override |
| std::string | get_user_name () override |
| std::string | get_user_avatar () override |
| std::string | get_user_nickname () override |
| std::string | build_login_cmd () override |
| std::string | build_logout_cmd () override |
| std::string | build_login_info () override |
| std::string | get_access_token () const override |
| std::string | get_refresh_token () const override |
| bool | ensure_token_fresh (const std::string &reason) override |
| std::string | get_cloud_service_host () override |
| std::string | get_cloud_login_url (const std::string &language="") override |
| std::string | build_web_session_start_url (const std::string &next=std::string()) const |
| std::string | build_web_session_complete_url (const std::string &token_hash, const std::string &state) const |
| std::string | build_web_session_signout_url () const |
| int | request_web_session_handoff (std::string &token_hash, std::string &error_code, unsigned int &http_code) |
| int | connect_server () override |
| bool | is_server_connected () override |
| int | refresh_connection () override |
| void | stop_health_check () |
| bool | is_refresh_running () const |
| int | start_subscribe (std::string module) override |
| int | stop_subscribe (std::string module) override |
| int | add_subscribe (std::vector< std::string > dev_list) override |
| int | del_subscribe (std::vector< std::string > dev_list) override |
| void | enable_multi_machine (bool enable) override |
| int | get_user_presets (std::map< std::string, std::map< std::string, std::string > > *user_presets) override |
| std::string | request_setting_id (std::string name, std::map< std::string, std::string > *values_map, unsigned int *http_code) override |
| 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) override |
| SyncPushResult | sync_push (const std::string &profile_id, const std::string &name, const nlohmann::json &content, const std::string &original_updated_time="", bool force=false) |
| int | get_setting_list (std::string bundle_version, ProgressFn pro_fn=nullptr, WasCancelledFn cancel_fn=nullptr) override |
| int | get_setting_list2 (std::string bundle_version, CheckFn chk_fn, ProgressFn pro_fn=nullptr, WasCancelledFn cancel_fn=nullptr) override |
| int | delete_setting (std::string setting_id) override |
| int | get_my_message (int type, int after, int limit, unsigned int *http_code, std::string *http_body) override |
| int | check_user_task_report (int *task_id, bool *printable) override |
| int | get_user_print_info (unsigned int *http_code, std::string *http_body) override |
| int | get_user_tasks (TaskQueryParams params, std::string *http_body) override |
| int | get_printer_firmware (std::string dev_id, unsigned *http_code, std::string *http_body) override |
| int | get_task_plate_index (std::string task_id, int *plate_index) override |
| int | get_user_info (int *identifier) override |
| int | get_subtask_info (std::string subtask_id, std::string *task_json, unsigned int *http_code, std::string *http_body) override |
| int | get_slice_info (std::string project_id, std::string profile_id, int plate_index, std::string *slice_json) override |
| int | query_bind_status (std::vector< std::string > query_list, unsigned int *http_code, std::string *http_body) override |
| int | modify_printer_name (std::string dev_id, std::string dev_name) override |
| int | get_camera_url (std::string dev_id, std::function< void(std::string)> callback) override |
| int | get_design_staffpick (int offset, int limit, std::function< void(std::string)> callback) override |
| int | start_publish (PublishParams params, OnUpdateStatusFn update_fn, WasCancelledFn cancel_fn, std::string *out) override |
| int | get_model_publish_url (std::string *url) override |
| int | get_subtask (BBLModelTask *task, OnGetSubTaskFn getsub_fn) override |
| int | get_model_mall_home_url (std::string *url) override |
| int | get_model_mall_detail_url (std::string *url, std::string id) override |
| int | get_my_profile (std::string token, unsigned int *http_code, std::string *http_body) override |
| int | get_my_token (std::string ticket, unsigned int *http_code, std::string *http_body) override |
| int | track_enable (bool enable) override |
| int | track_remove_files () override |
| int | track_event (std::string evt_key, std::string content) override |
| int | track_header (std::string header) override |
| int | track_update_property (std::string name, std::string value, std::string type="string") override |
| int | track_get_property (std::string name, std::string &value, std::string type="string") override |
| bool | get_track_enable () override |
| 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) override |
| int | get_oss_config (std::string &config, std::string country_code, unsigned int &http_code, std::string &http_error) override |
| 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) override |
| int | get_model_mall_rating_result (int job_id, std::string &rating_result, unsigned int &http_code, std::string &http_error) override |
| int | get_mw_user_preference (std::function< void(std::string)> callback) override |
| int | get_mw_user_4ulist (int seed, int limit, std::function< void(std::string)> callback) override |
| std::string | get_version () override |
| int | set_on_server_connected_fn (AppOnServerConnectedFn fn) override |
| int | set_on_http_error_fn (AppOnHttpErrorFn fn) override |
| int | set_get_country_code_fn (GetCountryCodeFn fn) override |
| int | set_queue_on_main_fn (QueueOnMainFn fn) override |
| void | load_sync_state () |
| void | save_sync_state () |
| void | clear_sync_state () |
| const SyncState & | get_sync_state () const |
| bool | unsubscribe_bundle (const std::string &bundle_id) |
| std::string | get_bundle_url (const std::string &bundle_id) const |
| int | get_subscribed_bundles (std::vector< std::pair< std::string, std::string > > *bundles, std::vector< std::string > ¬found, std::vector< std::string > &unauthorized) |
| int | get_shared_bundle (const std::string &bundle_id, std::map< std::string, std::map< std::string, std::string > > *presets, BundleMetadata *bundle_metadata) |
| int | fetch_subscribed_manifests_into_descriptors (std::vector< PluginDescriptor > &descriptors, std::vector< std::string > ¬_found, std::vector< std::string > &unauthorized) |
| int | fetch_mine_manifests_into_descriptors (std::vector< PluginDescriptor > &descriptors) |
| int | get_plugin_download_url (const std::string &uuid, const std::string &requested_version, std::vector< PluginDownloadData > &data, std::vector< PluginDownloadNotFound > ¬_found, std::vector< std::string > &unauthorized) |
| std::string | get_plugin_url (const std::string &sharing_token) const |
| int | subscribe_plugin (const std::string &plugin_uuid) |
| int | unsubscribe_plugins (const std::vector< std::string > &plugin_uuids) |
| int | fetch_plugin_changelogs (const std::vector< std::string > &uuids, std::unordered_map< std::string, std::vector< PluginChangelog > > &changelog) |
| void | set_session_handler (SessionHandler handler) |
| void | set_on_login_complete_handler (OnLoginCompleteHandler handler) |
| const PkceBundle & | pkce () |
| void | regenerate_pkce () |
| void | persist_user_secret (const std::string &secret) |
| bool | load_user_secret (std::string &out_secret) |
| void | clear_user_secret (bool all_backends=false) |
| bool | refresh_if_expiring (std::chrono::seconds skew, const std::string &reason) |
| RefreshResult | refresh_from_storage (const std::string &reason, bool async=false) |
| RefreshResult | refresh_now (const std::string &refresh_token, const std::string &reason, bool async=false) |
| RefreshResult | refresh_session_with_token (const std::string &refresh_token, const std::string &reason="") |
| bool | set_user_session (const std::string &token, const std::string &user_id, const std::string &username, const std::string &nickname, const std::string &avatar, const std::string &refresh_token="", bool persist=true) |
| bool | set_user_session (const nlohmann::json &session_json, bool notify_login=true) |
| void | clear_session (bool all_backends=false) |
| virtual std::unique_ptr< ICameraSignalingChannel > | create_camera_signaling_channel (const std::string &dev_id) |
Static Public Member Functions | |
| static std::string | generate_uuid_for_setting_id (const std::string &name, const std::string &user_id="") |
Private Member Functions | |
| int | sync_pull (std::function< void(const SyncPullResponse &)> on_success, std::function< void(int http_code, const std::string &error)> on_error) |
| bool | resolve_unauthorized (HttpResult &res, const std::function< HttpResult()> &perform, const std::string &reason) |
| int | http_get (const std::string &path, std::string *response_body, unsigned int *http_code) |
| int | http_post (const std::string &path, const std::string &body, std::string *response_body, unsigned int *http_code) |
| int | http_put (const std::string &path, const std::string &body, std::string *response_body, unsigned int *http_code) |
| int | http_delete (const std::string &path, std::string *response_body, unsigned int *http_code) |
| std::map< std::string, std::string > | data_headers () |
| RefreshResult | attempt_refresh_after_unauthorized (const std::string &reason) |
| bool | http_post_token (const std::string &body, std::string *response_body, unsigned int *http_code, const std::string &url="") |
| bool | http_post_auth (const std::string &path, const std::string &body, std::string *response_body, unsigned int *http_code) |
| bool | exchange_auth_code (const std::string &auth_code, const std::string &state, std::string &session_payload) |
| void | update_redirect_uri () |
| void | compute_fallback_path () |
| bool | decode_jwt_expiry (const std::string &token, std::chrono::system_clock::time_point &out_tp) |
| bool | should_refresh_locked (std::chrono::seconds skew) const |
| bool | run_health_check (const std::atomic_bool *cancel) |
| void | invoke_server_connected_callback (int return_code, int reason_code) |
| void | invoke_http_error_callback (unsigned http_code, const std::string &http_body) |
| std::string | map_to_json (const std::map< std::string, std::string > &map) |
| void | json_to_map (const std::string &json, std::map< std::string, std::string > &map) |
| std::string | token_lock_path () const |
OrcaCloudServiceAgent - Native cloud service and authentication implementation for Orca Cloud.
Implements the ICloudServiceAgent interface with:
This class combines the functionality of the former OrcaAuthAgent and OrcaCloudServiceAgent.
| struct Slic3r::OrcaCloudServiceAgent::SessionInfo |
| struct Slic3r::OrcaCloudServiceAgent::PkceBundle |
| Class Members | ||
|---|---|---|
| string | challenge | |
| int | loopback_port = auth_constants::LOOPBACK_PORT | |
| string | redirect | |
| string | state | |
| string | verifier | |
| struct Slic3r::OrcaCloudServiceAgent::HttpResult |
| using Slic3r::OrcaCloudServiceAgent::OnLoginCompleteHandler = std::function<void(bool success, const std::string& user_id)> |
| using Slic3r::OrcaCloudServiceAgent::SessionHandler = std::function<bool(const std::string&)> |
|
explicit |
References api_base_url, auth_base_url, auth_headers, cloud_base_url, compute_fallback_path(), log_dir, pkce_bundle, regenerate_pkce(), and update_redirect_uri().
|
override |
References refresh_thread, and stop_health_check().
|
overridevirtual |
Subscribe to push streams for specific device identifiers.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
private |
References Slic3r::AuthRejected, refresh_from_storage(), and Slic3r::Transient.
Referenced by resolve_unauthorized().
|
overridevirtual |
Build a JSON command for the WebView login flow. Contains backend URL, API key, and PKCE parameters.
Implements Slic3r::ICloudServiceAgent.
References _u8L, auth_base_url, auth_headers, get_user_avatar(), get_user_name(), get_user_nickname(), is_user_login(), pkce(), regenerate_pkce(), state_mutex, and update_redirect_uri().
|
overridevirtual |
Return a JSON snapshot of the active session (user info, no tokens). Used by WebView to display current user state.
Implements Slic3r::ICloudServiceAgent.
References api_base_url, auth_base_url, session, and session_mutex.
|
overridevirtual |
| std::string Slic3r::OrcaCloudServiceAgent::build_web_session_complete_url | ( | const std::string & | token_hash, |
| const std::string & | state ) const |
References cloud_base_url, and Slic3r::percent_encode_unreserved().
| std::string Slic3r::OrcaCloudServiceAgent::build_web_session_signout_url | ( | ) | const |
References cloud_base_url.
| std::string Slic3r::OrcaCloudServiceAgent::build_web_session_start_url | ( | const std::string & | next = std::string() | ) | const |
References cloud_base_url, Slic3r::percent_encode_unreserved(), session, and session_mutex.
|
overridevirtual |
Authenticate the user with the provided JSON payload.
Supported formats:
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_ERR_INVALID_HANDLE, BAMBU_NETWORK_ERR_INVALID_RESULT, BAMBU_NETWORK_SUCCESS, change_user(), exchange_auth_code(), pkce_bundle, and set_user_session().
Referenced by change_user().
|
overridevirtual |
Check for pending task reports.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
| void Slic3r::OrcaCloudServiceAgent::clear_session | ( | bool | all_backends = false | ) |
References clear_user_secret(), session, and session_mutex.
Referenced by user_logout().
| void Slic3r::OrcaCloudServiceAgent::clear_sync_state | ( | ) |
References state_mutex, sync_state, and sync_state_path.
Referenced by sync_pull().
| void Slic3r::OrcaCloudServiceAgent::clear_user_secret | ( | bool | all_backends = false | ) |
References compute_fallback_path(), m_use_encrypted_token_file, secret_fallback_path, and secret_stored.
Referenced by clear_session(), and persist_user_secret().
|
private |
References secret_fallback_path.
Referenced by OrcaCloudServiceAgent(), clear_user_secret(), load_user_secret(), and persist_user_secret().
| void Slic3r::OrcaCloudServiceAgent::configure_urls | ( | AppConfig * | app_config | ) |
References api_base_url, auth_base_url, auth_headers, cloud_base_url, Slic3r::AppConfig::get(), Slic3r::AppConfig::get_bool(), m_use_encrypted_token_file, and SETTING_USE_ENCRYPTED_TOKEN_FILE.
|
overridevirtual |
Perform a health check against the configured backend. Updates is_server_connected() state and triggers OnServerConnectedFn.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_ERR_CONNECTION_TO_SERVER_FAILED, BAMBU_NETWORK_SUCCESS, and run_health_check().
|
inlinevirtualinherited |
Create a camera signaling channel object for P2P camera streaming over WebRTC.
|
private |
References auth_headers, extra_headers, headers_mutex, and state_mutex.
Referenced by http_delete(), http_get(), http_post(), http_put(), request_web_session_handoff(), and run_health_check().
|
private |
Referenced by set_user_session().
|
overridevirtual |
Remove device-level subscriptions.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Delete a remote preset.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_ERR_DEL_SETTING_FAILED, BAMBU_NETWORK_SUCCESS, and http_delete().
|
overridevirtual |
Enable or disable multi-machine mode.
Implements Slic3r::ICloudServiceAgent.
References multi_machine_enabled, and state_mutex.
|
overridevirtual |
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") |
Implements Slic3r::ICloudServiceAgent.
References refresh_if_expiring().
Referenced by http_delete(), http_get(), http_post(), http_put(), and request_web_session_handoff().
|
private |
References auth_base_url, http_post_token(), pkce_bundle, state_mutex, and Slic3r::auth_constants::TOKEN_PATH.
Referenced by change_user().
| int Slic3r::OrcaCloudServiceAgent::fetch_mine_manifests_into_descriptors | ( | std::vector< PluginDescriptor > & | descriptors | ) |
References Slic3r::PluginDescriptor::author, Slic3r::PluginChangelog::changelog, Slic3r::PluginDescriptor::changelog, Slic3r::PluginChangelog::changelog_id, Slic3r::PluginDescriptor::cloud, Slic3r::cloud_media_is_image(), Slic3r::PluginChangelog::created_time, Slic3r::PluginDescriptor::display_types, Slic3r::PluginDescriptor::entry_package, http_get(), Slic3r::PluginDescriptor::latest_version, Slic3r::PluginDescriptor::name, Slic3r::parse_cloud_author(), Slic3r::parse_cloud_display_types(), Slic3r::PluginDescriptor::plugin_key, Slic3r::PluginChangelog::plugin_uuid, Slic3r::sanitize_plugin_name(), Slic3r::PluginDescriptor::sharing_token, Slic3r::sort_plugin_changelog(), Slic3r::PluginDescriptor::thumbnail_url, Slic3r::PluginChangelog::version, and Slic3r::PluginDescriptor::version.
| int Slic3r::OrcaCloudServiceAgent::fetch_plugin_changelogs | ( | const std::vector< std::string > & | uuids, |
| std::unordered_map< std::string, std::vector< PluginChangelog > > & | changelog ) |
References Slic3r::PluginChangelog::changelog, Slic3r::PluginChangelog::changelog_id, Slic3r::PluginChangelog::created_time, http_get(), Slic3r::PluginChangelog::plugin_uuid, Slic3r::sort_plugin_changelog(), Slic3r::Http::url_encode(), and Slic3r::PluginChangelog::version.
| int Slic3r::OrcaCloudServiceAgent::fetch_subscribed_manifests_into_descriptors | ( | std::vector< PluginDescriptor > & | descriptors, |
| std::vector< std::string > & | not_found, | ||
| std::vector< std::string > & | unauthorized ) |
References Slic3r::PluginDescriptor::author, Slic3r::PluginChangelog::changelog, Slic3r::PluginDescriptor::changelog, Slic3r::PluginChangelog::changelog_id, Slic3r::PluginDescriptor::cloud, Slic3r::cloud_media_is_image(), Slic3r::PluginChangelog::created_time, Slic3r::PluginDescriptor::display_types, Slic3r::PluginDescriptor::entry_package, http_get(), Slic3r::PluginDescriptor::latest_version, Slic3r::PluginDescriptor::name, Slic3r::parse_cloud_author(), Slic3r::parse_cloud_display_types(), Slic3r::PluginDescriptor::plugin_key, Slic3r::PluginChangelog::plugin_uuid, Slic3r::sanitize_plugin_name(), Slic3r::PluginDescriptor::sharing_token, Slic3r::sort_plugin_changelog(), Slic3r::PluginDescriptor::thumbnail_url, Slic3r::PluginChangelog::version, and Slic3r::PluginDescriptor::version.
|
static |
Referenced by Slic3r::GUI::GUI_App::force_push_conflicting_preset(), Slic3r::GUI::GUI_App::on_http_error(), and request_setting_id().
|
overridevirtual |
Return the current access token for API calls. Cloud and printer agents use this for Authorization headers.
Implements Slic3r::ICloudServiceAgent.
References session, and session_mutex.
Referenced by http_delete(), http_get(), http_post(), http_put(), and request_web_session_handoff().
| std::string Slic3r::OrcaCloudServiceAgent::get_bundle_url | ( | const std::string & | bundle_id | ) | const |
References cloud_base_url.
|
overridevirtual |
Request live camera streaming URL.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
inline |
References cloud_base_url.
|
overridevirtual |
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. |
Implements Slic3r::ICloudServiceAgent.
References cloud_base_url.
|
overridevirtual |
Return the base hostname for cloud API calls (varies by region). Helpful for diagnostics and when building browser URLs.
Implements Slic3r::ICloudServiceAgent.
References api_base_url.
|
overridevirtual |
Fetch staff-picked designs from model mall.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS, and Slic3r::offset().
|
inlineoverridevirtual |
Implements Slic3r::ICloudServiceAgent.
References Slic3r::ORCA_CLOUD_PROVIDER().
|
overridevirtual |
Build model detail page URL.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Get model mall home URL.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Poll for rating result.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Get model publish URL.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Retrieve MakerWorld "For You" list.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Fetch MakerWorld user preferences.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Retrieve inbox/notification messages.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Retrieve user's model mall profile.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
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.
Implements Slic3r::ICloudServiceAgent.
|
overridevirtual |
Get OSS configuration for image uploads.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS, and country_code.
| int Slic3r::OrcaCloudServiceAgent::get_plugin_download_url | ( | const std::string & | uuid, |
| const std::string & | requested_version, | ||
| std::vector< PluginDownloadData > & | data, | ||
| std::vector< PluginDownloadNotFound > & | not_found, | ||
| std::vector< std::string > & | unauthorized ) |
References Slic3r::PluginDownloadData::download_link, http_post(), Slic3r::PluginDownloadNotFound::id, Slic3r::platform_architecture(), Slic3r::platform_os_type(), Slic3r::PluginDownloadData::plugin_id, Slic3r::PluginDownloadNotFound::reason, Slic3r::PluginDownloadData::requested_os, Slic3r::PluginDownloadData::returned_os, and Slic3r::Http::url_encode().
| std::string Slic3r::OrcaCloudServiceAgent::get_plugin_url | ( | const std::string & | sharing_token | ) | const |
References cloud_base_url, and Slic3r::Http::url_encode().
|
overridevirtual |
Fetch firmware information for a printer.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Return the current refresh token (if available).
Implements Slic3r::ICloudServiceAgent.
References session, and session_mutex.
Referenced by refresh_from_storage().
|
overridevirtual |
Trigger bulk download of user presets.
Implements Slic3r::ICloudServiceAgent.
References get_setting_list2().
|
overridevirtual |
Enhanced preset sync with per-item validation.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_ERR_GET_SETTING_LIST_FAILED, BAMBU_NETWORK_SUCCESS, IOT_JSON_KEY_NAME, IOT_JSON_KEY_SETTING_ID, IOT_JSON_KEY_TYPE, IOT_JSON_KEY_UPDATED_TIME, IOT_PRINT_TYPE_STRING, save_sync_state(), state_mutex, sync_pull(), and sync_state.
Referenced by get_setting_list().
| int Slic3r::OrcaCloudServiceAgent::get_shared_bundle | ( | const std::string & | bundle_id, |
| std::map< std::string, std::map< std::string, std::string > > * | presets, | ||
| BundleMetadata * | bundle_metadata ) |
References Slic3r::BundleMetadata::author, BBL_JSON_KEY_NAME, BBL_JSON_KEY_SETTING_ID, BBL_JSON_KEY_USER_ID, Slic3r::BundleMetadata::description, http_get(), Slic3r::BundleMetadata::id, json_to_map(), Slic3r::BundleMetadata::name, ORCA_JSON_KEY_UPDATE_TIME, Slic3r::BundleMetadata::updated_time, and Slic3r::BundleMetadata::version.
|
overridevirtual |
Retrieve slicing job info.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
| int Slic3r::OrcaCloudServiceAgent::get_subscribed_bundles | ( | std::vector< std::pair< std::string, std::string > > * | bundles, |
| std::vector< std::string > & | notfound, | ||
| std::vector< std::string > & | unauthorized ) |
References http_get().
|
overridevirtual |
Fetch publishing subtask information.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Fetch subtask information.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
inline |
References sync_state.
|
overridevirtual |
Get plate index for a cloud task.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Check if tracking is enabled.
Implements Slic3r::ICloudServiceAgent.
References enable_track, and state_mutex.
| bool Slic3r::OrcaCloudServiceAgent::get_use_encrypted_token_file | ( | ) | const |
References m_use_encrypted_token_file.
|
overridevirtual |
Return the avatar URL/path for the current user.
Implements Slic3r::ICloudServiceAgent.
References session, and session_mutex.
Referenced by build_login_cmd().
|
overridevirtual |
Return the backend-generated user ID for the current session.
Implements Slic3r::ICloudServiceAgent.
References session, and session_mutex.
Referenced by get_user_presets(), and request_setting_id().
|
overridevirtual |
Retrieve extended user profile info.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Return the display name for the current user.
Implements Slic3r::ICloudServiceAgent.
References session, and session_mutex.
Referenced by build_login_cmd().
|
overridevirtual |
Return the nickname for the current user.
Implements Slic3r::ICloudServiceAgent.
References session, and session_mutex.
Referenced by build_login_cmd().
|
overridevirtual |
Fetch all presets owned by the logged-in user.
| user_presets | Map populated with [type][setting_id] = json |
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_ERR_GET_SETTING_LIST_FAILED, BAMBU_NETWORK_ERR_INVALID_HANDLE, BAMBU_NETWORK_SUCCESS, BBL_JSON_KEY_NAME, BBL_JSON_KEY_SETTING_ID, BBL_JSON_KEY_USER_ID, get_user_id(), is_user_login(), json_to_map(), ORCA_JSON_KEY_UPDATE_TIME, save_sync_state(), state_mutex, sync_pull(), and sync_state.
|
overridevirtual |
Fetch aggregated print statistics.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_ERR_GET_SETTING_LIST_FAILED, BAMBU_NETWORK_SUCCESS, and http_get().
|
overridevirtual |
Query user's tasks/prints.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Return the version of the cloud service implementation.
Implements Slic3r::ICloudServiceAgent.
|
private |
References api_base_url, BAMBU_NETWORK_ERR_CONNECT_FAILED, BAMBU_NETWORK_SUCCESS, Slic3r::OrcaCloudServiceAgent::HttpResult::body, data_headers(), Slic3r::Http::del(), ensure_token_fresh(), get_access_token(), Slic3r::http, invoke_http_error_callback(), resolve_unauthorized(), Slic3r::OrcaCloudServiceAgent::HttpResult::status, Slic3r::OrcaCloudServiceAgent::HttpResult::success, and Slic3r::trace().
Referenced by delete_setting(), unsubscribe_bundle(), and unsubscribe_plugins().
|
private |
References api_base_url, BAMBU_NETWORK_ERR_CONNECT_FAILED, BAMBU_NETWORK_SUCCESS, Slic3r::OrcaCloudServiceAgent::HttpResult::body, data_headers(), ensure_token_fresh(), Slic3r::Http::get(), get_access_token(), Slic3r::http, invoke_http_error_callback(), resolve_unauthorized(), Slic3r::OrcaCloudServiceAgent::HttpResult::status, Slic3r::OrcaCloudServiceAgent::HttpResult::success, and Slic3r::trace().
Referenced by fetch_mine_manifests_into_descriptors(), fetch_plugin_changelogs(), fetch_subscribed_manifests_into_descriptors(), get_shared_bundle(), get_subscribed_bundles(), get_user_print_info(), and sync_pull().
|
private |
References api_base_url, BAMBU_NETWORK_ERR_CONNECT_FAILED, BAMBU_NETWORK_SUCCESS, Slic3r::OrcaCloudServiceAgent::HttpResult::body, data_headers(), ensure_token_fresh(), get_access_token(), Slic3r::http, invoke_http_error_callback(), Slic3r::Http::post(), resolve_unauthorized(), Slic3r::OrcaCloudServiceAgent::HttpResult::status, Slic3r::OrcaCloudServiceAgent::HttpResult::success, and Slic3r::trace().
Referenced by get_plugin_download_url(), subscribe_plugin(), and sync_push().
|
private |
References auth_base_url, auth_headers, extra_headers, headers_mutex, Slic3r::http, Slic3r::Http::post(), session, session_mutex, state_mutex, and Slic3r::trace().
Referenced by user_logout().
|
private |
References auth_base_url, auth_headers, extra_headers, headers_mutex, Slic3r::http, Slic3r::Http::post(), state_mutex, Slic3r::auth_constants::TOKEN_PATH, and Slic3r::trace().
Referenced by exchange_auth_code(), and refresh_session_with_token().
|
private |
References api_base_url, BAMBU_NETWORK_ERR_CONNECT_FAILED, BAMBU_NETWORK_SUCCESS, Slic3r::OrcaCloudServiceAgent::HttpResult::body, data_headers(), ensure_token_fresh(), get_access_token(), Slic3r::http, invoke_http_error_callback(), Slic3r::Http::put(), resolve_unauthorized(), Slic3r::OrcaCloudServiceAgent::HttpResult::status, Slic3r::OrcaCloudServiceAgent::HttpResult::success, and Slic3r::trace().
|
overridevirtual |
Initialize the logging backend for the agent. Call after set_config_dir() so logs have a destination.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
private |
References on_http_error_fn, Slic3r::ORCA_CLOUD_PROVIDER(), queue_on_main_fn, and state_mutex.
Referenced by http_delete(), http_get(), http_post(), http_put(), request_web_session_handoff(), run_health_check(), and sync_push().
|
private |
References on_server_connected_fn, Slic3r::ORCA_CLOUD_PROVIDER(), queue_on_main_fn, and state_mutex.
Referenced by run_health_check().
|
inline |
References refresh_running.
|
overridevirtual |
Return whether the server is currently reachable.
Implements Slic3r::ICloudServiceAgent.
References is_connected, and state_mutex.
|
overridevirtual |
Check whether a valid authenticated session exists.
Implements Slic3r::ICloudServiceAgent.
References session, and session_mutex.
Referenced by build_login_cmd(), and get_user_presets().
|
private |
Referenced by get_shared_bundle(), and get_user_presets().
| void Slic3r::OrcaCloudServiceAgent::load_sync_state | ( | ) |
References state_mutex, sync_state, and sync_state_path.
Referenced by set_user_session().
| bool Slic3r::OrcaCloudServiceAgent::load_user_secret | ( | std::string & | out_secret | ) |
References compute_fallback_path(), m_use_encrypted_token_file, persist_user_secret(), secret_fallback_path, and secret_stored.
Referenced by refresh_from_storage(), refresh_session_with_token(), and start().
|
private |
|
overridevirtual |
Update printer name in cloud profile.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
| void Slic3r::OrcaCloudServiceAgent::persist_user_secret | ( | const std::string & | secret | ) |
References clear_user_secret(), compute_fallback_path(), m_use_encrypted_token_file, secret_fallback_path, secret_stored, and Slic3r::write_file_atomically().
Referenced by load_user_secret(), and set_user_session().
| const OrcaCloudServiceAgent::PkceBundle & Slic3r::OrcaCloudServiceAgent::pkce | ( | ) |
References pkce_bundle, and regenerate_pkce().
Referenced by build_login_cmd().
|
overridevirtual |
Submit a review for a marketplace design.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Upload rating images to OSS.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Update or create a preset with a known setting_id.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_ERR_PUT_SETTING_FAILED, BAMBU_NETWORK_SUCCESS, IOT_JSON_KEY_UPDATED_TIME, and sync_push().
|
overridevirtual |
Query binding status for multiple devices.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
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.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_ERR_CANCELED, BAMBU_NETWORK_ERR_CONNECTION_TO_SERVER_FAILED, BAMBU_NETWORK_SUCCESS, health_check_running, health_check_stopped, health_check_thread, and run_health_check().
| RefreshResult Slic3r::OrcaCloudServiceAgent::refresh_from_storage | ( | const std::string & | reason, |
| bool | async = false ) |
References Slic3r::AuthRejected, get_refresh_token(), load_user_secret(), Slic3r::parse_stored_secret(), refresh_now(), and token_lock_path().
Referenced by attempt_refresh_after_unauthorized(), and refresh_if_expiring().
| bool Slic3r::OrcaCloudServiceAgent::refresh_if_expiring | ( | std::chrono::seconds | skew, |
| const std::string & | reason ) |
References Slic3r::AuthRejected, refresh_from_storage(), refresh_running, session_mutex, should_refresh_locked(), and Slic3r::Success.
Referenced by ensure_token_fresh().
| RefreshResult Slic3r::OrcaCloudServiceAgent::refresh_now | ( | const std::string & | refresh_token, |
| const std::string & | reason, | ||
| bool | async = false ) |
References Slic3r::AuthRejected, refresh_running, refresh_session_with_token(), refresh_thread, and Slic3r::Transient.
Referenced by refresh_from_storage(), and start().
| RefreshResult Slic3r::OrcaCloudServiceAgent::refresh_session_with_token | ( | const std::string & | refresh_token, |
| const std::string & | reason = "" ) |
References agent_start_epoch, auth_base_url, Slic3r::classify_refresh_result(), Slic3r::extract_error_code(), http_post_token(), last_refresh_success_epoch, load_user_secret(), Slic3r::now_epoch_seconds(), Slic3r::parse_stored_secret(), session, session_handler, session_mutex, set_user_session(), and Slic3r::auth_constants::TOKEN_PATH.
Referenced by refresh_now().
| void Slic3r::OrcaCloudServiceAgent::regenerate_pkce | ( | ) |
References Slic3r::auth_constants::LOOPBACK_PATH, and pkce_bundle.
Referenced by OrcaCloudServiceAgent(), build_login_cmd(), pkce(), and start().
|
overridevirtual |
Request a new preset identifier from the server.
Implements Slic3r::ICloudServiceAgent.
References generate_uuid_for_setting_id(), get_user_id(), IOT_JSON_KEY_UPDATED_TIME, IOT_PRINT_TYPE_STRING, and sync_push().
| int Slic3r::OrcaCloudServiceAgent::request_web_session_handoff | ( | std::string & | token_hash, |
| std::string & | error_code, | ||
| unsigned int & | http_code ) |
References api_base_url, BAMBU_NETWORK_ERR_CONNECT_FAILED, BAMBU_NETWORK_SUCCESS, Slic3r::OrcaCloudServiceAgent::HttpResult::body, data_headers(), ensure_token_fresh(), get_access_token(), Slic3r::handoff_error_code(), Slic3r::http, invoke_http_error_callback(), Slic3r::Http::post(), resolve_unauthorized(), Slic3r::OrcaCloudServiceAgent::HttpResult::status, Slic3r::OrcaCloudServiceAgent::HttpResult::success, and Slic3r::trace().
|
private |
References attempt_refresh_after_unauthorized(), Slic3r::OrcaCloudServiceAgent::HttpResult::status, Slic3r::Success, and Slic3r::Transient.
Referenced by http_delete(), http_get(), http_post(), http_put(), and request_web_session_handoff().
|
private |
References api_base_url, Slic3r::OrcaCloudServiceAgent::HttpResult::body, data_headers(), Slic3r::Http::get(), Slic3r::http, invoke_http_error_callback(), invoke_server_connected_callback(), is_connected, state_mutex, Slic3r::OrcaCloudServiceAgent::HttpResult::status, and Slic3r::OrcaCloudServiceAgent::HttpResult::success.
Referenced by connect_server(), and refresh_connection().
| void Slic3r::OrcaCloudServiceAgent::save_sync_state | ( | ) |
References state_mutex, sync_state, sync_state_path, and Slic3r::write_file_atomically().
Referenced by get_setting_list2(), and get_user_presets().
| void Slic3r::OrcaCloudServiceAgent::set_api_base_url | ( | const std::string & | url | ) |
References api_base_url.
| void Slic3r::OrcaCloudServiceAgent::set_auth_base_url | ( | const std::string & | url | ) |
References auth_base_url.
|
overridevirtual |
Register the client certificate file for TLS authentication. May be unused by some implementations (e.g., OrcaCloudServiceAgent).
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
| void Slic3r::OrcaCloudServiceAgent::set_cloud_base_url | ( | const std::string & | url | ) |
References cloud_base_url.
|
overridevirtual |
Provide the writable configuration directory for storing auth state. Must be called before start().
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS, config_dir, secret_fallback_path, and Slic3r::secret_constants::USER_SECRET_FILENAME.
|
overridevirtual |
Set the country code for region-specific backend selection.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS, and country_code.
|
overridevirtual |
Provide country code getter callback.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS, get_country_code_fn, and state_mutex.
|
overridevirtual |
Register HTTP error callback.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS, on_http_error_fn, and state_mutex.
| void Slic3r::OrcaCloudServiceAgent::set_on_login_complete_handler | ( | OnLoginCompleteHandler | handler | ) |
References on_login_complete_handler.
|
overridevirtual |
Register server connection status callback.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS, on_server_connected_fn, and state_mutex.
|
overridevirtual |
Provide main thread queue callback.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS, queue_on_main_fn, and state_mutex.
| void Slic3r::OrcaCloudServiceAgent::set_session_handler | ( | SessionHandler | handler | ) |
References session_handler.
| void Slic3r::OrcaCloudServiceAgent::set_use_encrypted_token_file | ( | bool | use | ) |
References m_use_encrypted_token_file.
| bool Slic3r::OrcaCloudServiceAgent::set_user_session | ( | const nlohmann::json & | session_json, |
| bool | notify_login = true ) |
References on_login_complete_handler, and set_user_session().
| bool Slic3r::OrcaCloudServiceAgent::set_user_session | ( | const std::string & | token, |
| const std::string & | user_id, | ||
| const std::string & | username, | ||
| const std::string & | nickname, | ||
| const std::string & | avatar, | ||
| const std::string & | refresh_token = "", | ||
| bool | persist = true ) |
References config_dir, decode_jwt_expiry(), load_sync_state(), persist_user_secret(), session, session_mutex, and sync_state_path.
Referenced by change_user(), refresh_session_with_token(), set_user_session(), and start().
|
private |
References session.
Referenced by refresh_if_expiring().
|
overridevirtual |
Start the agent, performing any expensive initialization. Typically regenerates PKCE bundles and attempts silent sign-in.
Implements Slic3r::ICloudServiceAgent.
References Slic3r::OrcaCloudServiceAgent::SessionInfo::access_token, BAMBU_NETWORK_SUCCESS, load_user_secret(), Slic3r::OrcaCloudServiceAgent::SessionInfo::logged_in, Slic3r::parse_stored_secret(), refresh_now(), Slic3r::OrcaCloudServiceAgent::SessionInfo::refresh_token, regenerate_pkce(), set_user_session(), Slic3r::OrcaCloudServiceAgent::SessionInfo::user_avatar, Slic3r::OrcaCloudServiceAgent::SessionInfo::user_id, Slic3r::OrcaCloudServiceAgent::SessionInfo::user_name, and Slic3r::OrcaCloudServiceAgent::SessionInfo::user_nickname.
|
overridevirtual |
Run multi-stage publishing workflow.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Subscribe to a logical module (e.g., "printer", "user").
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS, and Slic3r::module().
| void Slic3r::OrcaCloudServiceAgent::stop_health_check | ( | ) |
References health_check_stopped, and health_check_thread.
Referenced by ~OrcaCloudServiceAgent().
|
overridevirtual |
Stop listening to a formerly subscribed module.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS, and Slic3r::module().
| int Slic3r::OrcaCloudServiceAgent::subscribe_plugin | ( | const std::string & | plugin_uuid | ) |
References http_post().
|
private |
References BAMBU_NETWORK_ERR_GET_SETTING_LIST_FAILED, BAMBU_NETWORK_ERR_INVALID_RESULT, BAMBU_NETWORK_SUCCESS, clear_sync_state(), Slic3r::ProfileUpsert::content, Slic3r::ProfileUpsert::created_time, Slic3r::SyncPullResponse::deletes, http_get(), Slic3r::ProfileUpsert::id, Slic3r::ProfileUpsert::name, Slic3r::SyncPullResponse::next_cursor, ORCA_JSON_KEY_CREATED_TIME, ORCA_JSON_KEY_UPDATE_TIME, sync_state, Slic3r::ProfileUpsert::updated_time, and Slic3r::SyncPullResponse::upserts.
Referenced by get_setting_list2(), and get_user_presets().
| SyncPushResult Slic3r::OrcaCloudServiceAgent::sync_push | ( | const std::string & | profile_id, |
| const std::string & | name, | ||
| const nlohmann::json & | content, | ||
| const std::string & | original_updated_time = "", | ||
| bool | force = false ) |
References Slic3r::SyncPushResult::conflict_code, Slic3r::SyncPushResult::error_message, Slic3r::SyncPushResult::http_code, http_post(), Slic3r::ProfileUpsert::id, invoke_http_error_callback(), Slic3r::ProfileUpsert::name, Slic3r::SyncPushResult::new_updated_time, ORCA_JSON_KEY_UPDATE_TIME, Slic3r::SyncPushResult::server_deleted, Slic3r::SyncPushResult::server_version, Slic3r::SyncPushResult::success, and Slic3r::ProfileUpsert::updated_time.
Referenced by put_setting(), and request_setting_id().
|
private |
References config_dir.
Referenced by refresh_from_storage().
|
overridevirtual |
Enable/disable telemetry.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS, enable_track, and state_mutex.
|
overridevirtual |
Report a custom analytics event.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Read a tracked user property.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Set telemetry headers.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Delete telemetry files.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
|
overridevirtual |
Update a tracked user property.
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_SUCCESS.
| bool Slic3r::OrcaCloudServiceAgent::unsubscribe_bundle | ( | const std::string & | bundle_id | ) |
References http_delete().
| int Slic3r::OrcaCloudServiceAgent::unsubscribe_plugins | ( | const std::vector< std::string > & | plugin_uuids | ) |
References http_delete(), and Slic3r::Http::url_encode().
|
private |
References Slic3r::auth_constants::LOOPBACK_PATH, and pkce_bundle.
Referenced by OrcaCloudServiceAgent(), and build_login_cmd().
|
overridevirtual |
Terminate the current session.
| request | If true, also notify the backend to invalidate the session. |
Implements Slic3r::ICloudServiceAgent.
References BAMBU_NETWORK_ERR_INVALID_HANDLE, BAMBU_NETWORK_SUCCESS, clear_session(), http_post_auth(), Slic3r::auth_constants::LOGOUT_PATH, session, and session_mutex.
|
private |
Referenced by refresh_session_with_token().
|
private |
|
private |
|
private |
Referenced by OrcaCloudServiceAgent(), build_login_cmd(), configure_urls(), data_headers(), http_post_auth(), and http_post_token().
|
mutableprivate |
|
private |
|
private |
Referenced by set_config_dir(), set_user_session(), and token_lock_path().
|
private |
Referenced by get_oss_config(), and set_country_code().
|
private |
Referenced by get_track_enable(), and track_enable().
|
private |
Referenced by data_headers(), http_post_auth(), and http_post_token().
|
private |
Referenced by set_get_country_code_fn().
|
mutableprivate |
Referenced by data_headers(), http_post_auth(), and http_post_token().
|
private |
Referenced by refresh_connection().
|
private |
Referenced by refresh_connection(), and stop_health_check().
|
private |
Referenced by refresh_connection(), and stop_health_check().
|
private |
Referenced by is_server_connected(), and run_health_check().
|
private |
Referenced by refresh_session_with_token().
|
private |
Referenced by OrcaCloudServiceAgent().
|
private |
Referenced by clear_user_secret(), configure_urls(), get_use_encrypted_token_file(), load_user_secret(), persist_user_secret(), and set_use_encrypted_token_file().
|
private |
Referenced by enable_multi_machine().
|
private |
Referenced by invoke_http_error_callback(), and set_on_http_error_fn().
|
private |
Referenced by set_on_login_complete_handler(), and set_user_session().
|
private |
Referenced by invoke_server_connected_callback(), and set_on_server_connected_fn().
|
private |
Referenced by OrcaCloudServiceAgent(), change_user(), exchange_auth_code(), pkce(), regenerate_pkce(), and update_redirect_uri().
|
private |
Referenced by invoke_http_error_callback(), invoke_server_connected_callback(), and set_queue_on_main_fn().
|
private |
Referenced by is_refresh_running(), refresh_if_expiring(), and refresh_now().
|
private |
Referenced by ~OrcaCloudServiceAgent(), and refresh_now().
|
private |
Referenced by clear_user_secret(), compute_fallback_path(), load_user_secret(), persist_user_secret(), and set_config_dir().
|
private |
Referenced by clear_user_secret(), load_user_secret(), and persist_user_secret().
|
private |
Referenced by build_login_info(), build_web_session_start_url(), clear_session(), get_access_token(), get_refresh_token(), get_user_avatar(), get_user_id(), get_user_name(), get_user_nickname(), http_post_auth(), is_user_login(), refresh_session_with_token(), set_user_session(), should_refresh_locked(), and user_logout().
|
private |
Referenced by refresh_session_with_token(), and set_session_handler().
|
mutableprivate |
Referenced by build_login_info(), build_web_session_start_url(), clear_session(), get_access_token(), get_refresh_token(), get_user_avatar(), get_user_id(), get_user_name(), get_user_nickname(), http_post_auth(), is_user_login(), refresh_if_expiring(), refresh_session_with_token(), set_user_session(), and user_logout().
|
mutableprivate |
Referenced by build_login_cmd(), clear_sync_state(), data_headers(), enable_multi_machine(), exchange_auth_code(), get_setting_list2(), get_track_enable(), get_user_presets(), http_post_auth(), http_post_token(), invoke_http_error_callback(), invoke_server_connected_callback(), is_server_connected(), load_sync_state(), run_health_check(), save_sync_state(), set_get_country_code_fn(), set_on_http_error_fn(), set_on_server_connected_fn(), set_queue_on_main_fn(), and track_enable().
|
private |
Referenced by clear_sync_state(), get_setting_list2(), get_sync_state(), get_user_presets(), load_sync_state(), save_sync_state(), and sync_pull().
|
private |
Referenced by clear_sync_state(), load_sync_state(), save_sync_state(), and set_user_session().