blob: f36315bd2827f61a3dc9d6d526527362ca24d8ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#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;
};
|