• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • runner
  • kml
KmlPlugin.cpp
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
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
6 // the source code.
7 //
8 // Copyright 2011 Thibaut Gridel <tgridel@free.fr>
9 
10 #include "KmlPlugin.h"
11 #include "KmlRunner.h"
12 
13 namespace Marble
14 {
15 
16 KmlPlugin::KmlPlugin( QObject *parent ) :
17  ParseRunnerPlugin( parent )
18 {
19 }
20 
21 QString KmlPlugin::name() const
22 {
23  return tr( "KML File Parser" );
24 }
25 
26 QString KmlPlugin::nameId() const
27 {
28  return "Kml";
29 }
30 
31 QString KmlPlugin::version() const
32 {
33  return "1.1";
34 }
35 
36 QString KmlPlugin::description() const
37 {
38  return tr( "Create GeoDataDocument from KML and KMZ Files" );
39 }
40 
41 QString KmlPlugin::copyrightYears() const
42 {
43  return "2011, 2013";
44 }
45 
46 QList<PluginAuthor> KmlPlugin::pluginAuthors() const
47 {
48  return QList<PluginAuthor>()
49  << PluginAuthor( "Thibaut Gridel", "tgridel@free.fr" )
50  << PluginAuthor( "Dennis Nienhüser", "earthwings@gentoo.org" );
51 }
52 
53 QString KmlPlugin::fileFormatDescription() const
54 {
55  return tr( "Google Earth KML" );
56 }
57 
58 QStringList KmlPlugin::fileExtensions() const
59 {
60 #ifdef MARBLE_HAVE_QUAZIP
61  return QStringList() << "kml" << "kmz";
62 #else
63  return QStringList() << "kml";
64 #endif
65 }
66 
67 ParsingRunner* KmlPlugin::newRunner() const
68 {
69  return new KmlRunner;
70 }
71 
72 }
73 
74 Q_EXPORT_PLUGIN2( KmlPlugin, Marble::KmlPlugin )
75 
76 #include "KmlPlugin.moc"
Marble::KmlPlugin::version
QString version() const
Definition: KmlPlugin.cpp:31
Marble::KmlPlugin::description
QString description() const
Returns a user description of the plugin.
Definition: KmlPlugin.cpp:36
Marble::KmlPlugin::KmlPlugin
KmlPlugin(QObject *parent=0)
Definition: KmlPlugin.cpp:16
Marble::PluginAuthor
Definition: PluginInterface.h:28
KmlPlugin.h
Marble::KmlPlugin
Definition: KmlPlugin.h:18
Marble::KmlPlugin::pluginAuthors
QList< PluginAuthor > pluginAuthors() const
Definition: KmlPlugin.cpp:46
QObject::tr
QString tr(const char *sourceText, const char *disambiguation, int n)
Marble::KmlPlugin::fileExtensions
QStringList fileExtensions() const
Returns the file extensions associated with the file format.
Definition: KmlPlugin.cpp:58
Marble::KmlPlugin::fileFormatDescription
QString fileFormatDescription() const
Returns a short description of the supported file format.
Definition: KmlPlugin.cpp:53
Marble::KmlPlugin::name
QString name() const
Returns the user-visible name of the plugin.
Definition: KmlPlugin.cpp:21
Marble::KmlPlugin::nameId
QString nameId() const
Returns the unique name of the plugin.
Definition: KmlPlugin.cpp:26
Marble::KmlRunner
Definition: KmlRunner.h:18
QObject
KmlRunner.h
QString
QList
Marble::ParsingRunner
Definition: ParsingRunner.h:23
QStringList
Q_EXPORT_PLUGIN2
#define Q_EXPORT_PLUGIN2(a, b)
Definition: marble_export.h:34
Marble::ParseRunnerPlugin
A plugin for Marble to execute a parsing task.
Definition: ParseRunnerPlugin.h:27
Marble::KmlPlugin::copyrightYears
QString copyrightYears() const
Definition: KmlPlugin.cpp:41
Marble::KmlPlugin::newRunner
virtual ParsingRunner * newRunner() const
Plugin factory method to create a new runner instance.
Definition: KmlPlugin.cpp:67
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal