File indexing completed on 2024-07-21 09:27:11

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2011 Thibaut Gridel <tgridel@free.fr>
0004 
0005 #include "OsmPlugin.h"
0006 #include "OsmRunner.h"
0007 
0008 namespace Marble
0009 {
0010 
0011 OsmPlugin::OsmPlugin( QObject *parent ) :
0012     ParseRunnerPlugin( parent )
0013 {
0014 }
0015 
0016 QString OsmPlugin::name() const
0017 {
0018     return tr( "Osm File Parser" );
0019 }
0020 
0021 QString OsmPlugin::nameId() const
0022 {
0023     return QStringLiteral("Osm");
0024 }
0025 
0026 QString OsmPlugin::version() const
0027 {
0028     return QStringLiteral("1.0");
0029 }
0030 
0031 QString OsmPlugin::description() const
0032 {
0033     return tr( "Create GeoDataDocument from Osm Files" );
0034 }
0035 
0036 QString OsmPlugin::copyrightYears() const
0037 {
0038     return QStringLiteral("2011, 2016");
0039 }
0040 
0041 QVector<PluginAuthor> OsmPlugin::pluginAuthors() const
0042 {
0043     return QVector<PluginAuthor>()
0044             << PluginAuthor(QStringLiteral("Thibaut Gridel"), QStringLiteral("tgridel@free.fr"))
0045             << PluginAuthor(QStringLiteral("Dennis Nienhüser"), QStringLiteral("nienhueser@kde.org"));
0046 }
0047 
0048 QString OsmPlugin::fileFormatDescription() const
0049 {
0050     return tr( "OpenStreetMap Data" );
0051 }
0052 
0053 QStringList OsmPlugin::fileExtensions() const
0054 {
0055     return QStringList() << QStringLiteral("osm") << QStringLiteral("osm.zip") << QStringLiteral("o5m") << QStringLiteral("osm.pbf");
0056 }
0057 
0058 ParsingRunner* OsmPlugin::newRunner() const
0059 {
0060     return new OsmRunner;
0061 }
0062 
0063 }
0064 
0065 #include "moc_OsmPlugin.cpp"