1
/***************************************************************************
2
qgsproviderextentcalcevent.h - Notification that the exact extent
3
of a layer has been calculated.
6
copyright : (C) 2005 by Brendan Morley
7
email : morb at ozemail dot com dot au
8
***************************************************************************/
10
/***************************************************************************
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
17
***************************************************************************/
18
/* $Id: qgsproviderextentcalcevent.h,v 1.1 2005/03/10 05:36:58 gsherman Exp $ */
20
#ifndef QGSPROVIDEREXTENTCALCEVENT_H
21
#define QGSPROVIDEREXTENTCALCEVENT_H
29
* \brief A custom event that is designed to be fired when a layer extent has been fully calculated.
30
\author Brendan Morley
34
This QCustomEvent is designed to be fired when the full extent of a layer has been calculated.
35
It was initially included in QGIS to help the QgsPostgresProvider provide the asynchronous
36
calculation of PostgreSQL layer extents.
38
Events are used instead of Qt signals/slots as events can be received asynchronously,
39
which makes for better mutlithreading behaviour and less opportunity for programmer mishap.
43
// TODO: Add the pg table this is a extent OF.
45
class QgsProviderExtentCalcEvent : public QCustomEvent
50
QgsProviderExtentCalcEvent( QgsRect* layerExtent );
52
QgsRect* layerExtent() const;