Outsourced file related operations

This commit is contained in:
2025-06-10 16:45:58 +02:00
parent 0300b5d61d
commit abaa4038ca
4 changed files with 42 additions and 3 deletions

13
include/FileService.h Normal file
View File

@@ -0,0 +1,13 @@
#ifndef FILE_SERVICES_H
#define FILE_SERVICES_H
#include <string>
class FileServices {
public:
static bool doesNonEmptyFileExist(std::string);
static void emptyFile(std::string);
static void createOrOverwriteFile(std::string, std::string);
};
#endif

View File

@@ -16,6 +16,6 @@ class HyprlandService {
static void setClientFloating(Client&);
static void setClientTiled(Client&);
static void toggleClientFloating(Client&);
static std::string exec(const std::string& command);
static bool isFloatingRulePresent();
};
#endif