Hyprland/src/protocols/XDGBell.hpp
davc0n 9cd5b25745
protocols: refactor class member vars (u-z) (#10282)
* protocols: refactor class member vars (u-z)

* protocols: fix clang format
2025-05-04 23:39:00 +02:00

34 lines
803 B
C++

#pragma once
#include <vector>
#include "WaylandProtocol.hpp"
#include "xdg-system-bell-v1.hpp"
class CXDGSystemBellManagerResource {
public:
CXDGSystemBellManagerResource(UP<CXdgSystemBellV1>&& resource);
bool good();
private:
UP<CXdgSystemBellV1> m_resource;
};
class CXDGSystemBellProtocol : public IWaylandProtocol {
public:
CXDGSystemBellProtocol(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(CXDGSystemBellManagerResource* res);
//
std::vector<UP<CXDGSystemBellManagerResource>> m_managers;
friend class CXDGSystemBellManagerResource;
};
namespace PROTO {
inline UP<CXDGSystemBellProtocol> xdgBell;
};