Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/runner/json/JsonPlugin.cpp
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | This file is part of the Marble Virtual Globe. | 2 | This file is part of the Marble Virtual Globe. | ||
3 | 3 | | |||
4 | This program is free software licensed under the GNU LGPL. You can | 4 | This program is free software licensed under the GNU LGPL. You can | ||
5 | find a copy of this license in LICENSE.txt in the top directory of | 5 | find a copy of this license in LICENSE.txt in the top directory of | ||
6 | the source code. | 6 | the source code. | ||
7 | 7 | | |||
8 | Copyright 2013 Ander Pijoan <ander.pijoan@deusto.es> | 8 | Copyright 2013 Ander Pijoan <ander.pijoan@deusto.es> | ||
9 | Copyright 2019 John Zaitseff <J.Zaitseff@zap.org.au> | ||||
9 | */ | 10 | */ | ||
10 | 11 | | |||
11 | #include "JsonPlugin.h" | 12 | #include "JsonPlugin.h" | ||
12 | #include "JsonRunner.h" | 13 | #include "JsonRunner.h" | ||
13 | 14 | | |||
14 | namespace Marble | 15 | namespace Marble | ||
15 | { | 16 | { | ||
16 | 17 | | |||
Show All 9 Lines | |||||
26 | 27 | | |||
27 | QString JsonPlugin::nameId() const | 28 | QString JsonPlugin::nameId() const | ||
28 | { | 29 | { | ||
29 | return QStringLiteral("GeoJSON"); | 30 | return QStringLiteral("GeoJSON"); | ||
30 | } | 31 | } | ||
31 | 32 | | |||
32 | QString JsonPlugin::version() const | 33 | QString JsonPlugin::version() const | ||
33 | { | 34 | { | ||
34 | return QStringLiteral("1.0"); | 35 | return QStringLiteral("2.0"); | ||
35 | } | 36 | } | ||
36 | 37 | | |||
37 | QString JsonPlugin::description() const | 38 | QString JsonPlugin::description() const | ||
38 | { | 39 | { | ||
39 | return tr( "Create GeoDataDocument from GeoJSON Files" ); | 40 | return tr( "Create GeoDataDocument from GeoJSON Files" ); | ||
40 | } | 41 | } | ||
41 | 42 | | |||
42 | QString JsonPlugin::copyrightYears() const | 43 | QString JsonPlugin::copyrightYears() const | ||
43 | { | 44 | { | ||
44 | return QStringLiteral("2012"); | 45 | return QStringLiteral("2012, 2019"); | ||
45 | } | 46 | } | ||
46 | 47 | | |||
47 | QVector<PluginAuthor> JsonPlugin::pluginAuthors() const | 48 | QVector<PluginAuthor> JsonPlugin::pluginAuthors() const | ||
48 | { | 49 | { | ||
49 | return QVector<PluginAuthor>() | 50 | return QVector<PluginAuthor>() | ||
50 | << PluginAuthor(QStringLiteral("Ander Pijoan"), QStringLiteral("ander.pijoan@deusto.es")); | 51 | << PluginAuthor(QStringLiteral("Ander Pijoan"), QStringLiteral("ander.pijoan@deusto.es")) | ||
52 | << PluginAuthor(QStringLiteral("John Zaitseff"), QStringLiteral("J.Zaitseff@zap.org.au")); | ||||
51 | } | 53 | } | ||
52 | 54 | | |||
53 | QString JsonPlugin::fileFormatDescription() const | 55 | QString JsonPlugin::fileFormatDescription() const | ||
54 | { | 56 | { | ||
55 | return tr( "GeoJSON" ); | 57 | return tr( "GeoJSON" ); | ||
56 | } | 58 | } | ||
57 | 59 | | |||
58 | QStringList JsonPlugin::fileExtensions() const | 60 | QStringList JsonPlugin::fileExtensions() const | ||
59 | { | 61 | { | ||
60 | return QStringList() << QStringLiteral("json") << QStringLiteral("geojson"); | 62 | return QStringList() << QStringLiteral("json") << QStringLiteral("geojson"); | ||
61 | } | 63 | } | ||
62 | 64 | | |||
63 | ParsingRunner* JsonPlugin::newRunner() const | 65 | ParsingRunner* JsonPlugin::newRunner() const | ||
64 | { | 66 | { | ||
65 | return new JsonRunner; | 67 | return new JsonRunner; | ||
66 | } | 68 | } | ||
67 | 69 | | |||
68 | } | 70 | } | ||
69 | 71 | | |||
70 | #include "moc_JsonPlugin.cpp" | 72 | #include "moc_JsonPlugin.cpp" | ||
71 | |