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 
0005 #include "GpxPlugin.h"
0006 
0007 #include <klocalizedstring.h>
0008 
0009 #include "GpxRunner.h"
0010 
0011 namespace Marble
0012 {
0013 
0014 GpxPlugin::GpxPlugin(QObject* const parent)
0015     : ParseRunnerPlugin(parent)
0016 {
0017 }
0018 
0019 QString GpxPlugin::name() const
0020 {
0021     return i18n( "Gpx File Parser" );
0022 }
0023 
0024 QString GpxPlugin::nameId() const
0025 {
0026     return QStringLiteral("Gpx");
0027 }
0028 
0029 QString GpxPlugin::version() const
0030 {
0031     return QStringLiteral("1.0");
0032 }
0033 
0034 QString GpxPlugin::description() const
0035 {
0036     return i18n( "A plugin to load Geolocation Data from the Gpx data File format." );
0037 }
0038 
0039 QString GpxPlugin::copyrightYears() const
0040 {
0041     return QStringLiteral("2011");
0042 }
0043 
0044 QVector<PluginAuthor> GpxPlugin::pluginAuthors() const
0045 {
0046     return QVector<PluginAuthor>()
0047             << PluginAuthor(QStringLiteral("Thibaut Gridel"), QStringLiteral("tgridel@free.fr"));
0048 }
0049 
0050 QString GpxPlugin::fileFormatDescription() const
0051 {
0052     return i18n( "GPS Data" );
0053 }
0054 
0055 QStringList GpxPlugin::fileExtensions() const
0056 {
0057     return QStringList(QStringLiteral("gpx"));
0058 }
0059 
0060 ParsingRunner* GpxPlugin::newRunner() const
0061 {
0062     return new GpxRunner;
0063 }
0064 
0065 } // namespace Marble
0066 
0067 #include "moc_GpxPlugin.cpp"