16 #ifndef QQGSDATAPROVIDER_H
17 #define QQGSDATAPROVIDER_H
22 #include <QStringList>
54 NoDataCapabilities = 0,
62 : mDataSourceURI( uri )
84 virtual void setDataSourceUri(
const QString & uri )
94 virtual QString dataSourceUri()
const
96 return mDataSourceURI;
111 virtual bool isValid() = 0;
117 virtual void updateExtents()
129 virtual bool setSubsetString( QString subset,
bool updateFeatureCount =
true )
133 Q_UNUSED( updateFeatureCount );
150 virtual QString subsetString()
152 return QString::null;
162 virtual QStringList subLayers()
const
164 return QStringList();
175 virtual QStringList subLayerStyles()
const
177 return QStringList();
184 virtual uint subLayerCount()
const
195 virtual void setLayerOrder(
const QStringList &layers )
198 if ( layers.count() < 1 )
209 virtual void setSubLayerVisibility(
const QString &name,
bool vis )
212 if ( name.isEmpty() || !vis )
234 virtual QString name()
const = 0;
248 virtual QString description()
const = 0;
262 virtual QString fileVectorFilters()
const
279 virtual QString fileRasterFilters()
const
289 virtual QDateTime
timestamp()
const {
return mTimestamp; }
307 void fullExtentCalculated();
321 void dataChanged(
int changed );