QgsProviderCountCalcEvent Class Reference
[Core]

#include <qgsprovidercountcalcevent.h>

List of all members.


Detailed Description

A custom event that is designed to be fired when a layer count has been fully calculated.

Author:
Brendan Morley
Date:
March 2005
This custom QEvent is designed to be fired when the full item count of a layer has been calculated. It was initially included in QGIS to help the QgsPostgresProvider provide the asynchronous calculation of PostgreSQL layer counts.

Events are used instead of Qt signals/slots as events can be received asynchronously, which makes for better mutlithreading behaviour and less opportunity for programmer mishap.

Definition at line 42 of file qgsprovidercountcalcevent.h.

Public Member Functions

 QgsProviderCountCalcEvent (long featuresCounted)
long featuresCounted () const

Private Attributes

long n


Constructor & Destructor Documentation

QgsProviderCountCalcEvent::QgsProviderCountCalcEvent ( long  featuresCounted  ) 

Definition at line 23 of file qgsprovidercountcalcevent.cpp.


Member Function Documentation

long QgsProviderCountCalcEvent::featuresCounted (  )  const

Definition at line 31 of file qgsprovidercountcalcevent.cpp.

References n.


Member Data Documentation

long QgsProviderCountCalcEvent::n [private]

Definition at line 54 of file qgsprovidercountcalcevent.h.

Referenced by featuresCounted().


The documentation for this class was generated from the following files:
Generated on Tue Jan 6 16:51:22 2009 for Quantum GIS API Documentation by  doxygen 1.5.1