23#include <QFutureWatcher>
104 QList< QgsLocatorFilter *> filters(
const QString &prefix = QString() );
112 Q_DECL_DEPRECATED QMap<QString, QgsLocatorFilter *> prefixedFilters()
const;
138 void cancelWithoutBlocking();
143 bool isRunning()
const;
149 void clearPreviousResults();
197 std::unique_ptr< QgsFeedback > mOwnedFeedback;
199 QList< QgsLocatorFilter * > mFilters;
200 QList< QThread * > mActiveThreads;
202 QStringList mAutocompletionList;
204 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 (.
static const QgsSettingsEntryBool * settingsLocatorFilterDefault
Settings entry locator filter default value.
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.
static const QgsSettingsEntryBool * settingsLocatorFilterEnabled
Settings entry locator filter enabled.
static const QgsSettingsEntryString * settingsLocatorFilterPrefix
Settings entry locator filter prefix.
QStringList completionList() const
Returns the list for auto completion This list is updated when preparing the search.
A boolean settings entry.
QgsSettingsTreeNamedListNode is a named list tree node for the settings tree to help organizing and i...
QgsSettingsTreeNamedListNode * createNamedListNode(const QString &key, const Qgis::SettingsTreeNodeOptions &options=Qgis::SettingsTreeNodeOptions())
Creates a named list tree node.
static QgsSettingsTreeNode * treeRoot()
Returns the tree root node for the settings tree.