File indexing completed on 2025-01-05 03:59:10
0001 /* 0002 SPDX-FileCopyrightText: 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef MARBLE_GEOSCENEPARSER_H 0008 #define MARBLE_GEOSCENEPARSER_H 0009 0010 #include "digikam_export.h" 0011 #include "GeoParser.h" 0012 0013 namespace Marble 0014 { 0015 0016 class GeoDocument; 0017 class GeoSceneDocument; 0018 0019 enum GeoSceneSourceType { 0020 GeoScene_DGML = 0 0021 }; 0022 0023 class DIGIKAM_EXPORT GeoSceneParser : public GeoParser 0024 { 0025 public: 0026 explicit GeoSceneParser(GeoSceneSourceType source); 0027 ~GeoSceneParser() override; 0028 0029 private: 0030 bool isValidElement(const QString& tagName) const override; 0031 bool isValidRootElement() override; 0032 0033 GeoDocument* createDocument() const override; 0034 }; 0035 0036 // Global helper function for the tag handlers 0037 GeoSceneDocument* geoSceneDoc(GeoParser& parser); 0038 0039 } 0040 0041 #endif