2023-10-07 22:38:27 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "StorageSubItem.h"
|
2024-12-29 17:43:28 +01:00
|
|
|
|
2023-10-07 22:38:27 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class StorageItemRoot : public StorageSubItem {
|
|
|
|
public:
|
2024-11-27 20:44:36 +01:00
|
|
|
explicit StorageItemRoot(std::string_view plugin_name);
|
2023-10-07 22:38:27 +02:00
|
|
|
|
2024-11-27 20:44:36 +01:00
|
|
|
[[nodiscard]] const std::string &getPluginId() const;
|
2023-10-07 22:38:27 +02:00
|
|
|
|
2024-11-27 20:44:36 +01:00
|
|
|
void wipe();
|
2023-12-16 12:44:20 +01:00
|
|
|
|
2025-01-25 22:20:10 +01:00
|
|
|
void migrate(StorageItemRoot &&other);
|
|
|
|
|
2023-10-07 22:38:27 +02:00
|
|
|
private:
|
|
|
|
std::string mPluginName;
|
|
|
|
};
|