Refactoring for better abstraction
This commit is contained in:
@@ -9,20 +9,29 @@
|
|||||||
class HyprlandService {
|
class HyprlandService {
|
||||||
private:
|
private:
|
||||||
static std::string configFilePath;
|
static std::string configFilePath;
|
||||||
public:
|
|
||||||
static void setConfigFilePath(std::string);
|
|
||||||
static std::string getConfigFilePath();
|
static std::string getConfigFilePath();
|
||||||
|
|
||||||
|
static std::list<Workspace> getWorkspaces();
|
||||||
|
static std::optional<Workspace> getWorkspace(int);
|
||||||
static Workspace getCurrentWorkspace();
|
static Workspace getCurrentWorkspace();
|
||||||
|
|
||||||
static std::list<Client> getClients();
|
static std::list<Client> getClients();
|
||||||
static std::list<Client> getClientsOnActiveWorkspace();
|
static std::list<Client> getClientsOnActiveWorkspace();
|
||||||
|
static Client getActiveClient();
|
||||||
|
|
||||||
|
static bool isFloatingRulePresent(int);
|
||||||
|
static bool isFloatingRulePresent(Workspace);
|
||||||
static std::list<WindowRule> getWindowRules();
|
static std::list<WindowRule> getWindowRules();
|
||||||
static std::optional<WindowRule> findConflictingRule(WindowRule);
|
static std::optional<WindowRule> findConflictingRule(WindowRule);
|
||||||
static void setFloatingRule(bool);
|
static void setFloatingRule(bool);
|
||||||
static void removeRule(WindowRule);
|
static void removeRule(WindowRule);
|
||||||
static void setClientFloating(Client&);
|
|
||||||
static void setClientTiled(Client&);
|
static void setClientFloating(Client);
|
||||||
static void toggleClientFloating(Client&);
|
static void setClientTiled(Client);
|
||||||
static bool isFloatingRulePresent();
|
public:
|
||||||
|
static void toggleFloating();
|
||||||
|
static void moveToWorkspace(int);
|
||||||
|
static void setConfigFilePath(std::string);
|
||||||
static WindowRule getActiveWorkspaceRule();
|
static WindowRule getActiveWorkspaceRule();
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user