@@ -92,7 +92,7 @@ class QgsOracleProvider : public QgsVectorDataProvider
92
92
* If the provider isn't capable of returning
93
93
* its projection an empty srs will be returned
94
94
*/
95
- virtual QgsCoordinateReferenceSystem crs () override ;
95
+ virtual QgsCoordinateReferenceSystem crs () const override ;
96
96
97
97
/* * Get the feature type. This corresponds to
98
98
* WKBPoint,
@@ -133,7 +133,7 @@ class QgsOracleProvider : public QgsVectorDataProvider
133
133
134
134
/* * Return the extent for this data layer
135
135
*/
136
- virtual QgsRectangle extent () override ;
136
+ virtual QgsRectangle extent () const override ;
137
137
138
138
/* * Update the extent
139
139
*/
@@ -147,7 +147,7 @@ class QgsOracleProvider : public QgsVectorDataProvider
147
147
* Get the field information for the layer
148
148
* @return vector of QgsField objects
149
149
*/
150
- const QgsFields & fields () const override ;
150
+ QgsFields fields () const override ;
151
151
152
152
/* *
153
153
* Return a short comment for the data that this provider is
@@ -161,28 +161,28 @@ class QgsOracleProvider : public QgsVectorDataProvider
161
161
162
162
/* * Returns the minimum value of an attribute
163
163
* @param index the index of the attribute */
164
- QVariant minimumValue ( int index ) override ;
164
+ QVariant minimumValue ( int index ) const override ;
165
165
166
166
/* * Returns the maximum value of an attribute
167
167
* @param index the index of the attribute */
168
- QVariant maximumValue ( int index ) override ;
168
+ QVariant maximumValue ( int index ) const override ;
169
169
170
170
/* * Return the unique values of an attribute
171
171
* @param index the index of the attribute
172
172
* @param values reference to the list of unique values */
173
- virtual void uniqueValues ( int index, QList<QVariant> &uniqueValues, int limit = -1 ) override ;
173
+ virtual void uniqueValues ( int index, QList<QVariant> &uniqueValues, int limit = -1 ) const override ;
174
174
175
175
/* * Returns true if layer is valid
176
176
*/
177
- bool isValid () override ;
177
+ bool isValid () const override ;
178
178
179
- QgsAttributeList pkAttributeIndexes () override { return mPrimaryKeyAttrs ; }
179
+ QgsAttributeList pkAttributeIndexes () const override { return mPrimaryKeyAttrs ; }
180
180
181
181
/* * Returns the default value for field specified by @c fieldName */
182
182
QVariant defaultValue ( QString fieldName, QString tableName = QString::null, QString schemaName = QString::null );
183
183
184
184
/* * Returns the default value for field specified by @c fieldId */
185
- QVariant defaultValue ( int fieldId ) override ;
185
+ QVariant defaultValue ( int fieldId ) const override ;
186
186
187
187
/* * Adds a list of features
188
188
@return true in case of success and false in case of failure*/
@@ -230,12 +230,12 @@ class QgsOracleProvider : public QgsVectorDataProvider
230
230
QString getTableName ();
231
231
232
232
/* * Accessor for sql where clause used to limit dataset */
233
- QString subsetString () override ;
233
+ QString subsetString () const override ;
234
234
235
235
/* * Mutator for sql where clause used to limit dataset size */
236
236
bool setSubsetString ( const QString& theSQL, bool updateFeatureCount = true ) override ;
237
237
238
- virtual bool supportsSubsetString () override { return true ; }
238
+ virtual bool supportsSubsetString () const override { return true ; }
239
239
240
240
/* * Returns a bitmask containing the supported capabilities*/
241
241
int capabilities () const override ;
@@ -272,14 +272,14 @@ class QgsOracleProvider : public QgsVectorDataProvider
272
272
/* *
273
273
* Query the provider for features specified in request.
274
274
*/
275
- virtual QgsFeatureIterator getFeatures ( const QgsFeatureRequest &request = QgsFeatureRequest() ) override ;
275
+ virtual QgsFeatureIterator getFeatures ( const QgsFeatureRequest &request = QgsFeatureRequest() ) const override ;
276
276
277
277
static bool exec ( QSqlQuery &qry, QString sql );
278
278
279
279
/* *
280
280
* It returns true. Saving style to db is supported by this provider
281
281
*/
282
- virtual bool isSaveAndLoadStyleToDBSupported () override { return true ; }
282
+ virtual bool isSaveAndLoadStyleToDBSupported () const override { return true ; }
283
283
284
284
private:
285
285
QString whereClause ( QgsFeatureId featureId ) const ;
@@ -344,14 +344,14 @@ class QgsOracleProvider : public QgsVectorDataProvider
344
344
QList<int > mPrimaryKeyAttrs ;
345
345
QString mPrimaryKeyDefault ;
346
346
347
- QString mGeometryColumn ; // ! name of the geometry column
348
- QgsRectangle mLayerExtent ; // ! Rectangle that contains the extent (bounding box) of the layer
349
- mutable long mFeaturesCounted ; // ! Number of features in the layer
350
- int mSrid ; // ! srid of column
351
- int mEnabledCapabilities ; // ! capabilities of layer
347
+ QString mGeometryColumn ; // ! name of the geometry column
348
+ mutable QgsRectangle mLayerExtent ; // ! Rectangle that contains the extent (bounding box) of the layer
349
+ mutable long mFeaturesCounted ; // ! Number of features in the layer
350
+ int mSrid ; // ! srid of column
351
+ int mEnabledCapabilities ; // ! capabilities of layer
352
352
353
- QGis::WkbType mDetectedGeomType ; // ! geometry type detected in the database
354
- QGis::WkbType mRequestedGeomType ; // ! geometry type requested in the uri
353
+ QGis::WkbType mDetectedGeomType ; // ! geometry type detected in the database
354
+ QGis::WkbType mRequestedGeomType ; // ! geometry type requested in the uri
355
355
356
356
bool getGeometryDetails ();
357
357
0 commit comments