QGIS API Documentation 3.99.0-Master (18a1e75d814)
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
31#include "qgstaskmanager.h"
32
33#define SIP_NO_FILE
34
35class QgsPointLocator;
36
37class QgsPointLocatorInitTask : public QgsTask
38{
39 Q_OBJECT
40
41 public:
42
43 QgsPointLocatorInitTask( QgsPointLocator *loc );
44
48 bool isBuildOK() const;
49
50 bool run() override;
51
52 private:
53
54 QgsPointLocator *mLoc = nullptr;
55 bool mBuildOK = false;
56};
57
59
60#endif // QGSPOINTLOCATORINITTASK_H
Defines the interface for querying point locations.
Abstract base class for long running background tasks.
virtual bool run()=0
Performs the task's operation.