summaryrefslogtreecommitdiffstats
blob: 1a9dba38abf66c5868bb518a7d5b5294a7dd6003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
/*
 * Copyright (c) 2013-2016 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <string>

#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/optional.hpp>

#include <Swiften/Base/API.h>
#include <Swiften/Base/Override.h>
#include <Swiften/Elements/Payload.h>

namespace Swift {
	class SWIFTEN_API UserLocation : public Payload {
		public:
			
			UserLocation();
			
			virtual ~UserLocation();

			const boost::optional< std::string >& getArea() const {
				return area;
			}

			void setArea(const boost::optional< std::string >& value) {
				this->area = value ;
			}

			const boost::optional< float >& getAltitude() const {
				return altitude;
			}

			void setAltitude(const boost::optional< float >& value) {
				this->altitude = value ;
			}

			const boost::optional< std::string >& getLocality() const {
				return locality;
			}

			void setLocality(const boost::optional< std::string >& value) {
				this->locality = value ;
			}

			const boost::optional< float >& getLatitude() const {
				return latitude;
			}

			void setLatitude(const boost::optional< float >& value) {
				this->latitude = value ;
			}

			const boost::optional< float >& getAccuracy() const {
				return accuracy;
			}

			void setAccuracy(const boost::optional< float >& value) {
				this->accuracy = value ;
			}

			const boost::optional< std::string >& getDescription() const {
				return description;
			}

			void setDescription(const boost::optional< std::string >& value) {
				this->description = value ;
			}

			const boost::optional< std::string >& getCountryCode() const {
				return countryCode;
			}

			void setCountryCode(const boost::optional< std::string >& value) {
				this->countryCode = value ;
			}

			const boost::optional< boost::posix_time::ptime >& getTimestamp() const {
				return timestamp;
			}

			void setTimestamp(const boost::optional< boost::posix_time::ptime >& value) {
				this->timestamp = value ;
			}

			const boost::optional< std::string >& getFloor() const {
				return floor;
			}

			void setFloor(const boost::optional< std::string >& value) {
				this->floor = value ;
			}

			const boost::optional< std::string >& getBuilding() const {
				return building;
			}

			void setBuilding(const boost::optional< std::string >& value) {
				this->building = value ;
			}

			const boost::optional< std::string >& getRoom() const {
				return room;
			}

			void setRoom(const boost::optional< std::string >& value) {
				this->room = value ;
			}

			const boost::optional< std::string >& getCountry() const {
				return country;
			}

			void setCountry(const boost::optional< std::string >& value) {
				this->country = value ;
			}

			const boost::optional< std::string >& getRegion() const {
				return region;
			}

			void setRegion(const boost::optional< std::string >& value) {
				this->region = value ;
			}

			const boost::optional< std::string >& getURI() const {
				return uri;
			}

			void setURI(const boost::optional< std::string >& value) {
				this->uri = value ;
			}

			const boost::optional< float >& getLongitude() const {
				return longitude;
			}

			void setLongitude(const boost::optional< float >& value) {
				this->longitude = value ;
			}

			const boost::optional< float >& getError() const {
				return error;
			}

			void setError(const boost::optional< float >& value) {
				this->error = value ;
			}

			const boost::optional< std::string >& getPostalCode() const {
				return postalCode;
			}

			void setPostalCode(const boost::optional< std::string >& value) {
				this->postalCode = value ;
			}

			const boost::optional< float >& getBearing() const {
				return bearing;
			}

			void setBearing(const boost::optional< float >& value) {
				this->bearing = value ;
			}

			const boost::optional< std::string >& getText() const {
				return text;
			}

			void setText(const boost::optional< std::string >& value) {
				this->text = value ;
			}

			const boost::optional< std::string >& getDatum() const {
				return datum;
			}

			void setDatum(const boost::optional< std::string >& value) {
				this->datum = value ;
			}

			const boost::optional< std::string >& getStreet() const {
				return street;
			}

			void setStreet(const boost::optional< std::string >& value) {
				this->street = value ;
			}

			const boost::optional< float >& getSpeed() const {
				return speed;
			}

			void setSpeed(const boost::optional< float >& value) {
				this->speed = value ;
			}


		private:
			boost::optional< std::string > area;
			boost::optional< float > altitude;
			boost::optional< std::string > locality;
			boost::optional< float > latitude;
			boost::optional< float > accuracy;
			boost::optional< std::string > description;
			boost::optional< std::string > countryCode;
			boost::optional< boost::posix_time::ptime > timestamp;
			boost::optional< std::string > floor;
			boost::optional< std::string > building;
			boost::optional< std::string > room;
			boost::optional< std::string > country;
			boost::optional< std::string > region;
			boost::optional< std::string > uri;
			boost::optional< float > longitude;
			boost::optional< float > error;
			boost::optional< std::string > postalCode;
			boost::optional< float > bearing;
			boost::optional< std::string > text;
			boost::optional< std::string > datum;
			boost::optional< std::string > street;
			boost::optional< float > speed;
	};
}