#pragma once #include #include #include #include "WaylandProtocol.hpp" #include "viewporter.hpp" #include "../helpers/signal/Signal.hpp" class CWLSurfaceResource; class CViewportResource { public: CViewportResource(SP resource_, SP surface_); ~CViewportResource(); bool good(); void verify(); WP surface; private: SP resource; }; class CViewporterResource { public: CViewporterResource(SP resource_); bool good(); private: SP resource; }; class CViewporterProtocol : public IWaylandProtocol { public: CViewporterProtocol(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(CViewporterResource* resource); void destroyResource(CViewportResource* resource); // std::vector> m_vManagers; std::vector> m_vViewports; friend class CViewporterResource; friend class CViewportResource; }; namespace PROTO { inline UP viewport; };