Marble

MarbleDeclarativePlugin.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <[email protected]>
4 //
5 
6 #ifndef MARBLE_DECLARATIVE_PLUGIN_H
7 #define MARBLE_DECLARATIVE_PLUGIN_H
8 
9 #include "marble_declarative_export.h"
10 
11 #include <QQmlExtensionPlugin>
12 
13 /**
14  * Registers MarbleQuickItem, MarbleRunnerManager and MarbleThemeManager
15  * as QQml extensions for use in QML.
16  */
17 class MARBLE_DECLARATIVE_EXPORT MarbleDeclarativePlugin : public QQmlExtensionPlugin
18 {
19  // Disabled for now while libmarbledeclarative is used as shared library
20  // Q_PLUGIN_METADATA(IID "org.kde.marble.MarbleDeclarativePlugin")
21  Q_OBJECT
22 public:
23  /** Overriding QQmlExtensionPlugin to register types */
24  void registerTypes( const char *uri ) override;
25 
26  void initializeEngine( QQmlEngine *engine, const char *) override;
27 };
28 
29 #endif
Registers MarbleQuickItem, MarbleRunnerManager and MarbleThemeManager as QQml extensions for use in Q...
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Nov 29 2021 23:11:03 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.