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 QUrl &imageUrlBig,
26 const QString ×tamp, const bool &type, const QString &userId,
27 const QString &units, const double &value)
29 , m_coordinates(coordinates)
32 , m_profileImageUrl(imageUrl)
33 , m_profileImageUrlBig(imageUrlBig)
34 , m_timestamp(timestamp)
58 void User::setAddress(const QString &address)
63 void User::setCoordinates(const QPointF &coordinates)
65 m_coordinates = coordinates;
68 void User::setDistance(const double &value, const QString &units)
74 void User::setNote(const QString ¬e)
79 void User::setProfileImage(const QPixmap &image)
81 m_profileImage = image;
84 void User::setProfileImageBig(const QPixmap &image)
86 m_profileImageBig = image;
89 void User::setProfileImageUrl(const QUrl &imageUrl)
91 m_profileImageUrl = imageUrl;
94 void User::setProfileImageUrlBig(const QUrl &imageUrl)
96 m_profileImageUrlBig = imageUrl;
99 void User::setTimestamp(const QString ×tamp)
101 m_timestamp = timestamp;
104 const QString& User::address() const
109 const QPointF& User::coordinates() const
111 return m_coordinates;
114 void User::distance(double &value, QString &units) const
120 const QString& User::name() const
125 const QString& User::note() const
130 const QPixmap& User::profileImage() const
132 return m_profileImage;
135 const QPixmap& User::profileImageBig() const
137 return m_profileImageBig;
140 const QUrl& User::profileImageUrl() const
142 return m_profileImageUrl;
145 const QUrl& User::profileImageUrlBig() const
147 return m_profileImageUrlBig;
150 const QString& User::timestamp() const
155 const bool& User::type() const
160 const QString& User::userId() const