QGIS API Documentation
2.2.0-Valmiera
|
A custom event that is designed to be fired when a layer count has been fully calculated. More...
#include <qgsprovidercountcalcevent.h>
Public Member Functions | |
QgsProviderCountCalcEvent (long featuresCounted) | |
long | featuresCounted () const |
Private Attributes | |
long | n |
A custom event that is designed to be fired when a layer count has been fully calculated.
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 41 of file qgsprovidercountcalcevent.h.
QgsProviderCountCalcEvent::QgsProviderCountCalcEvent | ( | long | featuresCounted | ) |
Definition at line 22 of file qgsprovidercountcalcevent.cpp.
long QgsProviderCountCalcEvent::featuresCounted | ( | ) | const |
Definition at line 30 of file qgsprovidercountcalcevent.cpp.
References n.
|
private |
Definition at line 53 of file qgsprovidercountcalcevent.h.
Referenced by featuresCounted().