OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
HMS.cpp File Reference
#include "HMS.hpp"
#include "GUI.hpp"
#include "GUI_App.hpp"
#include "DeviceManager.hpp"
#include "DeviceCore/DevManager.h"
#include "DeviceCore/DevUtil.h"
#include "Http.hpp"
#include <nlohmann/json.hpp>
#include "libslic3r/AppConfig.hpp"
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/directory.hpp>
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/log/trivial.hpp>
#include <unordered_set>
#include <string>
#include "libslic3r/Utils.hpp"
#include <fstream>
#include <ostream>
#include <wx/string.h>
#include <vector>
#include <cstdio>
#include <wx/image.h>
#include <mutex>
#include <ctime>
Include dependency graph for HMS.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 |/
namespace  Slic3r::GUI

Functions

static bool should_disable_hms ()
int Slic3r::GUI::get_hms_info_version (std::string &version)
static void Slic3r::GUI::_copy_dir (const fs::path &from_dir, const fs::path &to_dir)
std::string Slic3r::GUI::get_hms_wiki_url (std::string error_code)
std::string Slic3r::GUI::get_error_message (int error_code)

Variables

static const char * HMS_PATH = "hms"
static const char * HMS_LOCAL_IMG_PATH = "hms/local_image"
static std::unordered_set< std::string > package_dev_id_types {"094", "239", "093", "22E", "20P", "26A", "31B"}

Function Documentation

◆ should_disable_hms()

bool should_disable_hms ( )
static
40{
41 Slic3r::AppConfig* config = Slic3r::GUI::wxGetApp().app_config;
42 if (!config) return true;
43 return config->get_stealth_mode() || !config->get_bool("installed_networking");
44}
Definition AppConfig.hpp:100
bool get_stealth_mode()
Definition AppConfig.cpp:108
bool get_bool(const std::string &section, const std::string &key) const
Definition AppConfig.hpp:163

References Slic3r::AppConfig::get_bool(), and Slic3r::AppConfig::get_stealth_mode().

Referenced by Slic3r::GUI::HMSQuery::download_hms_related(), Slic3r::GUI::get_error_message(), Slic3r::GUI::get_hms_info_version(), Slic3r::GUI::get_hms_wiki_url(), and Slic3r::GUI::HMSQuery::query_print_image_action().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ HMS_LOCAL_IMG_PATH

const char* HMS_LOCAL_IMG_PATH = "hms/local_image"
static

◆ HMS_PATH

const char* HMS_PATH = "hms"
static

◆ package_dev_id_types

std::unordered_set<std::string> package_dev_id_types {"094", "239", "093", "22E", "20P", "26A", "31B"}
static
36{"094", "239", "093", "22E", "20P", "26A", "31B"};

Referenced by Slic3r::GUI::HMSQuery::init_hms_info().