Skip to content

Commit c741d92

Browse files
author
jef
committed
sync QgsVectorDataProvider sip interface
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10983 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ccea976 commit c741d92

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

python/core/qgsvectordataprovider.sip

+15
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,21 @@ class QgsVectorDataProvider : QgsDataProvider
253253
*/
254254
bool supportedType( const QgsField &field ) const;
255255

256+
struct NativeType
257+
{
258+
NativeType( QString typeDesc, QString typeName, QVariant::Type type, int minLen = 0, int maxLen = 0, int minPrec = 0, int maxPrec = 0 );
259+
};
260+
261+
/**
262+
* Returns the names of the supported types
263+
* @note added in 1.2
264+
*/
265+
const QList< QgsVectorDataProvider::NativeType > &nativeTypes() const;
266+
267+
/**Returns the names of the numerical types
268+
@note deprecated */
269+
const QMap<QString,QVariant::Type> &supportedNativeTypes() const;
270+
256271
/**
257272
* Set whether provider should return also features that don't have
258273
* associated geometry. FALSE by default

0 commit comments

Comments
 (0)