Warning, file /education/marble/tools/osm-sisyphus/region.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2011 Dennis Nienhüser <nienhueser@kde.org> 0004 // 0005 0006 #ifndef REGION_H 0007 #define REGION_H 0008 0009 #include <QString> 0010 #include <QObject> 0011 #include <QFileInfo> 0012 0013 class Region 0014 { 0015 Q_PROPERTY(QString continent READ continent WRITE setContinent) 0016 Q_PROPERTY(QString country READ country WRITE setCountry) 0017 Q_PROPERTY(QString name READ name WRITE setName) 0018 Q_PROPERTY(QString pbfFile READ pbfFile WRITE setPbfFile) 0019 Q_PROPERTY(QString id READ id WRITE setId) 0020 Q_PROPERTY(QString path READ path WRITE setPath) 0021 0022 public: 0023 Region(); 0024 0025 QString name() const; 0026 0027 QString continent() const; 0028 0029 QString country() const; 0030 0031 void setName(const QString& arg); 0032 0033 void setContinent(const QString& arg); 0034 0035 void setCountry(const QString& arg); 0036 0037 QString id() const; 0038 0039 void setId(const QString &id); 0040 0041 QString pbfFile() const; 0042 0043 void setPbfFile(const QString &pbfFile); 0044 0045 QString path() const; 0046 0047 void setPath(const QString &path); 0048 0049 bool operator==(const Region &other) const; 0050 0051 static QString fileSize(const QFileInfo &file); 0052 0053 public Q_SLOTS: 0054 0055 private: 0056 QString m_name; 0057 QString m_continent; 0058 QString m_country; 0059 QString m_pbfFile; 0060 QString m_id; 0061 QString m_path; 0062 }; 0063 0064 #endif // REGION_H