mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-26 17:10:13 +01:00
17 lines
499 B
C++
17 lines
499 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <memory>
|
||
|
|
#include <optional>
|
||
|
|
|
||
|
|
class CVersionKeeperManager {
|
||
|
|
public:
|
||
|
|
CVersionKeeperManager();
|
||
|
|
|
||
|
|
private:
|
||
|
|
std::optional<std::string> getDataHome();
|
||
|
|
std::optional<std::string> getDataLastVersion(const std::string& dataRoot);
|
||
|
|
void writeVersionToVersionFile(const std::string& dataRoot);
|
||
|
|
bool isVersionOlderThanRunning(const std::string& ver);
|
||
|
|
};
|
||
|
|
|
||
|
|
inline std::unique_ptr<CVersionKeeperManager> g_pVersionKeeperMgr;
|