mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-26 17:33:48 -07:00
* Nix: add hyprland-qtutils to PATH * flake.lock: update --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
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; |