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 PERSONLISTITEM_H
23 #define PERSONLISTITEM_H
25 #include "../coordinates/geocoordinate.h"
26 #include "extendedlistitem.h"
31 * @brief List item stores information about persons.
33 * @author Jussi Laitinen - jussi.laitinen (at) ixonos.com
35 class PersonListItem : 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 person data for this item.
88 void setPersonData(const User &user);
92 * @brief Sets item's Facebook ID
94 * @param facebookId item's Facebook ID
96 void setFacebookId(const QString &facebookId);
98 /******************************************************************************
100 ******************************************************************************/
102 QString m_facebookId; ///< User's Facebook ID
104 GeoCoordinate m_coordinates; ///< User coordinates
107 #endif // PERSONLISTITEM_H