00001 /* 00002 Situare - A location system for Facebook 00003 Copyright (C) 2010 Ixonos Plc. Authors: 00004 00005 Jussi Laitinen - jussi.laitinen@ixonos.com 00006 00007 Situare is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 version 2 as published by the Free Software Foundation. 00010 00011 Situare is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with Situare; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00019 USA. 00020 */ 00021 00022 #ifndef FRIENDLISTITEM_H 00023 #define FRIENDLISTITEM_H 00024 00025 #include "coordinates/geocoordinate.h" 00026 #include "extendedlistitem.h" 00027 00028 class User; 00029 00035 class FriendListItem : public ExtendedListItem 00036 { 00037 00038 public: 00044 FriendListItem(); 00045 00049 ~FriendListItem(); 00050 00051 /****************************************************************************** 00052 * MEMBER FUNCTIONS AND SLOTS 00053 ******************************************************************************/ 00054 public: 00060 GeoCoordinate coordinates() const; 00061 00067 QString facebookId() const; 00068 00074 void setAvatarImage(const QPixmap &image); 00075 00081 void setCoordinates(const GeoCoordinate &coordinates); 00082 00088 void setUserData(User *user); 00089 00090 private: 00099 void setDistanceIcon(double value, const QString &unit); 00100 00106 void setFacebookId(const QString &facebookId); 00107 00108 /****************************************************************************** 00109 * DATA MEMBERS 00110 ******************************************************************************/ 00111 private: 00112 QString m_facebookId; 00113 00114 GeoCoordinate m_coordinates; 00115 }; 00116 00117 #endif // FRIENDLISTITEM_H