16 #ifndef QQGSDATAPROVIDER_H
17 #define QQGSDATAPROVIDER_H
22 #include <QStringList>
56 NoDataCapabilities = 0,
64 : mDataSourceURI( uri )
98 return mDataSourceURI;
113 virtual bool isValid() = 0;
135 Q_UNUSED( updateFeatureCount );
151 return QString::null;
197 if ( layers.
count() < 1 )
247 virtual QString description()
const = 0;
306 void fullExtentCalculated();
321 void dataChanged(
int changed );
virtual uint subLayerCount() const
return the number of layers for the current data source
virtual void setSubLayerVisibility(const QString &name, bool vis)
Set the visibility of the given sublayer name.
virtual QString subsetString()
Returns the subset definition string (typically sql) currently in use by the layer and used by the pr...
A rectangle specified with double values.
virtual void updateExtents()
Update the extents of the layer.
virtual QString fileRasterFilters() const
return raster file filter string
virtual bool supportsSubsetString()
provider supports setting of subset strings
QDateTime mTimestamp
Timestamp of data in the moment when the data were loaded by provider.
Abstract base class for spatial data provider implementations.
void setError(const QgsError &theError)
Set error message.
virtual QString fileVectorFilters() const
return vector file filter string
virtual QDateTime dataTimestamp() const
Current time stamp of data source.
virtual QStringList subLayers() const
Sub-layers handled by this provider, in order from bottom to top.
const char * name() const
int count(const T &value) const
QgsDataProvider(QString const &uri="")
virtual bool setSubsetString(QString subset, bool updateFeatureCount=true)
Set the subset string used to create a subset of features in the layer.
virtual QDateTime timestamp() const
Time stamp of data source in the moment when data/metadata were loaded by provider.
virtual void setLayerOrder(const QStringList &layers)
Reorder the list of layer names to be rendered by this provider (in order from bottom to top) ...
QgsErrorMessage represents single error message.
virtual void setDataSourceUri(const QString &uri)
Set the data source specification.
virtual QStringList subLayerStyles() const
Sub-layer styles for each sub-layer handled by this provider, in order from bottom to top...
QgsError is container for error messages (report).
virtual void reloadData()
Reloads the data from the source.
Class for storing a coordinate reference system (CRS)
void appendError(const QgsErrorMessage &theMessage)
Add error message.
virtual ~QgsDataProvider()
We need this so the subclass destructors get called.
virtual QgsError error() const
Get current status error.
virtual QString dataSourceUri() const
Get the data source specification.