• 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
RoutingRunner.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 // Copyright 2010 Dennis Nienhüser <earthwings@gentoo.org>
9 // Copyright 2011 Thibaut Gridel <tgridel@free.fr>
10 // Copyright 2012,2013 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
11 
12 #ifndef MARBLE_ROUTINGRUNNER_H
13 #define MARBLE_ROUTINGRUNNER_H
14 
15 #include <QObject>
16 #include "marble_export.h"
17 #include "GeoDataExtendedData.h"
18 
19 class QTime;
20 
21 namespace Marble
22 {
23 
24 class MarbleModel;
25 class GeoDataDocument;
26 class RouteRequest;
27 
28 class MARBLE_EXPORT RoutingRunner : public QObject
29 {
30  Q_OBJECT
31 
32 public:
33  explicit RoutingRunner( QObject *parent );
34 
38  void setModel( const MarbleModel *model );
39 
46  virtual void retrieveRoute( const RouteRequest *request ) = 0;
47 
48 Q_SIGNALS:
53  void routeCalculated( GeoDataDocument* route );
54 
55 protected:
59  const MarbleModel *model() const;
60 
61  const QString nameString( const QString &name, qreal length, const QTime &duration ) const;
62  const QString lengthString( qreal length ) const;
63  const QString durationString( const QTime &duration ) const;
64  const GeoDataExtendedData routeData( qreal length, const QTime &duration ) const;
65 
66 private:
67  const MarbleModel *m_model;
68 };
69 
70 }
71 
72 #endif
Marble::GeoDataDocument
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
GeoDataExtendedData.h
QTime
Marble::GeoDataExtendedData
a class which allows to add custom data to KML Feature.
Definition: GeoDataExtendedData.h:35
Marble::RouteRequest
Points to be included in a route.
Definition: RouteRequest.h:31
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QString
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
Marble::RoutingRunner
Definition: RoutingRunner.h:28
marble_export.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