File indexing completed on 2025-01-05 03:59:00
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2013 Sanjiban Bairagya <sanjiban22393@gmail.com> 0004 // 0005 0006 #ifndef GEODATARESOURCEMAP_H 0007 #define GEODATARESOURCEMAP_H 0008 0009 #include "GeoDocument.h" 0010 #include "MarbleGlobal.h" 0011 0012 namespace Marble { 0013 0014 class GeoDataAlias; 0015 class GeoDataResourceMapPrivate; 0016 0017 /** 0018 */ 0019 class DIGIKAM_EXPORT GeoDataResourceMap: public GeoNode 0020 { 0021 public: 0022 GeoDataResourceMap(); 0023 0024 GeoDataResourceMap( const GeoDataResourceMap &other ); 0025 0026 GeoDataResourceMap& operator=( const GeoDataResourceMap &other ); 0027 0028 bool operator==( const GeoDataResourceMap &other ) const; 0029 bool operator!=( const GeoDataResourceMap &other ) const; 0030 0031 ~GeoDataResourceMap() override; 0032 0033 /** Provides type information for downcasting a GeoNode */ 0034 const char* nodeType() const override; 0035 0036 const GeoDataAlias& alias() const; 0037 0038 GeoDataAlias& alias(); 0039 0040 void setAlias( const GeoDataAlias &alias); 0041 0042 QString sourceHref() const; 0043 0044 void setSourceHref( const QString& sourceHref ); 0045 0046 QString targetHref() const; 0047 0048 void setTargetHref( const QString& targetHref ); 0049 0050 private: 0051 GeoDataResourceMapPrivate* const d; 0052 }; 0053 0054 } 0055 0056 #endif // GEODATARESOURCEMAP_H