• 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
  • nominatim-search
OsmNominatimSearchRunner.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 //
10 
11 
12 #ifndef MARBLE_OSMNOMINATIMRUNNER_H
13 #define MARBLE_OSMNOMINATIMRUNNER_H
14 
15 #include "SearchRunner.h"
16 
17 #include <QString>
18 #include <QHostInfo>
19 #include <QNetworkAccessManager>
20 #include <QNetworkRequest>
21 
22 class QNetworkReply;
23 class QDomNodeList;
24 
25 namespace Marble
26 {
27 
28 class OsmNominatimRunner : public SearchRunner
29 {
30  Q_OBJECT
31 public:
32  explicit OsmNominatimRunner(QObject *parent = 0);
33 
34  ~OsmNominatimRunner();
35 
36  void search( const QString &searchTerm, const GeoDataLatLonBox &preferred );
37 
38 private Q_SLOTS:
39  // Forward a result to the search or reverse geocoding handler
40  void handleResult( QNetworkReply* );
41 
42  // No results (or an error)
43  void returnNoResults();
44 
45  void startSearch();
46 
47 private:
48  QNetworkAccessManager m_manager;
49 
50  QNetworkRequest m_request;
51 };
52 
53 }
54 
55 #endif
QNetworkReply
QDomNodeList
QNetworkRequest
Marble::OsmNominatimRunner::~OsmNominatimRunner
~OsmNominatimRunner()
Definition: OsmNominatimReverseGeocodingRunner.cpp:39
Marble::OsmNominatimRunner::search
void search(const QString &searchTerm, const GeoDataLatLonBox &preferred)
Start a placemark search.
Definition: OsmNominatimSearchRunner.cpp:49
QObject
QString
QNetworkAccessManager
Marble::OsmNominatimRunner::OsmNominatimRunner
OsmNominatimRunner(QObject *parent=0)
Definition: OsmNominatimReverseGeocodingRunner.cpp:31
QObject::parent
QObject * parent() const
SearchRunner.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