23 #include <QFutureWatcher>
27 #include "qgis_core.h"
101 QList< QgsLocatorFilter *> filters(
const QString &prefix = QString() );
109 Q_DECL_DEPRECATED QMap<QString, QgsLocatorFilter *> prefixedFilters()
const;
135 void cancelWithoutBlocking();
140 bool isRunning()
const;
146 void clearPreviousResults();
183 std::unique_ptr< QgsFeedback > mOwnedFeedback;
185 QList< QgsLocatorFilter * > mFilters;
186 QList< QThread * > mActiveThreads;
188 QStringList mAutocompletionList;
190 void cancelRunningQuery();
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Encapsulates the properties relating to the context of a locator search.
Abstract base class for filters which collect locator results.
Encapsulates properties of an individual matching result found by a QgsLocatorFilter.
Handles the management of QgsLocatorFilter objects and async collection of search results from them.
static const QList< QString > CORE_FILTERS
List of core filters (i.e. not plugin filters)
void searchPrepared()
Emitted when locator has prepared the search (.
void finished()
Emitted when locator has finished a query, either as a result of successful completion or early cance...
void foundResult(const QgsLocatorResult &result)
Emitted whenever a filter encounters a matching result after the fetchResults() method is called.
QStringList completionList() const
Returns the list for auto completion This list is updated when preparing the search.