File indexing completed on 2024-11-24 04:59:27
0001 /* 0002 SPDX-FileCopyrightText: 2017 Marco Martin <mart@kde.org> 0003 SPDX-FileCopyrightText: 2021 Arjen Hiemstra <ahiemstra@heimr.nl> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef PLUGIN_H 0009 #define PLUGIN_H 0010 0011 #include <Kirigami/Platform/PlatformPluginFactory> 0012 #include <QObject> 0013 0014 class Plugin : public Kirigami::Platform::PlatformPluginFactory 0015 { 0016 Q_OBJECT 0017 0018 Q_PLUGIN_METADATA(IID PlatformPluginFactory_iid FILE "plugin.json") 0019 0020 Q_INTERFACES(Kirigami::Platform::PlatformPluginFactory) 0021 0022 public: 0023 explicit Plugin(QObject *parent = nullptr); 0024 ~Plugin() override; 0025 0026 Kirigami::Platform::PlatformTheme *createPlatformTheme(QObject *parent) override; 0027 Kirigami::Platform::Units *createUnits(QObject *parent) override; 0028 }; 0029 0030 #endif // PLUGIN_H