Skip to content

Commit 9df3eb3

Browse files
committed
Dox++
1 parent 82ebf8a commit 9df3eb3

File tree

2 files changed

+28
-32
lines changed

2 files changed

+28
-32
lines changed

python/core/auto_generated/qgsdataprovider.sip.in

+14-15
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,10 @@
1111

1212

1313

14-
15-
1614
class QgsDataProvider : QObject
1715
{
1816
%Docstring
1917
Abstract base class for spatial data provider implementations.
20-
21-
This object needs to inherit from QObject to enable event
22-
processing in the Postgres/PostGIS provider (QgsPostgresProvider).
23-
It is called *here* so that this vtable and the vtable for
24-
QgsPostgresProvider don't get misaligned -
25-
the QgsVectorLayer class factory (which refers
26-
to generic QgsVectorDataProvider's) depends on it.
2718
%End
2819

2920
%TypeHeaderCode
@@ -401,23 +392,31 @@ Returns true if metadata was successfully written to the data provider.
401392

402393
void fullExtentCalculated();
403394
%Docstring
404-
This is emitted whenever the worker thread has fully calculated the
405-
PostGIS extents for this layer, and its event has been received by this
406-
provider.
395+
Emitted whenever a deffered extent calculation is completed by the provider.
396+
397+
Layers should connect to this signal and update their cached extents whenever
398+
it is emitted.
407399
%End
408400

409401
void dataChanged();
410402
%Docstring
411-
This is emitted whenever an asynchronous operation has finished
412-
and the data should be redrawn
403+
Emitted whenever a change is made to the data provider which may have
404+
caused changes in the provider's data OUTSIDE of QGIS.
413405

414406
When emitted from a :py:class:`QgsVectorDataProvider`, any cached information such as
415407
feature ids should be invalidated.
408+
409+
.. warning::
410+
411+
This signal is NOT emitted when changes are made to a provider
412+
from INSIDE QGIS -- e.g. when adding features to a vector layer, deleting features
413+
or modifying existing features. Instead, the specific QgsVectorLayer signals
414+
should be used to detect these operations.
416415
%End
417416

418417
void notify( const QString &msg );
419418
%Docstring
420-
Emitted when datasource issues a notification
419+
Emitted when the datasource issues a notification.
421420

422421
.. seealso:: :py:func:`setListening`
423422

src/core/qgsdataprovider.h

+14-17
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,7 @@ class QgsCoordinateReferenceSystem;
3636
/**
3737
* \ingroup core
3838
* 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.
4639
*/
47-
48-
4940
class CORE_EXPORT QgsDataProvider : public QObject
5041
{
5142

@@ -534,23 +525,29 @@ class CORE_EXPORT QgsDataProvider : public QObject
534525
signals:
535526

536527
/**
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.
540532
*/
541533
void fullExtentCalculated();
542534

543535
/**
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.
546541
*
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.
549546
*/
550547
void dataChanged();
551548

552549
/**
553-
* Emitted when datasource issues a notification
550+
* Emitted when the datasource issues a notification.
554551
*
555552
* \see setListening
556553
*

0 commit comments

Comments
 (0)