File indexing completed on 2024-05-12 03:50:09

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