2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Jussi Laitinen - jussi.laitinen@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,
22 #ifndef FRIENDLISTITEM_H
23 #define FRIENDLISTITEM_H
25 #include "coordinates/geocoordinate.h"
26 #include "extendedlistitem.h"
31 * @brief List item stores information about friends.
33 * @author Jussi Laitinen - jussi.laitinen (at) ixonos.com
35 class FriendListItem : public ExtendedListItem
42 * Sets sub items' text width.
51 /******************************************************************************
52 * MEMBER FUNCTIONS AND SLOTS
53 ******************************************************************************/
56 * @brief Returns item's coordinates.
58 * @return item's coordinates
60 GeoCoordinate coordinates() const;
63 * @brief Return's item's Facebook ID
65 * @return item's Facebook ID
67 QString facebookId() const;
70 * @brief Sets avatar image for this item.
74 void setAvatarImage(const QPixmap &image);
77 * @brief Sets item's coordinates.
79 * @param coordinates GeoCoordinate
81 void setCoordinates(const GeoCoordinate &coordinates);
84 * @brief Set user data for this item.
86 * @param user User pointer
88 void setUserData(User *user);
92 * @brief Set distance icon.
94 * Icon is selected by distance.
96 * @param value distance value
97 * @param unit distance unit
99 void setDistanceIcon(double value, const QString &unit);
102 * @brief Sets item's Facebook ID
104 * @param facebookId item's Facebook ID
106 void setFacebookId(const QString &facebookId);
108 /******************************************************************************
110 ******************************************************************************/
112 QString m_facebookId; ///< User's Facebook ID
114 GeoCoordinate m_coordinates; ///< User coordinates
117 #endif // FRIENDLISTITEM_H