2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Sami Rämö - sami.ramo@ixonos.com
7 Situare is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 version 2 as published by the Free Software Foundation.
11 Situare is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Situare; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
23 #ifndef GEOCOORDINATE_H
24 #define GEOCOORDINATE_H
29 * @brief Geographic coordinate
31 * @author Sami Rämö - sami.ramo@ixonos.com
37 * @brief Constructs a null coordinate
42 * @brief Contsructs a coordinate with given latitude and longitude values
44 * @param latitude Latitude value
45 * @param longitude Longitude value
47 GeoCoordinate(double latitude, double longitude);
50 * @brief Check if coordinate is (0.0, 0.0)
52 * @returns True if both latitude and longitude are 0.0, otherwise false
57 * @brief Returns the latitude value
61 double latitude() const;
64 * @brief Returns the longitude value
68 double longitude() const;
71 * @brief Sets the latitude
73 * @param latitude Latitude value
75 void setLatitude(double latitude);
78 * @brief Sets the longitude
80 * @param longitude Longitude value
82 void setLongitude(double longitude);
85 double m_latitude; ///< Latitude value
86 double m_longitude; ///< Longitude value
89 QDebug operator<<(QDebug dbg, const GeoCoordinate &c);
91 #endif // GEOCOORDINATE_H