<div dir="ltr">Chris,<br><div><br></div><div style>Also not there is previsions to add this kind of thing to QgsFeatureRequest <a href="http://www.qgis.org/api/qgsfeaturerequest_8h_source.html">http://www.qgis.org/api/qgsfeaturerequest_8h_source.html</a></div>

<div style><br></div><div style>- Nathan </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 4:33 PM, Chris Crook <span dir="ltr"><<a href="mailto:ccrook@linz.govt.nz" target="_blank">ccrook@linz.govt.nz</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All<br>
<br>
As we are looking at API tidy ups (I understand), would there be any support for providing a bit more granularity in supportsSubsetString.  At the moment this is a simple boolean, and the GUI offers a SQL based subset string builder.<br>


<br>
However not all providers naturally use SQL based strings.  I'm interested in adding subset capability to the delimited text provider, whichi I've done using QgsExpression as the basis for subsets.  This works very well except that the GUI isn't an expression builder.  I think there may be similar issues with the WFS provider.<br>


<br>
What I am proposing is something more like an enum QgsDataProvider::SubsetStringType, which could then be interrogated by the properties dialog to select the appropriate query builder dialog.<br>
<br>
Logically this would supplant the supportsSubsetString boolean which could be deprecated, replaced with<br>
<br>
virtual QgsDataProvider::SubsetStringType QgsDataProvider::subsetStringType(){ return NoSubsetString; }<br>
<br>
Other types could be SqlSubsetString, ExpressionSubsetString, ...?<br>
<br>
Thoughts anyone?<br>
<br>
Thanks<br>
Chris<br>
<br>
This message contains information, which is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or <a href="mailto:info@linz.govt.nz">info@linz.govt.nz</a>) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.<br>


_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div>