The Wayland::Registry class wraps wl_registry handling. It keeps track of the interfaces in the registry and emits signals whenever a known interface gets announced or removed. So far it only tracks the interfaces which are used and needed by KWin.