marble
SearchRunnerManager.cpp
Go to the documentation of this file.
66 SearchRunnerManager::Private::Private( SearchRunnerManager *parent, const MarbleModel *marbleModel ) :
157 void SearchRunnerManager::findPlacemarks( const QString &searchTerm, const GeoDataLatLonBox &preferred )
185 QList<const SearchRunnerPlugin *> plugins = d->plugins( d->m_pluginManager->searchRunnerPlugins() );
187 SearchTask *task = new SearchTask( plugin->newRunner(), this, d->m_marbleModel, searchTerm, preferred );
202 QVector<GeoDataPlacemark *> SearchRunnerManager::searchPlacemarks( const QString &searchTerm, const GeoDataLatLonBox &preferred, int timeout )
void findPlacemarks(const QString &searchTerm, const GeoDataLatLonBox &preferred=GeoDataLatLonBox())
Search for placemarks matching the given search term.
Definition: SearchRunnerManager.cpp:157
This file contains the headers for MarbleModel.
QVector< GeoDataPlacemark * > searchPlacemarks(const QString &searchTerm, const GeoDataLatLonBox &preferred=GeoDataLatLonBox(), int timeout=30000)
Definition: SearchRunnerManager.cpp:202
QThreadPool * globalInstance()
void searchResultChanged(QAbstractItemModel *model)
Placemarks were added to or removed from the model.
qreal distanceSphere(qreal lon1, qreal lat1, qreal lon2, qreal lat2)
This method calculates the shortest distance between two points on a sphere.
Definition: MarbleMath.h:52
void searchFinished(const QString &searchTerm)
The search request for the given search term has finished, i.e.
void setMaxThreadCount(int maxThreadCount)
void placemarkSearchFinished()
Emitted whenever all runners are finished for the query.
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
bool isEmpty() const
bool isEmpty() const
QString trimmed() const
A plugin for Marble to execute a placemark search.
Definition: SearchRunnerPlugin.h:25
virtual QString nameId() const =0
Returns the unique name of the plugin.
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
~SearchRunnerManager()
Definition: SearchRunnerManager.cpp:152
SearchRunnerManager(const MarbleModel *marbleModel, QObject *parent=0)
Constructor.
Definition: SearchRunnerManager.cpp:143
bool isEmpty() const
virtual SearchRunner * newRunner() const =0
Plugin factory method to create a new runner instance.
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
int size() const
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
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.