~ubuntu-branches/ubuntu/saucy/merkaartor/saucy

« back to all changes in this revision

Viewing changes to Map/ImportOSM.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2009-09-13 00:52:12 UTC
  • mto: (1.2.7 upstream) (0.1.3 upstream) (3.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090913005212-pjecal8zxm07x0fj
ImportĀ upstreamĀ versionĀ 0.14+svnfixes~20090912

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef MERKATOR_IMPORTOSM_H_
2
 
#define MERKATOR_IMPORTOSM_H_
3
 
 
4
 
class CommandList;
5
 
class Downloader;
6
 
class MapDocument;
7
 
class MapFeature;
8
 
class MapLayer;
9
 
 
10
 
class QByteArray;
11
 
class QString;
12
 
class QWidget;
13
 
 
14
 
#include <QXmlDefaultHandler>
15
 
 
16
 
class OSMHandler : public QXmlDefaultHandler
17
 
{
18
 
        public:
19
 
                OSMHandler(MapDocument* aDoc, MapLayer* aLayer, MapLayer* aConflict);
20
 
 
21
 
                virtual bool startElement ( const QString & namespaceURI, const QString & localName, const QString & qName, const QXmlAttributes & atts );
22
 
                virtual bool endElement ( const QString & namespaceURI, const QString & localName, const QString & qName );
23
 
 
24
 
        private:
25
 
                void parseNode(const QXmlAttributes & atts);
26
 
                void parseTag(const QXmlAttributes & atts);
27
 
                void parseWay(const QXmlAttributes & atts);
28
 
                void parseNd(const QXmlAttributes & atts);
29
 
                void parseMember(const QXmlAttributes & atts);
30
 
                void parseRelation(const QXmlAttributes& atts);
31
 
 
32
 
                MapDocument* theDocument;
33
 
                MapLayer* theLayer;
34
 
                MapLayer* conflictLayer;
35
 
                MapFeature* Current;
36
 
                bool NewFeature;
37
 
};
38
 
 
39
 
bool importOSM(QWidget* aParent, const QString& aFilename, MapDocument* theDocument, MapLayer* theLayer);
40
 
bool importOSM(QWidget* aParent, QByteArray& Content, MapDocument* theDocument, MapLayer* theLayer, Downloader* theDownloader);
41
 
 
42
 
#endif