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(QString address, QPointF coordinates, QString name, QString note, QUrl imageUrl,
25 QString timestamp, bool type, QString userId, QString units, double value)
27 , m_coordinates(coordinates)
30 , m_profileImageUrl(imageUrl)
31 , m_timestamp(timestamp)
40 void User::setAddress(const QString &address)
45 void User::setCoordinates(const QPointF &coordinates)
47 m_coordinates = coordinates;
50 void User::setDistance(const double &value, const QString &units)
56 void User::setNote(const QString ¬e)
61 void User::setProfileImage(const QPixmap &image)
63 m_profileImage = image;
66 void User::setProfileImageUrl(const QUrl &imageUrl)
68 m_profileImageUrl = imageUrl;
71 void User::setTimestamp(const QString ×tamp)
73 m_timestamp = timestamp;
76 QString User::address() const
81 QPointF User::coordinates() const
86 void User::distance(double &value, QString &units) const
92 QString User::name() const
97 QString User::note() const
102 QPixmap User::profileImage() const
104 return m_profileImage;
107 QUrl User::profileImageUrl() const
109 return m_profileImageUrl;
112 QString User::timestamp() const
117 bool User::type() const
122 QString User::userId() const