2024-11-27 20:44:36 +01:00
|
|
|
#include "StorageItemRoot.h"
|
|
|
|
|
|
|
|
StorageItemRoot::StorageItemRoot(const std::string_view plugin_name) : StorageSubItem(plugin_name), mPluginName(plugin_name) {
|
|
|
|
}
|
|
|
|
|
|
|
|
[[nodiscard]] const std::string &StorageItemRoot::getPluginId() const {
|
|
|
|
return mPluginName;
|
|
|
|
}
|
|
|
|
|
|
|
|
void StorageItemRoot::wipe() {
|
|
|
|
mSubCategories.clear();
|
|
|
|
mItems.clear();
|
2025-01-25 22:20:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void StorageItemRoot::migrate(StorageItemRoot &&other) {
|
|
|
|
mPluginName = std::move(other.mPluginName);
|
|
|
|
mSubCategories = std::move(other.mSubCategories);
|
|
|
|
mItems = std::move(other.mItems);
|
2024-11-27 20:44:36 +01:00
|
|
|
}
|