• 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
  • lib
  • marble
PluginInterface.h
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 // Most of the code is taken from MarbleRenderPluginInterface.h
9 // by Torsten Rahn and Inge Wallin.
10 //
11 // Copyright 2009 Jens-Michael Hoffmann <jensmh@gmx.de>
12 // Copyright 2012 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
13 //
14 #ifndef MARBLE_PLUGININTERFACE_H
15 #define MARBLE_PLUGININTERFACE_H
16 
17 #include <QList>
18 #include <QObject> // for QObject::tr()
19 #include <QString>
20 #include <QtPlugin>
21 #include <QIcon>
22 
23 #include "marble_export.h"
24 
25 namespace Marble
26 {
27 
28 struct MARBLE_EXPORT PluginAuthor
29 {
30  PluginAuthor( const QString &name_, const QString &email_, const QString &task_ = QObject::tr( "Developer" ) ) :
31  name( name_ ),
32  task( task_ ),
33  email( email_ )
34  {}
35 
36  QString name;
37  QString task;
38  QString email;
39 };
40 
45 class MARBLE_EXPORT PluginInterface
46 {
47  public:
48  virtual ~PluginInterface();
49 
59  virtual QString name() const = 0;
60 
66  virtual QString nameId() const = 0;
67 
68  virtual QString version() const = 0;
69 
73  virtual QString description() const = 0;
74 
78  virtual QIcon icon() const = 0;
79 
80  virtual QString copyrightYears() const = 0;
81 
82  virtual QList<PluginAuthor> pluginAuthors() const = 0;
83 
90  virtual QString aboutDataText() const;
91 };
92 
93 }
94 
95 Q_DECLARE_INTERFACE( Marble::PluginInterface, "org.kde.Marble.PluginInterface/1.1" )
96 
97 #endif
Marble::PluginAuthor::PluginAuthor
PluginAuthor(const QString &name_, const QString &email_, const QString &task_=QObject::tr("Developer"))
Definition: PluginInterface.h:30
Marble::PluginAuthor::email
QString email
Definition: PluginInterface.h:38
Marble::PluginAuthor
Definition: PluginInterface.h:28
QObject::tr
QString tr(const char *sourceText, const char *disambiguation, int n)
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::PluginAuthor::name
QString name
Definition: PluginInterface.h:36
QString
QList
Marble::PluginInterface
This class specifies interface of a Marble plugin.
Definition: PluginInterface.h:45
Marble::PluginAuthor::task
QString task
Definition: PluginInterface.h:37
marble_export.h
QIcon
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