• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • tools
  • osm-sisyphus
region.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2011 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #ifndef REGION_H
12 #define REGION_H
13 
14 #include <QString>
15 #include <QObject>
16 #include <QFileInfo>
17 
18 class Region
19 {
20  Q_PROPERTY(QString continent READ continent WRITE setContinent)
21  Q_PROPERTY(QString country READ country WRITE setCountry)
22  Q_PROPERTY(QString name READ name WRITE setName)
23  Q_PROPERTY(QString pbfFile READ pbfFile WRITE setPbfFile)
24  Q_PROPERTY(QString id READ id WRITE setId)
25  Q_PROPERTY(QString path READ path WRITE setPath)
26 
27 public:
28  Region();
29 
30  QString name() const;
31 
32  QString continent() const;
33 
34  QString country() const;
35 
36  void setName(QString arg);
37 
38  void setContinent(QString arg);
39 
40  void setCountry(QString arg);
41 
42  QString id() const;
43 
44  void setId(const QString &id);
45 
46  QString pbfFile() const;
47 
48  void setPbfFile(const QString &pbfFile);
49 
50  QString path() const;
51 
52  void setPath(const QString &path);
53 
54  bool operator==(const Region &other) const;
55 
56  static QString fileSize(const QFileInfo &file);
57 
58 public slots:
59 
60 private:
61  QString m_name;
62  QString m_continent;
63  QString m_country;
64  QString m_pbfFile;
65  QString m_id;
66  QString m_path;
67 };
68 
69 #endif // REGION_H
Region::pbfFile
QString pbfFile() const
Region::setName
void setName(QString arg)
Definition: region.cpp:35
Region::setPbfFile
void setPbfFile(const QString &pbfFile)
Definition: region.cpp:65
Region::path
QString path() const
Region
Definition: region.h:18
Region::continent
QString continent() const
Region::setPath
void setPath(const QString &path)
Definition: region.cpp:75
Region::country
QString country() const
Region::setCountry
void setCountry(QString arg)
Definition: region.cpp:45
Region::name
QString name() const
Region::setId
void setId(const QString &id)
Definition: region.cpp:55
Region::setContinent
void setContinent(QString arg)
Definition: region.cpp:40
Region::fileSize
static QString fileSize(const QFileInfo &file)
Definition: region.cpp:90
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal