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 MESSAGELISTITEM_H
23 #define MESSAGELISTITEM_H
25 #include "../coordinates/geocoordinate.h"
26 #include "extendedlistitem.h"
31 * @brief Item stores message data.
33 * @author Jussi Laitinen - jussi.laitinen (at) ixonos.com
35 class MessageListItem : public ExtendedListItem
41 * Sets sub items' text width.
50 /******************************************************************************
51 * MEMBER FUNCTIONS AND SLOTS
52 ******************************************************************************/
55 * @brief Returns item's coordinates.
57 * @return item's coordinates
59 GeoCoordinate &coordinates() const;
62 * @brief Returns message's ID.
64 * @return message's ID
69 * @brief Returns new message message receiver's ID.
71 * @return new message message receiver's ID
73 QString &newMessageReceiverId() const;
76 * @brief Sets new message message receiver's ID.
78 * @return newMessageReceiverId new message message receiver's ID
80 void setNewMessageReceiverId(const QString &newMessageReceiverId);
83 * @brief Set message data for this item.
85 * @param message Messagedata
87 void setMessageData(const Message &message);
89 /******************************************************************************
91 ******************************************************************************/
93 QString m_id; ///< message's ID
94 QString m_newMessageReceiverId; ///< new message reveiver's ID
96 GeoCoordinate m_coordinates; ///< message's coordinates
99 #endif // MESSAGELISTITEM_H