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

Namespaces

namespace  detail

Classes

class  AuthRequest
 One active PolicyKit authentication request, decoded from polkit's initiateAuthentication callback. More...
class  PolkitAgent
 A PolicyKit authentication agent for Phosphor-based desktop shells. More...

Functions

PHOSPHORSERVICEPOLKIT_EXPORT void registerQmlTypes ()
 Register every PhosphorServicePolkit QML type under the Phosphor.Service.Polkit module at version 1.0.

Function Documentation

◆ registerQmlTypes()

PHOSPHORSERVICEPOLKIT_EXPORT void PhosphorServicePolkit::registerQmlTypes ( )

Register every PhosphorServicePolkit QML type under the Phosphor.Service.Polkit 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.