|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Data structure containing positioning and address info |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef POSGEOADDRESS_H |
|
19 #define POSGEOADDRESS_H |
|
20 |
|
21 #include <QObject.h> |
|
22 |
|
23 #include "posindicatorglobal.h" |
|
24 |
|
25 class PosGeoAddressPrivate; |
|
26 |
|
27 /** |
|
28 * PosGeoAddress represents a Location information. |
|
29 */ |
|
30 class POSINDICATOR_EXPORT PosGeoAddress : public QObject |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 Q_PROPERTY(double latitude READ latitude WRITE setLatitude) |
|
35 Q_PROPERTY(double longitude READ longitude WRITE setLongitude) |
|
36 Q_PROPERTY(float hAccuracy READ hAccuracy WRITE sethAccuracy) |
|
37 Q_PROPERTY(float vAccuracy READ vAccuracy WRITE setvAccuracy) |
|
38 Q_PROPERTY(float altitude READ altitude WRITE setAltitude) |
|
39 |
|
40 Q_PROPERTY(QString country READ country WRITE setCountry) |
|
41 Q_PROPERTY(QString state READ state WRITE setState) |
|
42 Q_PROPERTY(QString city READ district WRITE setDistrict) |
|
43 Q_PROPERTY(QString city READ city WRITE setCity) |
|
44 Q_PROPERTY(QString zip READ zip WRITE setZip) |
|
45 Q_PROPERTY(QString street READ street WRITE setStreet) |
|
46 Q_PROPERTY(QString number READ number WRITE setNumber) |
|
47 |
|
48 public: |
|
49 PosGeoAddress(); |
|
50 ~PosGeoAddress(); |
|
51 void setLatitude( double value ); |
|
52 double latitude() const; |
|
53 void setLongitude(double value); |
|
54 double longitude() const; |
|
55 void sethAccuracy(float value); |
|
56 float hAccuracy() const; |
|
57 void setvAccuracy(float value); |
|
58 float vAccuracy() const; |
|
59 void setAltitude(float value); |
|
60 float altitude() const ; |
|
61 void setCountry(QString value); |
|
62 QString country() const; |
|
63 void setState(QString value); |
|
64 QString state() const; |
|
65 void setDistrict(QString value); |
|
66 QString district() const ; |
|
67 void setCity(QString value); |
|
68 QString city() const; |
|
69 void setZip(QString value); |
|
70 QString zip() const; |
|
71 void setStreet(QString value); |
|
72 QString street() const; |
|
73 void setNumber(QString value); |
|
74 QString number() const; |
|
75 |
|
76 private: |
|
77 Q_DECLARE_PRIVATE_D(d_ptr, PosGeoAddress) |
|
78 |
|
79 private: |
|
80 /** |
|
81 * Pointer to private implementation. |
|
82 * Owns |
|
83 */ |
|
84 PosGeoAddressPrivate* d_ptr; |
|
85 }; |
|
86 #endif /* POSGEOADDRESS_H */ |