2
// C++ Interface: qgsogrfactory
7
// Author: Christoph Spoerri <spoerri@sourceforge.net>, (C) 2004
9
// Copyright: See COPYING file that comes with this distribution
12
#ifndef QGSOGRFACTORY_H
13
#define QGSOGRFACTORY_H
16
#include <qstringlist.h>
18
#include <ogrsf_frmts.h>
20
#include "qgsshapefileprovider.h"
21
#include "../../src/qgsdataproviderfactory.h"
22
#include "../../src/qgsdataprovider.h"
27
@author Christoph Spoerri
29
class QgsOGRFactory : public QgsDataProviderFactory
33
virtual ~QgsOGRFactory();
35
QString getFactoryType() { return "OGR Dataprovider Factory"; }
36
bool testCapability(int);
37
void setURI(QString uri);
38
QStringList getLayers();
39
bool create(QString newLocation, QString newName, QString type);
40
QgsDataProvider* open(QString name);
42
bool copy(QString oldName, QString newName);
43
bool copy(QString oldName, QString newLocation, QString newName) {};
44
bool move(QString newLocation) {};
45
bool rename(QString newName) {};
49
QString dataSourceURI;
50
OGRDataSource * ogrDS;
51
OGRSFDriver * ogrDriver;