<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>
&gt; Hi!<br>
</tt><br>
<tt>&gt; Probably a WIKI page with proposed API updates/cleanings?<br>
&gt; Could be handy for Documentation afterwards too<br>
</tt><br>
<tt>&gt; regards<br>
&gt; Werner<br>
&gt; Am 12.09.2011 14:28, schrieb Martin Dobias:<br>
&gt; &gt; Hi Giuseppe<br>
&gt; &gt;<br>
&gt; &gt; feel free to mark the such methods as deprecated - when we start<br>
&gt; &gt; cleaning the API it will be handy.<br>
&gt; &gt;<br>
&gt; &gt; Martin<br>
&gt; &gt;<br>
&gt; &gt; On Mon, Sep 12, 2011 at 2:22 PM, Giuseppe Sucameli<br>
&gt; &gt; &lt;brush.tyler@gmail.com&gt; &nbsp;wrote:<br>
&gt; &gt;&gt; Also QgsRasterLayer::usesProvider() should be deprecated<br>
&gt; &gt;&gt; because file-based rasters use gdal provider now.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Mon, Sep 12, 2011 at 1:39 PM, Giuseppe Sucameli<br>
&gt; &gt;&gt; &lt;brush.tyler@gmail.com&gt; &nbsp;wrote:<br>
&gt; &gt;&gt;&gt; Hi devs,<br>
&gt; &gt;&gt;&gt; thinking to 2.0, we should uniform API by using the same name <br>
&gt; for these methods<br>
&gt; &gt;&gt;&gt; QgsRasterLayer::providerKey() and QgsVectorLayer::providerType().<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I think is better to use providerType() for both them.<br>
&gt; &gt;&gt;&gt; Cheers.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; --<br>
&gt; &gt;&gt;&gt; Giuseppe Sucameli<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; Giuseppe Sucameli<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; Qgis-developer mailing list<br>
&gt; &gt;&gt; Qgis-developer@lists.osgeo.org<br>
&gt; &gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
&gt; &gt;&gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Qgis-developer mailing list<br>
&gt; &gt; Qgis-developer@lists.osgeo.org<br>
&gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</tt><br>
<tt>&gt; _______________________________________________<br>
&gt; Qgis-developer mailing list<br>
&gt; Qgis-developer@lists.osgeo.org<br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></tt></body></html>