Skip to content
Permalink
Browse files

Sip coverage: first attempt

  • Loading branch information
jgrocha committed Jan 27, 2017
1 parent 0eaf7bf commit 72c5cf008843092286e10d15914896ae4c432673
Showing with 20 additions and 0 deletions.
  1. +11 −0 python/core/qgsvectordataprovider.sip
  2. +9 −0 src/core/qgsvectordataprovider.h
@@ -407,6 +407,17 @@ class QgsVectorDataProvider : QgsDataProvider
*/
virtual bool isSaveAndLoadStyleToDBSupported() const;

/**
* It returns false by default.
* Must be implemented by providers that support delete styles from db returning true
*/
virtual bool isDeleteStyleFromDBSupported() const;

/**
* Deletes an existing style from the provider
*/
virtual void deleteStyleById( const QString& uri, QString styleId, QString& errCause );

static QVariant convertValue( QVariant::Type type, const QString& value );

/**
@@ -469,7 +469,16 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
* Must be implemented by providers that support saving and loading styles to db returning true
*/
virtual bool isSaveAndLoadStyleToDBSupported() const;

/**
* It returns false by default.
* Must be implemented by providers that support delete styles from db returning true
*/
virtual bool isDeleteStyleFromDBSupported() const;

/**
* Deletes an existing style from the provider
*/
virtual void deleteStyleById( const QString& uri, QString styleId, QString& errCause );

static QVariant convertValue( QVariant::Type type, const QString& value );

0 comments on commit 72c5cf0

Please sign in to comment.
You can’t perform that action at this time.