20#ifndef REMOTE_SYMBOL_IMPORT_UTILS_H
21#define REMOTE_SYMBOL_IMPORT_UTILS_H
26#include <wx/filename.h>
38 bool aLower =
false );
63 const wxString& aNickname,
bool aGlobalTable,
bool aStrict,
70 const wxString& aLibItemName, wxString& aError );
Schematic editor (Eeschema) main window.
bool PlaceRemoteDownloadedSymbol(SCH_EDIT_FRAME *aFrame, const wxString &aNickname, const wxString &aLibItemName, wxString &aError)
Place a symbol from a remote download into the schematic editor.
bool EnsureRemoteLibraryEntry(LIBRARY_TABLE_TYPE aTableType, const wxFileName &aLibraryPath, const wxString &aNickname, bool aGlobalTable, bool aStrict, wxString &aError)
Add or update a library table entry for a remote download library.
bool WriteRemoteBinaryFile(const wxFileName &aOutput, const std::vector< uint8_t > &aPayload, wxString &aError)
Write binary data to a file, creating parent directories as needed.
bool EnsureRemoteDestinationRoot(wxFileName &aOutDir, wxString &aError)
Resolve and create the configured destination root directory for remote symbol downloads.
wxString RemoteLibraryPrefix()
Return the configured (or default) library prefix for remote downloads, sanitized for use as a filena...
wxString SanitizeRemoteFileComponent(const wxString &aValue, const wxString &aDefault, bool aLower=false)
Replace non-alphanumeric characters (other than _ - .) with underscores.