2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Henri Lampela - henri.lampela@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,
24 User::User(const QString &address, const QPointF &coordinates, const QString &name,
25 const QString ¬e, const QUrl &imageUrl, const QString ×tamp, const bool &type,
26 const QString &userId, const QString &units, const double &value)
28 , m_coordinates(coordinates)
31 , m_profileImageUrl(imageUrl)
32 , m_timestamp(timestamp)
56 void User::setAddress(const QString &address)
61 void User::setCoordinates(const QPointF &coordinates)
63 m_coordinates = coordinates;
66 void User::setDistance(const double &value, const QString &units)
72 void User::setNote(const QString ¬e)
77 void User::setProfileImage(const QPixmap &image)
79 m_profileImage = image;
82 void User::setProfileImageUrl(const QUrl &imageUrl)
84 m_profileImageUrl = imageUrl;
87 void User::setTimestamp(const QString ×tamp)
89 m_timestamp = timestamp;
92 const QString& User::address() const
97 const QPointF& User::coordinates() const
102 void User::distance(double &value, QString &units) const
108 const QString& User::name() const
113 const QString& User::note() const
118 const QPixmap& User::profileImage() const
120 return m_profileImage;
123 const QUrl& User::profileImageUrl() const
125 return m_profileImageUrl;
128 const QString& User::timestamp() const
133 const bool& User::type() const
138 const QString& User::userId() const