diff options
Diffstat (limited to 'hyprpm/src/core/DataState.hpp')
| -rw-r--r-- | hyprpm/src/core/DataState.hpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/hyprpm/src/core/DataState.hpp b/hyprpm/src/core/DataState.hpp index 70788f72..ebb550ba 100644 --- a/hyprpm/src/core/DataState.hpp +++ b/hyprpm/src/core/DataState.hpp @@ -1,4 +1,5 @@ #pragma once +#include <filesystem> #include <string> #include <vector> #include "Plugin.hpp" @@ -9,14 +10,15 @@ struct SGlobalState { }; namespace DataState { - std::string getDataStatePath(); - std::string getHeadersPath(); - void ensureStateStoreExists(); - void addNewPluginRepo(const SPluginRepository& repo); - void removePluginRepo(const std::string& urlOrName); - bool pluginRepoExists(const std::string& urlOrName); - void updateGlobalState(const SGlobalState& state); - SGlobalState getGlobalState(); - bool setPluginEnabled(const std::string& name, bool enabled); - std::vector<SPluginRepository> getAllRepositories(); + std::filesystem::path getDataStatePath(); + std::string getHeadersPath(); + std::vector<std::filesystem::path> getPluginStates(); + void ensureStateStoreExists(); + void addNewPluginRepo(const SPluginRepository& repo); + void removePluginRepo(const std::string& urlOrName); + bool pluginRepoExists(const std::string& urlOrName); + void updateGlobalState(const SGlobalState& state); + SGlobalState getGlobalState(); + bool setPluginEnabled(const std::string& name, bool enabled); + std::vector<SPluginRepository> getAllRepositories(); };
\ No newline at end of file |
