Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorServiceNotifications Namespace Reference

Classes

class  Notification
 One live notification, decoded from an org.freedesktop.Notifications Notify call. More...
class  NotificationModel
 List model over a NotificationServer's live notifications. More...
class  NotificationServer
 The session-bus server for org.freedesktop.Notifications (Desktop Notifications Spec 1.3). More...

Functions

PHOSPHORSERVICENOTIFICATIONS_EXPORT void registerQmlTypes ()
 Register every PhosphorServiceNotifications QML type under the Phosphor.Service.Notifications module at version 1.0.

Function Documentation

◆ registerQmlTypes()

PHOSPHORSERVICENOTIFICATIONS_EXPORT void PhosphorServiceNotifications::registerQmlTypes ( )

Register every PhosphorServiceNotifications QML type under the Phosphor.Service.Notifications module at version 1.0.

Idempotent on repeat calls: internally guarded by std::call_once so a hot-reloading shell that builds a fresh QQmlEngine per reload can safely call this from every engine setup without triggering Qt's duplicate-registration warning.

Called from the consuming binary (typically phosphor-shell/src/main.cpp) before any QQmlEngine loads a .qml file. Keeping registration in the lib lets the consumer stay free of the type-registration boilerplate while still controlling when the types appear in their engine.