File indexing completed on 2024-07-14 10:58:39

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