marble
ReverseGeocodingRunnerManager.cpp
Go to the documentation of this file.
38 QList<const ReverseGeocodingRunnerPlugin *> plugins( const QList<const ReverseGeocodingRunnerPlugin *> &plugins ) const;
40 void addReverseGeocodingResult( const GeoDataCoordinates &coordinates, const GeoDataPlacemark &placemark );
51 ReverseGeocodingRunnerManager::Private::Private( ReverseGeocodingRunnerManager *parent, const MarbleModel *marbleModel ) :
60 QList<const ReverseGeocodingRunnerPlugin *> ReverseGeocodingRunnerManager::Private::plugins( const QList<const ReverseGeocodingRunnerPlugin *> &plugins ) const
84 void ReverseGeocodingRunnerManager::Private::addReverseGeocodingResult( const GeoDataCoordinates &coordinates, const GeoDataPlacemark &placemark )
97 void ReverseGeocodingRunnerManager::Private::cleanupReverseGeocodingTask( ReverseGeocodingTask *task )
106 ReverseGeocodingRunnerManager::ReverseGeocodingRunnerManager( const MarbleModel *marbleModel, QObject *parent ) :
125 QList<const ReverseGeocodingRunnerPlugin*> plugins = d->plugins( d->m_pluginManager->reverseGeocodingRunnerPlugins() );
127 ReverseGeocodingTask* task = new ReverseGeocodingTask( plugin->newRunner(), this, d->m_marbleModel, coordinates );
128 connect( task, SIGNAL(finished(ReverseGeocodingTask*)), this, SLOT(cleanupReverseGeocodingTask(ReverseGeocodingTask*)) );
145 QString ReverseGeocodingRunnerManager::searchReverseGeocoding( const GeoDataCoordinates &coordinates, int timeout ) {
void reverseGeocodingFinished()
Emitted whenever all runners are finished for the query.
void push_back(const T &value)
This file contains the headers for MarbleModel.
A RunnerTask that executes reverse geocoding.
Definition: RunnerTask.h:58
QThreadPool * globalInstance()
friend class Private
Definition: ReverseGeocodingRunnerManager.h:73
virtual ReverseGeocodingRunner * newRunner() const =0
Plugin factory method to create a new runner instance.
void setCoordinate(qreal longitude, qreal latitude, qreal altitude=0, GeoDataCoordinates::Unit _unit=GeoDataCoordinates::Radian)
Set the coordinate of the placemark in longitude and latitude.
Definition: GeoDataPlacemark.cpp:215
ReverseGeocodingRunnerManager(const MarbleModel *marbleModel, QObject *parent=0)
Constructor.
Definition: ReverseGeocodingRunnerManager.cpp:106
void setMaxThreadCount(int maxThreadCount)
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
A plugin for Marble to execute a reverse geocoding task.
Definition: ReverseGeocodingRunnerPlugin.h:27
bool isEmpty() const
virtual QString nameId() const =0
Returns the unique name of the plugin.
QString searchReverseGeocoding(const GeoDataCoordinates &coordinates, int timeout=30000)
Definition: ReverseGeocodingRunnerManager.cpp:145
~ReverseGeocodingRunnerManager()
Definition: ReverseGeocodingRunnerManager.cpp:115
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
void reverseGeocoding(const GeoDataCoordinates &coordinates)
Find the address and other meta information for a given geoposition.
Definition: ReverseGeocodingRunnerManager.cpp:120
void start(int msec)
void start(QRunnable *runnable, int priority)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
void setSingleShot(bool singleShot)
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
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.