#pragma once #include #include "WaylandProtocol.hpp" #include "protocols/core/Compositor.hpp" #include "frog-color-management-v1.hpp" class CFrogColorManager { public: CFrogColorManager(SP resource_); bool good(); private: SP resource; }; class CFrogColorManagementSurface { public: CFrogColorManagementSurface(SP resource_, SP surface_); bool good(); wl_client* client(); WP self; WP surface; bool pqIntentSent = false; private: SP resource; wl_client* pClient = nullptr; }; class CFrogColorManagementProtocol : public IWaylandProtocol { public: CFrogColorManagementProtocol(const wl_interface* iface, const int& ver, const std::string& name); virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id); private: void destroyResource(CFrogColorManager* resource); void destroyResource(CFrogColorManagementSurface* resource); std::vector> m_vManagers; std::vector> m_vSurfaces; friend class CFrogColorManager; friend class CFrogColorManagementSurface; }; namespace PROTO { inline UP frogColorManagement; };