Skip to content

Commit 67fdbb5

Browse files
author
timlinux
committed
Changed begin() to rewind() on provider interface
git-svn-id: http://svn.osgeo.org/qgis/trunk@9582 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent eee62d8 commit 67fdbb5

17 files changed

+28
-28
lines changed

python/core/qgsvectordataprovider.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class QgsVectorDataProvider : QgsDataProvider
112112
virtual QString dataComment() const;
113113

114114
/** Restart reading features from previous select operation */
115-
virtual void begin() = 0;
115+
virtual void rewind() = 0;
116116

117117
/**
118118
* Returns the minimum value of an attributs

src/core/qgsvectordataprovider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
155155
virtual QString dataComment() const;
156156

157157
/** Restart reading features from previous select operation */
158-
virtual void begin() = 0;
158+
virtual void rewind() = 0;
159159

160160
/**
161161
* Returns the minimum value of an attribute

src/providers/delimitedtext/qgsdelimitedtextprovider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ void QgsDelimitedTextProvider::select( QgsAttributeList fetchAttributes,
434434
{
435435
mSelectionRectangle = rect;
436436
}
437-
begin();
437+
rewind();
438438
}
439439

440440

@@ -476,7 +476,7 @@ const QgsFieldMap & QgsDelimitedTextProvider::fields() const
476476
return attributeFields;
477477
}
478478

479-
void QgsDelimitedTextProvider::begin()
479+
void QgsDelimitedTextProvider::rewind()
480480
{
481481
// Reset feature id to 0
482482
mFid = 0;

src/providers/delimitedtext/qgsdelimitedtextprovider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class QgsDelimitedTextProvider : public QgsVectorDataProvider
103103
virtual const QgsFieldMap & fields() const;
104104

105105
/** Restart reading features from previous select operation */
106-
virtual void begin();
106+
virtual void rewind();
107107

108108
/** Returns a bitmask containing the supported capabilities
109109
Note, some capabilities may change depending on whether

src/providers/gpx/qgsgpxprovider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ void QgsGPXProvider::select( QgsAttributeList fetchAttributes,
425425
mAttributesToFetch = fetchAttributes;
426426
mFetchGeom = fetchGeometry;
427427

428-
begin();
428+
rewind();
429429
}
430430

431431

@@ -482,7 +482,7 @@ const QgsFieldMap& QgsGPXProvider::fields() const
482482
}
483483

484484

485-
void QgsGPXProvider::begin()
485+
void QgsGPXProvider::rewind()
486486
{
487487
if ( mFeatureType == WaypointType )
488488
mWptIter = data->waypointsBegin();

src/providers/gpx/qgsgpxprovider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class QgsGPXProvider : public QgsVectorDataProvider
9393
virtual const QgsFieldMap & fields() const;
9494

9595
/** Restart reading features from previous select operation */
96-
virtual void begin();
96+
virtual void rewind();
9797

9898
/**
9999
* Adds a list of features

src/providers/grass/qgsgrassprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ int QgsGrassProvider::keyField()
557557
return mLayers[mLayerId].keyColumn;
558558
}
559559

560-
void QgsGrassProvider::begin()
560+
void QgsGrassProvider::rewind()
561561
{
562562
if ( isEdited() || isFrozen() || !mValid )
563563
return;

src/providers/grass/qgsgrassprovider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class GRASS_EXPORT QgsGrassProvider : public QgsVectorDataProvider
175175
int keyField();
176176

177177
/** Restart reading features from previous select operation */
178-
void begin();
178+
void rewind();
179179

180180
/** Returns the minimum value of an attributs
181181
* @param index the index of the attribute */

src/providers/memory/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
SET (MEMORY_SRCS memoryprovider.cpp)
2+
SET (MEMORY_SRCS qgsmemoryprovider.cpp)
33

44
INCLUDE_DIRECTORIES(
55
.

src/providers/memory/memoryprovider.cpp renamed to src/providers/memory/qgsmemoryprovider.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* *
1414
***************************************************************************/
1515

16-
#include "memoryprovider.h"
16+
#include "qgsmemoryprovider.h"
1717

1818
#include "qgsfeature.h"
1919
#include "qgsfield.h"
@@ -175,10 +175,10 @@ void QgsMemoryProvider::select( QgsAttributeList fetchAttributes,
175175
mSelectSI_Features.clear();
176176
}
177177

178-
begin();
178+
rewind();
179179
}
180180

181-
void QgsMemoryProvider::begin()
181+
void QgsMemoryProvider::rewind()
182182
{
183183
if ( mSelectUsingSpatialIndex )
184184
mSelectSI_Iterator = mSelectSI_Features.begin();

0 commit comments

Comments
 (0)