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 00023 #ifndef EXTENDEDLISTITEMSTORE_H 00024 #define EXTENDEDLISTITEMSTORE_H 00025 00026 #include <QPixmap> 00027 #include <QRect> 00028 #include <QString> 00029 00035 class ExtendedListItemStore 00036 { 00037 public: 00044 ExtendedListItemStore(const QString &text); 00045 00046 /******************************************************************************* 00047 * MEMBER FUNCTIONS AND SLOTS 00048 ******************************************************************************/ 00049 public: 00055 QPixmap icon() const; 00056 00062 void setIcon(const QPixmap &icon); 00063 00069 void setShortenedText(const QString &shortenedText); 00070 00076 QString shortenedText() const; 00077 00083 void setTextRect(const QRect &textRect); 00084 00090 QString text() const; 00091 00097 QRect textRect() const; 00098 00099 /****************************************************************************** 00100 * DATA MEMBERS 00101 ******************************************************************************/ 00102 private: 00103 QPixmap m_icon; 00104 QRect m_textRect; 00105 QString m_text; 00106 QString m_shortenedText; 00107 }; 00108 00109 #endif // EXTENDEDLISTITEMSTORE_H