Marble

GeoDataParser.h
1/*
2 SPDX-FileCopyrightText: 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef MARBLE_GEODATAPARSER_H
8#define MARBLE_GEODATAPARSER_H
9
10#include "GeoParser.h"
11#include "geodata_export.h"
12
13namespace Marble
14{
15
16class GeoDocument;
17class GeoDataDocument;
18
19enum GeoDataSourceType {
20 GeoData_UNKNOWN = -1,
21 GeoData_KML = 1,
22 GeoData_GeoRSS = 2
23};
24
25class GEODATA_EXPORT GeoDataParser : public GeoParser
26{
27public:
28 explicit GeoDataParser(GeoDataSourceType source);
29 ~GeoDataParser() override;
30
31private:
32 bool isValidElement(const QString &tagName) const override;
33 bool isValidRootElement() override;
34
35 GeoDocument *createDocument() const override;
36};
37
38// Global helper function for the tag handlers
39GEODATA_EXPORT GeoDataDocument *geoDataDoc(GeoParser &parser);
40
41}
42
43#endif
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.