File indexing completed on 2025-01-05 03:59:30

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2012 Cezar Mocan <mocancezar@gmail.com>
0004 
0005 #include "Pn2Plugin.h"
0006 
0007 #include <klocalizedstring.h>
0008 
0009 #include "Pn2Runner.h"
0010 
0011 namespace Marble
0012 {
0013 
0014 Pn2Plugin::Pn2Plugin(QObject* const parent)
0015     : ParseRunnerPlugin( parent )
0016 {
0017 }
0018 
0019 QString Pn2Plugin::name() const
0020 {
0021     return i18n( "Pn2 File Parser" );
0022 }
0023 
0024 QString Pn2Plugin::nameId() const
0025 {
0026     return QStringLiteral("Pn2");
0027 }
0028 
0029 QString Pn2Plugin::version() const
0030 {
0031     return QStringLiteral("1.0");
0032 }
0033 
0034 QString Pn2Plugin::description() const
0035 {
0036     return i18n( "A plugin to load Geolocation Data from the compressed Pnt data files format" );
0037 }
0038 
0039 QString Pn2Plugin::copyrightYears() const
0040 {
0041     return QStringLiteral("2012");
0042 }
0043 
0044 QVector<PluginAuthor> Pn2Plugin::pluginAuthors() const
0045 {
0046     return QVector<PluginAuthor>()
0047             << PluginAuthor(QStringLiteral("Cezar Mocan"), QStringLiteral("mocancezar@gmail.com"));
0048 }
0049 
0050 QString Pn2Plugin::fileFormatDescription() const
0051 {
0052     return i18n( "Compressed Pnt" );
0053 }
0054 
0055 QStringList Pn2Plugin::fileExtensions() const
0056 {
0057     return QStringList(QStringLiteral("pn2"));
0058 }
0059 
0060 ParsingRunner* Pn2Plugin::newRunner() const
0061 {
0062     return new Pn2Runner;
0063 }
0064 
0065 } // namespace Marble
0066 
0067 #include "moc_Pn2Plugin.cpp"