16 #ifndef QQGSDATAPROVIDER_H
17 #define QQGSDATAPROVIDER_H
22 #include <QStringList>
56 NoDataCapabilities = 0,
64 : mDataSourceURI( uri )
86 virtual void setDataSourceUri(
const QString & uri )
96 virtual QString dataSourceUri()
const
98 return mDataSourceURI;
113 virtual bool isValid() = 0;
119 virtual void updateExtents()
131 virtual bool setSubsetString( QString subset,
bool updateFeatureCount =
true )
135 Q_UNUSED( updateFeatureCount );
149 virtual QString subsetString()
151 return QString::null;
161 virtual QStringList subLayers()
const
163 return QStringList();
174 virtual QStringList subLayerStyles()
const
176 return QStringList();
183 virtual uint subLayerCount()
const
194 virtual void setLayerOrder(
const QStringList &layers )
197 if ( layers.count() < 1 )
208 virtual void setSubLayerVisibility(
const QString &name,
bool vis )
211 if ( name.isEmpty() || !vis )
233 virtual QString name()
const = 0;
247 virtual QString description()
const = 0;
261 virtual QString fileVectorFilters()
const
278 virtual QString fileRasterFilters()
const
288 virtual QDateTime
timestamp()
const {
return mTimestamp; }
306 void fullExtentCalculated();
318 void dataChanged(
int changed );
341 QString mDataSourceURI;