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

Go to the source code of this file.

Classes

struct  Slic3r::PluginDownloadData
struct  Slic3r::PluginDownloadNotFound
struct  Slic3r::ProfileUpsert
struct  Slic3r::SyncPullResponse
struct  Slic3r::SyncPushResult
struct  Slic3r::SyncState
class  Slic3r::OrcaCloudServiceAgent
struct  Slic3r::OrcaCloudServiceAgent::SessionInfo
struct  Slic3r::OrcaCloudServiceAgent::PkceBundle
struct  Slic3r::OrcaCloudServiceAgent::HttpResult

Namespaces

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

Macros

#define ORCA_SYNC_STRUCTS_DEFINED

Enumerations

enum class  Slic3r::RefreshResult { Slic3r::Success , Slic3r::AuthRejected , Slic3r::Transient }

Variables

constexpr int Slic3r::auth_constants::LOOPBACK_PORT = 41172
constexpr const char * Slic3r::auth_constants::LOOPBACK_PATH = "/callback"
constexpr const char * Slic3r::auth_constants::TOKEN_PATH = "/auth/v1/token"
constexpr const char * Slic3r::auth_constants::LOGOUT_PATH = "/auth/v1/logout"
constexpr const char * Slic3r::secret_constants::USER_SECRET_FILENAME = "orca_refresh_token.sec"

Class Documentation

◆ Slic3r::PluginDownloadData

struct Slic3r::PluginDownloadData
Collaboration diagram for Slic3r::PluginDownloadData:
Class Members
string download_link
string plugin_id
string requested_os
string returned_os

◆ Slic3r::PluginDownloadNotFound

struct Slic3r::PluginDownloadNotFound
Collaboration diagram for Slic3r::PluginDownloadNotFound:
Class Members
string id
string reason

◆ Slic3r::ProfileUpsert

struct Slic3r::ProfileUpsert
Collaboration diagram for Slic3r::ProfileUpsert:
Class Members
json content
long long created_time
string id
string name
long long updated_time

◆ Slic3r::SyncPullResponse

struct Slic3r::SyncPullResponse
Collaboration diagram for Slic3r::SyncPullResponse:
Class Members
vector< string > deletes
long long next_cursor
vector< ProfileUpsert > upserts

◆ Slic3r::SyncPushResult

struct Slic3r::SyncPushResult
Collaboration diagram for Slic3r::SyncPushResult:
Class Members
int conflict_code
string error_message
int http_code
long long new_updated_time
bool server_deleted
ProfileUpsert server_version
bool success

◆ Slic3r::SyncState

struct Slic3r::SyncState
Class Members
long long last_sync_timestamp

◆ Slic3r::OrcaCloudServiceAgent::SessionInfo

struct Slic3r::OrcaCloudServiceAgent::SessionInfo
Collaboration diagram for Slic3r::OrcaCloudServiceAgent::SessionInfo:
Class Members
string access_token
time_point expires_at {}
bool logged_in = false
string refresh_token
string user_avatar
string user_id
string user_name
string user_nickname

◆ Slic3r::OrcaCloudServiceAgent::PkceBundle

struct Slic3r::OrcaCloudServiceAgent::PkceBundle
Collaboration diagram for Slic3r::OrcaCloudServiceAgent::PkceBundle:
Class Members
string challenge
int loopback_port = auth_constants::LOOPBACK_PORT
string redirect
string state
string verifier

◆ Slic3r::OrcaCloudServiceAgent::HttpResult

struct Slic3r::OrcaCloudServiceAgent::HttpResult
Collaboration diagram for Slic3r::OrcaCloudServiceAgent::HttpResult:
Class Members
string body
unsigned int status {0}
bool success {false}

Macro Definition Documentation

◆ ORCA_SYNC_STRUCTS_DEFINED

#define ORCA_SYNC_STRUCTS_DEFINED