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
30 * @brief Geographic coordinate
32 * @author Sami Rämö - sami.ramo@ixonos.com
38 * @brief Constructs a null coordinate
43 * @brief Constructs a coordinate with given latitude and longitude values
45 * @param latitude Latitude value
46 * @param longitude Longitude value
48 GeoCoordinate(double latitude, double longitude);
51 * @brief Check if coordinate is (0.0, 0.0)
53 * @returns True if both latitude and longitude are 0.0, otherwise false
58 * @brief Returns the latitude value
62 double latitude() const;
65 * @brief Returns the longitude value
69 double longitude() const;
72 * @brief Sets the latitude
74 * @param latitude Latitude value
76 void setLatitude(double latitude);
79 * @brief Sets the longitude
81 * @param longitude Longitude value
83 void setLongitude(double longitude);
86 double m_latitude; ///< Latitude value
87 double m_longitude; ///< Longitude value
90 QDebug operator<<(QDebug dbg, const GeoCoordinate &c);
92 Q_DECLARE_METATYPE(GeoCoordinate)
94 #endif // GEOCOORDINATE_H