@@ -36,16 +36,7 @@ class QgsCoordinateReferenceSystem;
36
36
/* *
37
37
* \ingroup core
38
38
* Abstract base class for spatial data provider implementations.
39
- *
40
- * This object needs to inherit from QObject to enable event
41
- * processing in the Postgres/PostGIS provider (QgsPostgresProvider).
42
- * It is called *here* so that this vtable and the vtable for
43
- * QgsPostgresProvider don't get misaligned -
44
- * the QgsVectorLayer class factory (which refers
45
- * to generic QgsVectorDataProvider's) depends on it.
46
39
*/
47
-
48
-
49
40
class CORE_EXPORT QgsDataProvider : public QObject
50
41
{
51
42
@@ -534,23 +525,29 @@ class CORE_EXPORT QgsDataProvider : public QObject
534
525
signals:
535
526
536
527
/* *
537
- * This is emitted whenever the worker thread has fully calculated the
538
- * PostGIS extents for this layer, and its event has been received by this
539
- * provider.
528
+ * Emitted whenever a deffered extent calculation is completed by the provider.
529
+ *
530
+ * Layers should connect to this signal and update their cached extents whenever
531
+ * it is emitted.
540
532
*/
541
533
void fullExtentCalculated ();
542
534
543
535
/* *
544
- * This is emitted whenever an asynchronous operation has finished
545
- * and the data should be redrawn
536
+ * Emitted whenever a change is made to the data provider which may have
537
+ * caused changes in the provider's data OUTSIDE of QGIS.
538
+ *
539
+ * When emitted from a QgsVectorDataProvider, any cached information such as
540
+ * feature ids should be invalidated.
546
541
*
547
- * When emitted from a QgsVectorDataProvider, any cached information such as
548
- * feature ids should be invalidated.
542
+ * \warning This signal is NOT emitted when changes are made to a provider
543
+ * from INSIDE QGIS -- e.g. when adding features to a vector layer, deleting features
544
+ * or modifying existing features. Instead, the specific QgsVectorLayer signals
545
+ * should be used to detect these operations.
549
546
*/
550
547
void dataChanged ();
551
548
552
549
/* *
553
- * Emitted when datasource issues a notification
550
+ * Emitted when the datasource issues a notification.
554
551
*
555
552
* \see setListening
556
553
*
0 commit comments