File indexing completed on 2025-01-05 03:59:27

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2011 Thibaut Gridel <tgridel@free.fr>
0004 // SPDX-FileCopyrightText: 2015 Dennis Nienhüser <nienhueser@kde.org>
0005 
0006 #include "KmlPlugin.h"
0007 
0008 #include <klocalizedstring.h>
0009 
0010 #include "KmlRunner.h"
0011 
0012 namespace Marble
0013 {
0014 
0015 KmlPlugin::KmlPlugin(QObject* const parent)
0016     : ParseRunnerPlugin( parent )
0017 {
0018 }
0019 
0020 QString KmlPlugin::name() const
0021 {
0022     return i18n( "KML File Parser" );
0023 }
0024 
0025 QString KmlPlugin::nameId() const
0026 {
0027     return QStringLiteral("Kml");
0028 }
0029 
0030 QString KmlPlugin::version() const
0031 {
0032     return QStringLiteral("1.2");
0033 }
0034 
0035 QString KmlPlugin::description() const
0036 {
0037     return i18n( "A plugin to load Geolocation Data from the KML and KMZ data file format." );
0038 }
0039 
0040 QString KmlPlugin::copyrightYears() const
0041 {
0042     return QStringLiteral("2011, 2013, 2015");
0043 }
0044 
0045 QVector<PluginAuthor> KmlPlugin::pluginAuthors() const
0046 {
0047     return QVector<PluginAuthor>()
0048             << PluginAuthor(QStringLiteral("Thibaut Gridel"), QStringLiteral("tgridel@free.fr"))
0049             << PluginAuthor(QStringLiteral("Dennis Nienhüser"), QStringLiteral("nienhueser@kde.org"));
0050 }
0051 
0052 QString KmlPlugin::fileFormatDescription() const
0053 {
0054     return i18n( "Google Earth KML" );
0055 }
0056 
0057 QStringList KmlPlugin::fileExtensions() const
0058 {
0059     return QStringList() << QStringLiteral("kml")
0060                          << QStringLiteral("kmz");
0061 }
0062 
0063 ParsingRunner* KmlPlugin::newRunner() const
0064 {
0065     return new KmlRunner;
0066 }
0067 
0068 } // namespace Marble
0069 
0070 #include "moc_KmlPlugin.cpp"