Blender V5.3
AS_remote_library.hh File Reference
#include <chrono>
#include <filesystem>
#include <optional>
#include "BLI_function_ref.hh"
#include "BLI_string_ref.hh"
#include "BLI_vector.hh"
#include "AS_asset_file_status.hh"

Go to the source code of this file.

Classes

struct  blender::asset_system::RemoteLibraryDefinitionRef
struct  blender::asset_system::URLWithHash
struct  blender::asset_system::OnlineAssetFile
struct  blender::asset_system::OnlineAssetInfo
class  blender::asset_system::RemoteLibraryLoadingStatus

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::asset_system

Functions

Other Free Functions
std::string blender::asset_system::remote_library_top_meta_file_path (const RemoteLibraryDefinitionRef &library)
bool blender::asset_system::remote_library_url_ends_with_top_meta_file_name (const StringRef url)
void blender::asset_system::foreach_registered_user_remote_library (FunctionRef< void(bUserAssetLibrary &)> fn)
Progress Tracking
float blender::asset_system::remote_library_total_asset_downloads_progress ()
bool blender::asset_system::remote_library_has_unfinished_asset_downloads ()
Download Requests
void blender::asset_system::remote_library_request_download (const RemoteLibraryDefinitionRef &library_definition)
void blender::asset_system::remote_library_cancel_all_listing_downloads (const bContext &C)
void blender::asset_system::remote_library_request_asset_download (const bContext &C, const AssetRepresentation &asset, ReportList *reports)
void blender::asset_system::remote_library_request_preview_download (const bContext &C, const AssetRepresentation &asset, const StringRef dst_filepath, ReportList *reports)
Download Cancelling
void blender::asset_system::remote_library_cancel_all_asset_downloads (bContext &C)
Cache Paths
std::string blender::asset_system::remote_library_cache_directory_path (StringRefNull library_dirname)
std::string blender::asset_system::remote_library_cache_directory_path_from_url (StringRef remote_url)
std::string blender::asset_system::remote_library_asset_preview_path (const AssetRepresentation &asset)

Variables

constexpr StringRefNull blender::asset_system::REMOTE_LIBRARY_TOP_META_FILE_NAME = "_asset-library-meta.json"
constexpr StringRefNull blender::asset_system::REMOTE_LIBRARY_TOP_META_FILE_NAME_LEADING_SLASH