• 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
  • hostip
HostipRunner.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 #ifndef MARBLE_HOSTIPRUNNER_H
11 #define MARBLE_HOSTIPRUNNER_H
12 
13 #include "SearchRunner.h"
14 
15 #include <QString>
16 #include <QHostInfo>
17 #include <QNetworkAccessManager>
18 #include <QNetworkRequest>
19 
20 class QNetworkReply;
21 
22 namespace Marble
23 {
24 
25 class HostipRunner : public SearchRunner
26 {
27  Q_OBJECT
28 public:
29  explicit HostipRunner(QObject *parent = 0);
30 
31  ~HostipRunner();
32 
33 private Q_SLOTS:
34  void get();
35 
36  // Http request with hostip.info done
37  void slotRequestFinished( QNetworkReply* );
38 
39  // IP address lookup finished
40  void slotLookupFinished(const QHostInfo &host);
41 
42  // No results (or an error)
43  void slotNoResults();
44 
45  void search( const QString &searchTerm, const GeoDataLatLonBox &preferred );
46 
47 private:
48  QHostInfo m_hostInfo;
49 
50  QNetworkAccessManager m_networkAccessManager;
51 
52  QNetworkRequest m_request;
53 };
54 
55 }
56 
57 #endif
QNetworkReply
search
Definition: google-search.qml:12
QNetworkRequest
QObject
QString
Marble::HostipRunner::HostipRunner
HostipRunner(QObject *parent=0)
Definition: HostipRunner.cpp:26
Marble::HostipRunner::~HostipRunner
~HostipRunner()
Definition: HostipRunner.cpp:34
QNetworkAccessManager
Marble::HostipRunner
Definition: HostipRunner.h:25
QObject::parent
QObject * parent() const
SearchRunner.h
QHostInfo
Marble::SearchRunner
Definition: SearchRunner.h:30
Marble::GeoDataLatLonBox
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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