• 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
  • mapquest
MapQuestRunner.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 2012 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 
12 #ifndef MARBLE_OSMMAPQUESTRUNNER_H
13 #define MARBLE_OSMMAPQUESTRUNNER_H
14 
15 #include "RoutingRunner.h"
16 
17 #include <QNetworkAccessManager>
18 #include <QNetworkReply>
19 
20 namespace Marble
21 {
22 
23 class MapQuestRunner : public RoutingRunner
24 {
25  Q_OBJECT
26 
27 public:
28  explicit MapQuestRunner(QObject *parent = 0);
29 
30  ~MapQuestRunner();
31 
32  // Overriding MarbleAbstractRunner
33  virtual void retrieveRoute( const RouteRequest *request );
34 
35 private Q_SLOTS:
36  void get();
37 
39  void retrieveData( QNetworkReply *reply );
40 
42  void handleError( QNetworkReply::NetworkError );
43 
44 private:
45  static void append( QString* input, const QString &key, const QString &value );
46 
47  static int maneuverType( int mapQuestId );
48 
49  GeoDataDocument* parse( const QByteArray &input ) const;
50 
51  QNetworkAccessManager m_networkAccessManager;
52 
53  QNetworkRequest m_request;
54 };
55 
56 }
57 
58 #endif
Marble::MapQuestRunner::~MapQuestRunner
~MapQuestRunner()
Definition: MapQuestRunner.cpp:45
Marble::GeoDataDocument
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
QByteArray
QNetworkReply
Marble::RouteRequest
Points to be included in a route.
Definition: RouteRequest.h:31
QNetworkRequest
Marble::MapQuestRunner::retrieveRoute
virtual void retrieveRoute(const RouteRequest *request)
Start a route download orw calculation.
Definition: MapQuestRunner.cpp:50
QObject
RoutingRunner.h
QString
QNetworkAccessManager
Marble::MapQuestRunner::MapQuestRunner
MapQuestRunner(QObject *parent=0)
Definition: MapQuestRunner.cpp:36
Marble::RoutingRunner
Definition: RoutingRunner.h:28
Marble::MapQuestRunner
Definition: MapQuestRunner.h:23
QObject::parent
QObject * parent() const
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