File indexing completed on 2024-06-09 03:50:45

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 #include "KmlRunner.h"
0008 
0009 namespace Marble
0010 {
0011 
0012 KmlPlugin::KmlPlugin( QObject *parent ) :
0013     ParseRunnerPlugin( parent )
0014 {
0015 }
0016 
0017 QString KmlPlugin::name() const
0018 {
0019     return tr( "KML File Parser" );
0020 }
0021 
0022 QString KmlPlugin::nameId() const
0023 {
0024     return QStringLiteral("Kml");
0025 }
0026 
0027 QString KmlPlugin::version() const
0028 {
0029     return QStringLiteral("1.2");
0030 }
0031 
0032 QString KmlPlugin::description() const
0033 {
0034     return tr( "Create GeoDataDocument from KML and KMZ Files" );
0035 }
0036 
0037 QString KmlPlugin::copyrightYears() const
0038 {
0039     return QStringLiteral("2011, 2013, 2015");
0040 }
0041 
0042 QVector<PluginAuthor> KmlPlugin::pluginAuthors() const
0043 {
0044     return QVector<PluginAuthor>()
0045             << PluginAuthor(QStringLiteral("Thibaut Gridel"), QStringLiteral("tgridel@free.fr"))
0046             << PluginAuthor(QStringLiteral("Dennis Nienhüser"), QStringLiteral("nienhueser@kde.org"));
0047 }
0048 
0049 QString KmlPlugin::fileFormatDescription() const
0050 {
0051     return tr( "Google Earth KML" );
0052 }
0053 
0054 QStringList KmlPlugin::fileExtensions() const
0055 {
0056     return QStringList() << QStringLiteral("kml") << QStringLiteral("kmz");
0057 }
0058 
0059 ParsingRunner* KmlPlugin::newRunner() const
0060 {
0061     return new KmlRunner;
0062 }
0063 
0064 }
0065 
0066 #include "moc_KmlPlugin.cpp"