OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
ICloudServiceAgent.hpp File Reference
#include "ICameraSignalingChannel.hpp"
#include "bambu_networking.hpp"
#include "CloudProvider.hpp"
#include "../../libslic3r/ProjectTask.hpp"
#include <string>
#include <map>
#include <vector>
#include <functional>
#include <memory>
Include dependency graph for ICloudServiceAgent.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Slic3r::CloudEvent
class  Slic3r::ICloudServiceAgent

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/

Typedefs

using Slic3r::AppOnServerConnectedFn = std::function<void(CloudEvent event, int return_code, int reason_code)>
using Slic3r::AppOnHttpErrorFn = std::function<void(CloudEvent event, unsigned http_code, std::string http_body)>

Class Documentation

◆ Slic3r::CloudEvent

struct Slic3r::CloudEvent

ICloudServiceAgent - Interface for authentication and cloud service operations.

This interface encapsulates all cloud-related functionality including authentication:

  • Lifecycle methods for agent initialization
  • User session management (login/logout)
  • Token access for dependent agents (IPrinterAgent)
  • Login UI command builders for WebView integration
  • Server connectivity and subscription management
  • Settings synchronization (presets upload/download)
  • Cloud user services (messages, tasks, firmware)
  • Model mall and publishing
  • Analytics and telemetry
  • Ratings and reviews

Implementations:

Token Sharing Pattern: IPrinterAgent receives an ICloudServiceAgent instance via set_cloud_agent() to access tokens for cloud-relay operations without coupling to a specific auth implementation.

Collaboration diagram for Slic3r::CloudEvent:
Class Members
string provider