QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
qgsgeocoderlocatorfilter.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsgeocoderlocatorfilter.h
3 ---------------
4 Date : August 2020
5 Copyright : (C) 2020 by Nyall Dawson
6 Email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSGEOCODERLOCATORFILTER_H
17#define QGSGEOCODERLOCATORFILTER_H
18
19#include "qgis_gui.h"
21
22class QgsMapCanvas;
23
35{
36 Q_OBJECT
37
38 public:
58 QgsGeocoderLocatorFilter( const QString &name, const QString &displayName, const QString &prefix, QgsGeocoderInterface *geocoder, QgsMapCanvas *canvas, const QgsRectangle &boundingBox = QgsRectangle() );
59
60 QgsLocatorFilter *clone() const override SIP_FACTORY;
61
62 private:
63 void handleGeocodeResult( const QgsGeocoderResult &result ) override;
64
65 QgsMapCanvas *mCanvas = nullptr;
66};
67
68#endif // QGSGEOCODERLOCATORFILTER_H
An abstract base class which implements a locator filter populated from a QgsGeocoderInterface.
Interface for geocoders.
Definition qgsgeocoder.h:37
An adapter class which implements a locator filter populated from a QgsGeocoderInterface.
Represents a matching result from a geocoder search.
Abstract base class for filters which collect locator results.
Map canvas is a class for displaying all GIS data types on a canvas.
A rectangle specified with double values.
#define SIP_FACTORY
Definition qgis_sip.h:76