summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeomaptype_p.h
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@jollamobile.com>2014-07-17 12:08:30 +1000
committerAaron McCarthy <mccarthy.aaron@gmail.com>2014-07-21 02:12:30 +0200
commit4bdf3bc386d8ace566633ae56505b9875764b16a (patch)
tree9a13360f8960523f880ffdd8d8810f52582a4c52 /src/location/maps/qgeomaptype_p.h
parentf2e3523e3fcec83845a0ec73ff682367202a84f6 (diff)
downloadqtlocation-4bdf3bc386d8ace566633ae56505b9875764b16a.tar.gz
Add night property to MapType.
Similar to the mobile property this property allows applications to determine if the tile set is optimized for night time use. Change-Id: Ibaaffe6f745d90817b5938f493742fb019be0312 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/location/maps/qgeomaptype_p.h')
-rw-r--r--src/location/maps/qgeomaptype_p.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/location/maps/qgeomaptype_p.h b/src/location/maps/qgeomaptype_p.h
index 7b1cc2c9..9472157c 100644
--- a/src/location/maps/qgeomaptype_p.h
+++ b/src/location/maps/qgeomaptype_p.h
@@ -53,9 +53,9 @@
// We mean it.
//
+#include <QtCore/QString>
+#include <QtCore/QSharedDataPointer>
#include <QtLocation/qlocationglobal.h>
-#include <QString>
-#include <QSharedDataPointer>
QT_BEGIN_NAMESPACE
@@ -63,7 +63,6 @@ class QGeoMapTypePrivate;
class Q_LOCATION_EXPORT QGeoMapType
{
-
public:
enum MapStyle {
NoMap = 0,
@@ -81,7 +80,8 @@ public:
QGeoMapType();
QGeoMapType(const QGeoMapType &other);
- QGeoMapType(MapStyle style, const QString &name, const QString &description, bool mobile, int mapId);
+ QGeoMapType(MapStyle style, const QString &name, const QString &description, bool mobile,
+ bool night, int mapId);
~QGeoMapType();
QGeoMapType &operator = (const QGeoMapType &other);
@@ -93,6 +93,7 @@ public:
QString name() const;
QString description() const;
bool mobile() const;
+ bool night() const;
int mapId() const;
private: