Descriptors to be cached.
More...
#include <src/gui/backend/cached_plugin_descriptors.h>
|
| void | serialize_to_file () |
| | Serializes the cached descriptors to the standard file.
|
| |
| void | serialize_to_file_no_throw () |
| | Wrapper over serialize_to_file that ignores exceptions.
|
| |
|
bool | is_blacklisted (std::string_view sha1) |
| | Returns if the plugin with the given sha1 is blacklisted or not.
|
| |
|
std::vector< std::unique_ptr< PluginDescriptor > > | get_valid_descriptors_for_sha1 (std::string_view sha1) |
| | Returns found non-blacklisted descriptors.
|
| |
| bool | contains_sha1 (std::string_view sha1, bool check_valid, bool check_blacklisted) |
| | Returns whether the given sha1 is in the cache.
|
| |
| bool | contains_valid_sha1 (auto sha1) |
| |
| bool | contains_blacklisted_sha1 (auto sha1) |
| |
| void | blacklist (std::string_view sha1, bool serialize) |
| | Appends a descriptor to the cache.
|
| |
| void | add (const PluginDescriptor &descr, bool serialize) |
| | Appends a descriptor to the cache.
|
| |
|
void | clear () |
| | Clears the descriptors and removes the cache file.
|
| |
Descriptors to be cached.
Definition at line 20 of file cached_plugin_descriptors.h.
◆ add()
| void zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::add |
( |
const PluginDescriptor & | descr, |
|
|
bool | serialize ) |
Appends a descriptor to the cache.
- Parameters
-
| serialize | Whether to serialize the updated cache now. |
◆ blacklist()
| void zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::blacklist |
( |
std::string_view | sha1, |
|
|
bool | serialize ) |
Appends a descriptor to the cache.
- Parameters
-
| serialize | Whether serialize the updated cache now. |
◆ contains_blacklisted_sha1()
| bool zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::contains_blacklisted_sha1 |
( |
auto | sha1 | ) |
|
|
inline |
◆ contains_sha1()
| bool zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::contains_sha1 |
( |
std::string_view | sha1, |
|
|
bool | check_valid, |
|
|
bool | check_blacklisted ) |
Returns whether the given sha1 is in the cache.
- Parameters
-
◆ contains_valid_sha1()
| bool zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::contains_valid_sha1 |
( |
auto | sha1 | ) |
|
|
inline |
◆ get_document_type()
| static constexpr auto zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::get_document_type |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ get_format_major_version()
| static constexpr int zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::get_format_major_version |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ get_format_minor_version()
| static constexpr int zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::get_format_minor_version |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ read_or_new()
| static std::unique_ptr< CachedPluginDescriptors > zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::read_or_new |
( |
| ) |
|
|
static |
Returns a new instance with the cache pre-filled from the cache file, or an empty instance if there is no file or an error occurred.
- Returns
- std::unique_ptr<CachedPluginDescriptors>
◆ serialize_to_file()
| void zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::serialize_to_file |
( |
| ) |
|
Serializes the cached descriptors to the standard file.
- Exceptions
-
◆ serialize_to_file_no_throw()
| void zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::serialize_to_file_no_throw |
( |
| ) |
|
|
inline |
◆ to_json
◆ blacklisted_sha1s_
| std::vector<std::string> zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::blacklisted_sha1s_ |
◆ descriptors_
| std::vector<std::unique_ptr<PluginDescriptor> > zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::descriptors_ |
◆ kBlacklistedSha1sKey
| auto zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::kBlacklistedSha1sKey = "blacklistedSha1s"sv |
|
staticconstexpr |
◆ kDescriptorsKey
| auto zrythm::gui::old_dsp::plugins::CachedPluginDescriptors::kDescriptorsKey = "descriptors"sv |
|
staticconstexpr |
The documentation for this class was generated from the following file: