File indexing completed on 2024-05-05 03:49:17
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org> 0004 // 0005 0006 #ifndef MARBLE_DECLARATIVE_PLUGIN_H 0007 #define MARBLE_DECLARATIVE_PLUGIN_H 0008 0009 #include "marble_declarative_export.h" 0010 0011 #include <QQmlExtensionPlugin> 0012 0013 /** 0014 * Registers MarbleQuickItem, MarbleRunnerManager and MarbleThemeManager 0015 * as QQml extensions for use in QML. 0016 */ 0017 class MARBLE_DECLARATIVE_EXPORT MarbleDeclarativePlugin : public QQmlExtensionPlugin 0018 { 0019 // Disabled for now while libmarbledeclarative is used as shared library 0020 // Q_PLUGIN_METADATA(IID "org.kde.marble.MarbleDeclarativePlugin") 0021 Q_OBJECT 0022 public: 0023 /** Overriding QQmlExtensionPlugin to register types */ 0024 void registerTypes( const char *uri ) override; 0025 0026 void initializeEngine( QQmlEngine *engine, const char *) override; 0027 }; 0028 0029 #endif