~ubuntu-branches/ubuntu/trusty/qgis/trusty

« back to all changes in this revision

Viewing changes to src/providers/ogr/qgsogrfactory.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
// C++ Interface: qgsogrfactory
3
 
//
4
 
// Description: 
5
 
//
6
 
//
7
 
// Author: Christoph Spoerri <spoerri@sourceforge.net>, (C) 2004
8
 
//
9
 
// Copyright: See COPYING file that comes with this distribution
10
 
//
11
 
//
12
 
#ifndef QGSOGRFACTORY_H
13
 
#define QGSOGRFACTORY_H
14
 
 
15
 
#include <qstring.h>
16
 
#include <qstringlist.h>
17
 
 
18
 
#include <ogrsf_frmts.h>
19
 
 
20
 
#include "qgsshapefileprovider.h"
21
 
#include "../../src/qgsdataproviderfactory.h"
22
 
#include "../../src/qgsdataprovider.h"
23
 
 
24
 
 
25
 
 
26
 
/**
27
 
@author Christoph Spoerri
28
 
*/
29
 
class QgsOGRFactory : public QgsDataProviderFactory
30
 
{
31
 
public:
32
 
    QgsOGRFactory();
33
 
    virtual ~QgsOGRFactory();
34
 
    
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);
41
 
 
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) {};
46
 
 
47
 
private:
48
 
    bool valid;
49
 
    QString dataSourceURI;
50
 
    OGRDataSource * ogrDS;
51
 
    OGRSFDriver * ogrDriver;
52
 
 
53
 
};
54
 
 
55
 
#endif