Marble

MarbleDeclarativePlugin.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org>
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 */
17class 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
22public:
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...
virtual void initializeEngine(QQmlEngine *engine, const char *uri) override
virtual void registerTypes(const char *uri) override=0
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:00:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.