16 #ifndef QQGSDATAPROVIDER_H    17 #define QQGSDATAPROVIDER_H    22 #include <QStringList>    57       NoDataCapabilities  = 0,
    65         : mDataSourceURI( uri )
   103       if ( expandAuthConfig && mDataSourceURI.contains( 
"authcfg" ) )
   106         return uri.
uri( expandAuthConfig );
   110         return mDataSourceURI;
   126     virtual bool isValid() = 0;
   148       Q_UNUSED( updateFeatureCount );
   164       return QString::null;
   210       if ( layers.
count() < 1 )
   260     virtual QString description() 
const = 0;
   316     void fullExtentCalculated();
   331     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...
 
virtual bool setSubsetString(const QString &subset, bool updateFeatureCount=true)
Set the subset string used to create a subset of features in the layer. 
 
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 QDateTime timestamp() const 
Time stamp of data source in the moment when data/metadata were loaded by provider. 
 
virtual QString dataSourceUri(bool expandAuthConfig=false) const 
Get the data source specification. 
 
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...
 
Class for storing the component parts of a PostgreSQL/RDBMS datasource URI. 
 
QgsError is container for error messages (report). 
 
void append(const QString &theMessage, const QString &theTag)
Append new error message. 
 
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. 
 
QString uri(bool expandAuthConfig=true) const 
return complete uri 
 
virtual QgsError error() const 
Get current status error.