mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 05:31:59 -07:00
* Use std::filesystem::path in hyprpm DataState to avoid concatenating strings with (folder + "/" + file) * Added getPluginStates helper method in DataState * Small clang-tidy improvements
24 lines
1.0 KiB
C++
24 lines
1.0 KiB
C++
#pragma once
|
|
#include <filesystem>
|
|
#include <string>
|
|
#include <vector>
|
|
#include "Plugin.hpp"
|
|
|
|
struct SGlobalState {
|
|
std::string headersHashCompiled = "";
|
|
bool dontWarnInstall = false;
|
|
};
|
|
|
|
namespace DataState {
|
|
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();
|
|
}; |