• 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
SearchRunnerManager.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 2008 Henry de Valence <hdevalence@gmail.com>
9 // Copyright 2010 Dennis Nienhüser <earthwings@gentoo.org>
10 // Copyright 2010-2013 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
11 // Copyright 2011 Thibaut Gridel <tgridel@free.fr>
12 
13 #ifndef MARBLE_SEARCHRUNNERMANAGER_H
14 #define MARBLE_SEARCHRUNNERMANAGER_H
15 
16 #include "GeoDataLatLonBox.h"
17 
18 #include "marble_export.h"
19 
20 #include <QObject>
21 #include <QVector>
22 #include <QString>
23 
24 class QAbstractItemModel;
25 
26 namespace Marble
27 {
28 
29 class GeoDataPlacemark;
30 class MarbleModel;
31 class SearchTask;
32 
33 class MARBLE_EXPORT SearchRunnerManager : public QObject
34 {
35  Q_OBJECT
36 
37 public:
43  explicit SearchRunnerManager( const MarbleModel *marbleModel, QObject *parent = 0 );
44 
45  ~SearchRunnerManager();
46 
54  void findPlacemarks( const QString &searchTerm, const GeoDataLatLonBox &preferred = GeoDataLatLonBox() );
55  QVector<GeoDataPlacemark *> searchPlacemarks( const QString &searchTerm, const GeoDataLatLonBox &preferred = GeoDataLatLonBox(), int timeout = 30000 );
56 
57 Q_SIGNALS:
62  void searchResultChanged( QAbstractItemModel *model );
63  void searchResultChanged( const QVector<GeoDataPlacemark *> &result );
64 
70  void searchFinished( const QString &searchTerm );
71 
75  void placemarkSearchFinished();
76 
77 private:
78  Q_PRIVATE_SLOT( d, void addSearchResult( const QVector<GeoDataPlacemark *> &result ) )
79  Q_PRIVATE_SLOT( d, void cleanupSearchTask( SearchTask *task ) )
80 
81  class Private;
82  friend class Private;
83  Private *const d;
84 };
85 
86 }
87 
88 #endif
Marble::SearchTask
A RunnerTask that executes a placemark search.
Definition: RunnerTask.h:36
Marble::SearchRunnerManager
Definition: SearchRunnerManager.h:33
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QString
GeoDataLatLonBox.h
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
QVector
marble_export.h
QAbstractItemModel
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: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