QGIS API Documentation  3.18.1-Zürich (202f1bf7e5)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
22 class QgsMapCanvas;
23 
35 {
36 
37  Q_OBJECT
38 
39  public:
40 
57  QgsGeocoderLocatorFilter( const QString &name, const QString &displayName,
58  const QString &prefix,
59  QgsGeocoderInterface *geocoder,
60  QgsMapCanvas *canvas );
61 
62  QgsLocatorFilter *clone() const override SIP_FACTORY;
63 
64  private:
65  void handleGeocodeResult( const QgsGeocoderResult &result ) override;
66 
67  QgsMapCanvas *mCanvas = nullptr;
68 
69 };
70 
71 #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.
Definition: qgsmapcanvas.h:86
#define SIP_FACTORY
Definition: qgis_sip.h:76