2022-12-05 17:05:15 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "../defines.hpp"
|
2024-07-27 10:02:02 -05:00
|
|
|
#include "../helpers/Monitor.hpp"
|
2024-06-11 17:17:45 +02:00
|
|
|
#include "../helpers/memory/Memory.hpp"
|
|
|
|
|
#include "../helpers/signal/Signal.hpp"
|
2024-06-09 22:28:51 +02:00
|
|
|
#include <unordered_map>
|
2022-12-05 17:05:15 +00:00
|
|
|
|
|
|
|
|
class CProtocolManager {
|
2022-12-16 17:17:31 +00:00
|
|
|
public:
|
2022-12-05 17:05:15 +00:00
|
|
|
CProtocolManager();
|
2024-07-24 12:07:36 -05:00
|
|
|
~CProtocolManager();
|
2022-12-05 17:05:15 +00:00
|
|
|
|
2024-06-09 22:28:51 +02:00
|
|
|
private:
|
|
|
|
|
std::unordered_map<std::string, CHyprSignalListener> m_mModeChangeListeners;
|
|
|
|
|
|
|
|
|
|
void onMonitorModeChange(CMonitor* pMonitor);
|
2022-12-05 17:05:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
inline std::unique_ptr<CProtocolManager> g_pProtocolManager;
|