Kirigami2

kirigamiplugin.h
1 /*
2  * SPDX-FileCopyrightText: 2009 Alan Alpert <[email protected]>
3  * SPDX-FileCopyrightText: 2010 Ménard Alexis <[email protected]>
4  * SPDX-FileCopyrightText: 2010 Marco Martin <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.0-or-later
7  */
8 
9 #ifndef KIRIGAMIPLUGIN_H
10 #define KIRIGAMIPLUGIN_H
11 
12 #include <QUrl>
13 #include <QQmlEngine>
14 #include <QQmlExtensionPlugin>
15 
16 class KirigamiPlugin : public QQmlExtensionPlugin
17 {
18  Q_OBJECT
19  Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
20 
21 public:
22  KirigamiPlugin(QObject *parent = nullptr);
23  void registerTypes(const char *uri) override;
24  void initializeEngine(QQmlEngine *engine, const char *uri) override;
25 
26 #ifdef KIRIGAMI_BUILD_TYPE_STATIC
27  static KirigamiPlugin& getInstance();
28  static void registerTypes(QQmlEngine* engine = nullptr);
29 #endif
30 
31 Q_SIGNALS:
32  void languageChangeEvent();
33 
34 private:
35  QUrl componentUrl(const QString &fileName) const;
36 };
37 
38 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:14:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.