Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
Factory.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <QObject>
7
8#include <memory>
9
10#include "phosphorshortcuts_export.h"
11
13
14class IBackend;
15
37
51PHOSPHORSHORTCUTS_EXPORT std::unique_ptr<IBackend> createBackend(BackendHint hint = BackendHint::Auto,
52 QObject* parent = nullptr);
53
54} // namespace PhosphorShortcuts
Pluggable global shortcut backend.
Definition IBackend.h:32
Definition Factory.h:12
PHOSPHORSHORTCUTS_EXPORT std::unique_ptr< IBackend > createBackend(BackendHint hint=BackendHint::Auto, QObject *parent=nullptr)
Create a backend instance.
BackendHint
Backend selection hint for createBackend().
Definition Factory.h:23
@ Auto
Detect via session bus service introspection.
Definition Factory.h:24
@ Portal
Force XDG Desktop Portal GlobalShortcuts.
Definition Factory.h:27
@ KGlobalAccel
Force KGlobalAccel.
Definition Factory.h:25
@ Native
Reserved for the future INativeGrabber-backed backend.
Definition Factory.h:29
@ DBusTrigger
Force D-Bus trigger fallback.
Definition Factory.h:28