Skip to content
Permalink
Browse files

setDataProvider() mustn't be public as it's not intended for use outs…

…ide of QgsVectorLayer.

This fixes ticket #775.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7263 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Oct 11, 2007
1 parent a10199c commit c03502e3c03a3e12f6a59b3394543948e6bc04b4
Showing with 6 additions and 12 deletions.
  1. +0 −6 python/core/qgsvectorlayer.sip
  2. +6 −6 src/core/qgsvectorlayer.h
@@ -29,12 +29,6 @@ public:
/** Returns the primary display field name used in the identify results dialog */
const QString displayField() const;

/** bind layer to a specific data provider
@param provider should be "postgres", "ogr", or ??
@todo XXX should this return bool? Throw exceptions?
*/
bool setDataProvider(const QString & provider );

/** Returns the data provider */
QgsVectorDataProvider* getDataProvider();

@@ -91,12 +91,6 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
/** Returns the primary display field name used in the identify results dialog */
const QString displayField() const;

/** bind layer to a specific data provider
@param provider should be "postgres", "ogr", or ??
@todo XXX should this return bool? Throw exceptions?
*/
bool setDataProvider( QString const & provider );

/** Returns the data provider */
QgsVectorDataProvider* getDataProvider();

@@ -413,6 +407,12 @@ public slots:
/** vector layers are not copyable */
QgsVectorLayer & operator=( QgsVectorLayer const & rhs );

/** bind layer to a specific data provider
@param provider should be "postgres", "ogr", or ??
@todo XXX should this return bool? Throw exceptions?
*/
bool setDataProvider( QString const & provider );

/** Draws features. May cause projections exceptions to be generated
* (i.e., code that calls this function needs to catch them
*/

0 comments on commit c03502e

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