Blender V5.3
remote_library.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "common.hh"
12
13#include "AS_asset_library.hh"
14
15namespace blender::asset_system {
16
22 std::string remote_url_;
23
24 public:
26 bool is_read_only,
30 void force_remote_listing_download() const override;
31
32 std::optional<eAssetImportMethod> import_method() const override;
33 std::optional<StringRefNull> remote_url() const override;
34 void refresh_catalogs() override;
35};
36
39 UserAssetLibraryWrapper user_library_;
40
41 public:
43 std::optional<AssetLibraryReference> library_reference() const override;
44 const bUserAssetLibrary *user_asset_library() const override;
45 std::optional<eAssetImportMethod> import_method() const override;
46 std::optional<StringRefNull> auth_token() const override;
47 bool is_enabled() const;
48};
49
50} // namespace blender::asset_system
eAssetLibraryType library_type() const
AssetLibrary(eAssetLibraryType library_type, bool is_read_only, StringRef name="", StringRef root_path="")
std::optional< AssetLibraryReference > library_reference() const override
PreferencesRemoteAssetLibrary(const bUserAssetLibrary &custom_library)
std::optional< StringRefNull > auth_token() const override
std::optional< eAssetImportMethod > import_method() const override
const bUserAssetLibrary * user_asset_library() const override
RemoteAssetLibrary(eAssetLibraryType library_type, bool is_read_only, StringRef remote_url, StringRef name, StringRef root_path)
std::optional< StringRefNull > remote_url() const override
std::optional< eAssetImportMethod > import_method() const override
void force_remote_listing_download() const override