QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
QgsProviderCountCalcEvent Class Reference

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

#include <qgsprovidercountcalcevent.h>

Inheritance diagram for QgsProviderCountCalcEvent:
Inheritance graph
[legend]

Public Member Functions

 QgsProviderCountCalcEvent (long featuresCounted)
 
long featuresCounted () const
 

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.

Constructor & Destructor Documentation

QgsProviderCountCalcEvent::QgsProviderCountCalcEvent ( long  featuresCounted)

Member Function Documentation

long QgsProviderCountCalcEvent::featuresCounted ( ) const

The documentation for this class was generated from the following files: