Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
IBarWidgetPlugin.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3#pragma once
4
6#include <PhosphorRegistry/phosphorregistry_export.h>
7
8#include <QtCore/qtclasshelpermacros.h>
9#include <QtPlugin>
10
11#include <memory>
12
13namespace PhosphorRegistry {
14
25class PHOSPHORREGISTRY_EXPORT IBarWidgetPlugin
26{
27public:
28 virtual ~IBarWidgetPlugin() = default;
29 Q_DISABLE_COPY_MOVE(IBarWidgetPlugin)
30
31
36 [[nodiscard]] virtual std::unique_ptr<IBarWidgetFactory> createFactory() = 0;
37
38protected:
39 IBarWidgetPlugin() = default;
40};
41
42} // namespace PhosphorRegistry
43
44#define PhosphorRegistryBarWidgetPlugin_iid "org.phosphor_works.Lambent.BarWidget/1"
#define PhosphorRegistryBarWidgetPlugin_iid
Definition IBarWidgetPlugin.h:44
The root object of a bar-widget plugin.
Definition IBarWidgetPlugin.h:26
virtual std::unique_ptr< IBarWidgetFactory > createFactory()=0
A fresh factory whose id() equals the plugin's metadata "Id", or nullptr when it cannot be built.
Definition IBarWidgetFactory.h:16