1 | /* |
2 | SPDX-FileCopyrightText: 2021 David Edmundson <davidedmundson@kde.org> |
3 | SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de> |
4 | SPDX-License-Identifier: LGPL-2.0-or-later |
5 | */ |
6 | |
7 | #include <QPluginLoader> |
8 | #include <optional> |
9 | |
10 | namespace KStaticPluginHelpers |
11 | { |
12 | /** |
13 | * This is an implementations detail since consumers should only interact with KPluginMetaData::findPlugin* |
14 | * to query the available plugins! |
15 | */ |
16 | std::optional<QStaticPlugin> findById(const QString &directory, const QString &pluginId); |
17 | /// Map of pluginId and actual plugin |
18 | QMap<QString, QStaticPlugin> staticPlugins(const QString &directory); |
19 | } |
20 | |