• 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
  • pn2
Pn2Plugin.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 2012 Cezar Mocan <mocancezar@gmail.com>
9 
10 #include "Pn2Plugin.h"
11 #include "Pn2Runner.h"
12 
13 namespace Marble
14 {
15 
16 Pn2Plugin::Pn2Plugin( QObject *parent ) :
17  ParseRunnerPlugin( parent )
18 {
19 }
20 
21 QString Pn2Plugin::name() const
22 {
23  return tr( "Pn2 File Parser" );
24 }
25 
26 QString Pn2Plugin::nameId() const
27 {
28  return "Pn2";
29 }
30 
31 QString Pn2Plugin::version() const
32 {
33  return "1.0";
34 }
35 
36 QString Pn2Plugin::description() const
37 {
38  return tr( "Create GeoDataDocument from Pn2 Files" );
39 }
40 
41 QString Pn2Plugin::copyrightYears() const
42 {
43  return "2012";
44 }
45 
46 QList<PluginAuthor> Pn2Plugin::pluginAuthors() const
47 {
48  return QList<PluginAuthor>()
49  << PluginAuthor( "Cezar Mocan", "mocancezar@gmail.com" );
50 }
51 
52 QString Pn2Plugin::fileFormatDescription() const
53 {
54  return tr( "Compressed Pnt" );
55 }
56 
57 QStringList Pn2Plugin::fileExtensions() const
58 {
59  return QStringList() << "pn2";
60 }
61 
62 ParsingRunner* Pn2Plugin::newRunner() const
63 {
64  return new Pn2Runner;
65 }
66 
67 }
68 
69 Q_EXPORT_PLUGIN2( Pn2Plugin, Marble::Pn2Plugin )
70 
71 #include "Pn2Plugin.moc"
Marble::Pn2Plugin::nameId
QString nameId() const
Returns the unique name of the plugin.
Definition: Pn2Plugin.cpp:26
Pn2Runner.h
Marble::Pn2Plugin::description
QString description() const
Returns a user description of the plugin.
Definition: Pn2Plugin.cpp:36
Marble::Pn2Plugin::pluginAuthors
QList< PluginAuthor > pluginAuthors() const
Definition: Pn2Plugin.cpp:46
Marble::Pn2Plugin
Definition: Pn2Plugin.h:18
Marble::PluginAuthor
Definition: PluginInterface.h:28
Marble::Pn2Plugin::newRunner
virtual ParsingRunner * newRunner() const
Plugin factory method to create a new runner instance.
Definition: Pn2Plugin.cpp:62
Marble::Pn2Plugin::version
QString version() const
Definition: Pn2Plugin.cpp:31
QObject::tr
QString tr(const char *sourceText, const char *disambiguation, int n)
Marble::Pn2Plugin::Pn2Plugin
Pn2Plugin(QObject *parent=0)
Definition: Pn2Plugin.cpp:16
QObject
Marble::Pn2Plugin::fileFormatDescription
QString fileFormatDescription() const
Returns a short description of the supported file format.
Definition: Pn2Plugin.cpp:52
Marble::Pn2Plugin::fileExtensions
QStringList fileExtensions() const
Returns the file extensions associated with the file format.
Definition: Pn2Plugin.cpp:57
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::Pn2Plugin::name
QString name() const
Returns the user-visible name of the plugin.
Definition: Pn2Plugin.cpp:21
Marble::Pn2Runner
Definition: Pn2Runner.h:20
Marble::Pn2Plugin::copyrightYears
QString copyrightYears() const
Definition: Pn2Plugin.cpp:41
Pn2Plugin.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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