QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
qgspointlocatorinittask.h
Go to the documentation of this file.
1/***************************************************************************
2 qgspointlocatorinittask.h
3 --------------------------------------
4 Date : September 2019
5 Copyright : (C) 2019 by Julien Cabieces
6 Email : julien dot cabieces at oslandia 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 QGSPOINTLOCATORINITTASK_H
17#define QGSPOINTLOCATORINITTASK_H
18
20
21//
22// W A R N I N G
23// -------------
24//
25// This file is not part of the QGIS API. It exists purely as an
26// implementation detail. This header file may change from version to
27// version without notice, or even be removed.
28//
29
30#define SIP_NO_FILE
31
32#include "qgstaskmanager.h"
33
34class QgsPointLocator;
35
36class QgsPointLocatorInitTask : public QgsTask
37{
38 Q_OBJECT
39
40 public:
41
42 QgsPointLocatorInitTask( QgsPointLocator *loc );
43
47 bool isBuildOK() const;
48
49 bool run() override;
50
51 private:
52
53 QgsPointLocator *mLoc = nullptr;
54 bool mBuildOK = false;
55};
56
58
59#endif // QGSPOINTLOCATORINITTASK_H
The class defines interface for querying point location:
Abstract base class for long running background tasks.
virtual bool run()=0
Performs the task's operation.