File indexing completed on 2025-01-05 03:59:29
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 0007 #include <klocalizedstring.h> 0008 0009 #include "OsmRunner.h" 0010 0011 namespace Marble 0012 { 0013 0014 OsmPlugin::OsmPlugin(QObject* const parent) 0015 : ParseRunnerPlugin( parent ) 0016 { 0017 } 0018 0019 QString OsmPlugin::name() const 0020 { 0021 return i18n( "Osm File Parser" ); 0022 } 0023 0024 QString OsmPlugin::nameId() const 0025 { 0026 return QStringLiteral("Osm"); 0027 } 0028 0029 QString OsmPlugin::version() const 0030 { 0031 return QStringLiteral("1.0"); 0032 } 0033 0034 QString OsmPlugin::description() const 0035 { 0036 return i18n( "A plugin to load Geolocation Data from the OpenStreetMap data file format." ); 0037 } 0038 0039 QString OsmPlugin::copyrightYears() const 0040 { 0041 return QStringLiteral("2011, 2016"); 0042 } 0043 0044 QVector<PluginAuthor> OsmPlugin::pluginAuthors() const 0045 { 0046 return QVector<PluginAuthor>() 0047 << PluginAuthor(QStringLiteral("Thibaut Gridel"), QStringLiteral("tgridel@free.fr")) 0048 << PluginAuthor(QStringLiteral("Dennis Nienhüser"), QStringLiteral("nienhueser@kde.org")); 0049 } 0050 0051 QString OsmPlugin::fileFormatDescription() const 0052 { 0053 return i18n( "OpenStreetMap Data" ); 0054 } 0055 0056 QStringList OsmPlugin::fileExtensions() const 0057 { 0058 return QStringList() << QStringLiteral("osm") << QStringLiteral("osm.zip") << QStringLiteral("o5m") << QStringLiteral("osm.pbf"); 0059 } 0060 0061 ParsingRunner* OsmPlugin::newRunner() const 0062 { 0063 return new OsmRunner; 0064 } 0065 0066 } // namespace Marble 0067 0068 #include "moc_OsmPlugin.cpp"