OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
SimplyPrint.cpp File Reference
#include "SimplyPrint.hpp"
#include <boost/asio/ip/basic_endpoint.hpp>
#include <cstdint>
#include <ios>
#include <iomanip>
#include <cstdlib>
#include <algorithm>
#include <iterator>
#include <boost/algorithm/string/join.hpp>
#include <boost/filesystem/operations.hpp>
#include <exception>
#include <boost/log/trivial.hpp>
#include <boost/nowide/cstdio.hpp>
#include <functional>
#include <cstddef>
#include <cmath>
#include <cassert>
#include <boost/filesystem/fstream.hpp>
#include <openssl/sha.h>
#include <boost/beast/core/detail/base64.hpp>
#include <boost/nowide/fstream.hpp>
#include <boost/filesystem.hpp>
#include <string>
#include <sstream>
#include <vector>
#include <utility>
#include "slic3r/GUI/Jobs/OAuthJob.hpp"
#include <ostream>
#include <wx/string.h>
#include <wx/utils.h>
#include "PrintHost.hpp"
#include "nlohmann/json.hpp"
#include "libslic3r/Utils.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/format.hpp"
#include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/MainFrame.hpp"
Include dependency graph for SimplyPrint.cpp:

Go to the source code of this file.

Namespaces

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

Macros

#define URL_BASE_HOME   "https://simplyprint.io"
#define URL_BASE_API   "https://api.simplyprint.io"

Functions

static std::string Slic3r::generate_verification_code (int code_length=32)
static std::string Slic3r::sha256b64 (const std::string &inputStr)
static std::string Slic3r::url_encode (const std::vector< std::pair< std::string, std::string > > query)
static void Slic3r::set_auth (Http &http, const std::string &access_token)
static bool Slic3r::should_open_in_external_browser ()

Variables

static constexpr boost::asio::ip::port_type Slic3r::CALLBACK_PORT = 21328
static const std::string Slic3r::CALLBACK_URL = "http://localhost:21328/callback"
static const std::string Slic3r::RESPONSE_TYPE = "code"
static const std::string Slic3r::CLIENT_ID = "simplyprintorcaslicer"
static const std::string Slic3r::CLIENT_SCOPES = "user.read files.temp_upload"
static const std::string Slic3r::OAUTH_CREDENTIAL_PATH = "simplyprint_oauth.json"
static const std::string Slic3r::TOKEN_URL = URL_BASE_API"/oauth2/Token"
static constexpr uint64_t Slic3r::MAX_SINGLE_UPLOAD_FILE_SIZE = 100000000ull
static const std::string Slic3r::CHUNCK_RECEIVE_URL = URL_BASE_API"/0/files/ChunkReceive"

Macro Definition Documentation

◆ URL_BASE_API

#define URL_BASE_API   "https://api.simplyprint.io"

◆ URL_BASE_HOME

#define URL_BASE_HOME   "https://simplyprint.io"