Marble

GeoDataParser.h
1 /*
2  SPDX-FileCopyrightText: 2007, 2008 Nikolas Zimmermann <[email protected]>
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 "geodata_export.h"
11 #include "GeoParser.h"
12 
13 namespace Marble
14 {
15 
16 class GeoDocument;
17 class GeoDataDocument;
18 
19 enum GeoDataSourceType {
20  GeoData_UNKNOWN = -1,
21  GeoData_KML = 1,
22  GeoData_GeoRSS = 2
23 };
24 
25 class GEODATA_EXPORT GeoDataParser : public GeoParser
26 {
27 public:
28  explicit GeoDataParser(GeoDataSourceType source);
29  ~GeoDataParser() override;
30 
31 private:
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
39 GEODATA_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-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:09:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.