~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/core/qgsproviderextentcalcevent.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *   (at your option) any later version.                                   *
16
16
 *                                                                         *
17
17
 ***************************************************************************/
18
 
/* $Id: qgsproviderextentcalcevent.h 4502 2006-01-08 01:18:20Z timlinux $ */
 
18
/* $Id$ */
19
19
 
20
20
#ifndef QGSPROVIDEREXTENTCALCEVENT_H
21
21
#define QGSPROVIDEREXTENTCALCEVENT_H
22
22
 
23
 
#include <qevent.h>
24
 
 
25
 
#include "qgis.h"
26
 
#include "qgsrect.h"
27
 
//Added by qt3to4:
28
 
#include <QCustomEvent>
29
 
 
30
 
/*!
31
 
 * \brief   A custom event that is designed to be fired when a layer extent has been fully calculated.
 
23
#include <QEvent>
 
24
class QgsRectangle;
 
25
 
 
26
/** \ingroup core
 
27
 * A custom event that is designed to be fired when a layer extent has been fully calculated.
32
28
   \author  Brendan Morley
33
29
   \date    March 2005
34
30
 
35
 
   
36
 
   This QCustomEvent is designed to be fired when the full extent of a layer has been calculated.
 
31
 
 
32
   This custom QEvent is designed to be fired when the full extent of a layer has been calculated.
37
33
   It was initially included in QGIS to help the QgsPostgresProvider provide the asynchronous
38
34
   calculation of PostgreSQL layer extents.
39
 
   
 
35
 
40
36
   Events are used instead of Qt signals/slots as events can be received asynchronously,
41
37
   which makes for better mutlithreading behaviour and less opportunity for programmer mishap.
42
 
  
43
 
 */ 
 
38
 
 
39
 */
44
40
 
45
41
// TODO: Add the pg table this is a extent OF.
46
42
 
47
 
class QgsProviderExtentCalcEvent : public QCustomEvent
 
43
class CORE_EXPORT QgsProviderExtentCalcEvent : public QEvent
48
44
{
49
45
 
50
 
public:
51
 
 
52
 
  QgsProviderExtentCalcEvent( QgsRect* layerExtent );
53
 
 
54
 
  QgsRect* layerExtent() const;
55
 
 
56
 
  
57
 
private:
58
 
 
59
 
  QgsRect* le;
60
 
    
 
46
  public:
 
47
 
 
48
    QgsProviderExtentCalcEvent( QgsRectangle* layerExtent );
 
49
 
 
50
    QgsRectangle* layerExtent() const;
 
51
 
 
52
 
 
53
  private:
 
54
 
 
55
    QgsRectangle* le;
 
56
 
61
57
};
62
58
 
63
59
#endif