Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
ControlModule.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
5#include <QtPlugin>
6
7namespace PhosphorControl {
8
9class ModuleContext;
10
13inline constexpr int ControlModuleApiVersion = 1;
14
28{
29public:
30 virtual ~IControlModule() = default;
31
49 virtual void registerInto(ModuleContext& context) = 0;
50};
51
52} // namespace PhosphorControl
53
56#define PhosphorControlModule_iid "org.phosphor_works.PhosphorControl.Module/1"
#define PhosphorControlModule_iid
The interface id of a control module.
Definition ControlModule.h:56
The root object of a control module.
Definition ControlModule.h:28
virtual ~IControlModule()=default
virtual void registerInto(ModuleContext &context)=0
Register this module's page controllers, headless staging domains and extension sections.
What the host hands a module while it loads (IControlModule::registerInto).
Definition ModuleContext.h:53
Definition ApplicationController.h:21
constexpr int ControlModuleApiVersion
The ApiVersion a control module's metadata declares, and the version the PhosphorControlModule_iid be...
Definition ControlModule.h:13