@@ -209,12 +209,20 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
209
209
210
210
/* *
211
211
* Adds new attributes
212
- * @param attributes map with attribute name as key and type as value
212
+ * @param attributes list of new attributes
213
213
* @return true in case of success and false in case of failure
214
- * @note changed in 1.2
214
+ * @note added in 1.2
215
215
*/
216
216
virtual bool addAttributes ( const QList<QgsField> &attributes );
217
217
218
+ /* *
219
+ * Add new attributes
220
+ * @param attributes map of attributes name as key and type as value
221
+ * @return true in case of success and false in case of failure
222
+ * @note deprecated
223
+ */
224
+ virtual bool addAttributes ( const QMap<QString, QString> &attributes );
225
+
218
226
/* *
219
227
* Deletes existing attributes
220
228
* @param attributes a set containing names of attributes
@@ -310,11 +318,18 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
310
318
311
319
312
320
/* *
313
- * Returns the names of the numerical types
321
+ * Returns the names of the supported types
314
322
* @note added in 1.2
315
323
*/
316
324
const QList< NativeType > &nativeTypes () const ;
317
325
326
+
327
+ /* *
328
+ * Returns the names of the supported types
329
+ * @note deprecated
330
+ */
331
+ const QMap<QString, QVariant::Type> &supportedNativeTypes () const ;
332
+
318
333
protected:
319
334
QVariant convertValue ( QVariant::Type type, QString value );
320
335
@@ -337,6 +352,10 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
337
352
338
353
/* *The names of the providers native types*/
339
354
QList< NativeType > mNativeTypes ;
355
+
356
+ private:
357
+ /* * old notation **/
358
+ QMap<QString, QVariant::Type> mOldTypeList ;
340
359
};
341
360
342
361
#endif
0 commit comments