<html><body>
<p>Another useful method:<br>
<br>
QgsDataProvider.searchForFeatures ( fieldIndex, searchString, searchMethod = 0 )<br>
<br>
fieldIndex: search on idx-th field;<br>
searchString: search terms;<br>
searchMethod:<br>
0x00001 = match whole searchString<br>
0x00002 = search inside values;<br>
<br>
it returns an array of found features.<br>
<br>
<br>
<br>
<tt>qgis-developer-bounces@lists.osgeo.org scritti il 12/09/2011 14.30.59<br>
<br>
> Hi!<br>
</tt><br>
<tt>> Probably a WIKI page with proposed API updates/cleanings?<br>
> Could be handy for Documentation afterwards too<br>
</tt><br>
<tt>> regards<br>
> Werner<br>
> Am 12.09.2011 14:28, schrieb Martin Dobias:<br>
> > Hi Giuseppe<br>
> ><br>
> > feel free to mark the such methods as deprecated - when we start<br>
> > cleaning the API it will be handy.<br>
> ><br>
> > Martin<br>
> ><br>
> > On Mon, Sep 12, 2011 at 2:22 PM, Giuseppe Sucameli<br>
> > <brush.tyler@gmail.com> wrote:<br>
> >> Also QgsRasterLayer::usesProvider() should be deprecated<br>
> >> because file-based rasters use gdal provider now.<br>
> >><br>
> >> On Mon, Sep 12, 2011 at 1:39 PM, Giuseppe Sucameli<br>
> >> <brush.tyler@gmail.com> wrote:<br>
> >>> Hi devs,<br>
> >>> thinking to 2.0, we should uniform API by using the same name <br>
> for these methods<br>
> >>> QgsRasterLayer::providerKey() and QgsVectorLayer::providerType().<br>
> >>><br>
> >>> I think is better to use providerType() for both them.<br>
> >>> Cheers.<br>
> >>><br>
> >>> --<br>
> >>> Giuseppe Sucameli<br>
> >>><br>
> >><br>
> >><br>
> >><br>
> >> --<br>
> >> Giuseppe Sucameli<br>
> >> _______________________________________________<br>
> >> Qgis-developer mailing list<br>
> >> Qgis-developer@lists.osgeo.org<br>
> >> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> >><br>
> > _______________________________________________<br>
> > Qgis-developer mailing list<br>
> > Qgis-developer@lists.osgeo.org<br>
> > <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</tt><br>
<tt>> _______________________________________________<br>
> Qgis-developer mailing list<br>
> Qgis-developer@lists.osgeo.org<br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></tt></body></html>