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 Sets avatar image for this item.
67 void setAvatarImage(const QPixmap &image);
70 * @brief Sets item's coordinates.
72 * @param coordinates GeoCoordinate
74 void setCoordinates(const GeoCoordinate &coordinates);
77 * @brief Set user data for this item.
79 * @param user User pointer
81 void setUserData(User *user);
85 * @brief Set distance icon.
87 * Icon is selected by distance.
89 * @param value distance value
90 * @param unit distance unit
92 void setDistanceIcon(double value, const QString &unit);
94 /******************************************************************************
96 ******************************************************************************/
98 GeoCoordinate m_coordinates; ///< User coordinates
101 #endif // FRIENDLISTITEM_H