c6ede09ec85e9412fad6bdd115c2677750d37378
[quassel.git] / src / qtopia / chatline.cpp
1 /***************************************************************************
2  *   Copyright (C) 2005-07 by The Quassel IRC Development Team             *
3  *   devel@quassel-irc.org                                                 *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  *   This program is distributed in the hope that it will be useful,       *
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13  *   GNU General Public License for more details.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program; if not, write to the                         *
17  *   Free Software Foundation, Inc.,                                       *
18  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19  ***************************************************************************/
20
21 #include <QtCore>
22
23 #include "chatline.h"
24 #include "qtopiagui.h"
25
26 ChatLine::ChatLine(Message msg) {
27   //_styledSender = QtopiaUi::style()->styleString(msg.formattedSender());
28   //_styledText = QtopiaUi::style()->styleString(msg.formattedText());
29   _timestamp = msg.timestamp();
30   _msgId = msg.msgId();
31   _bufferInfo = msg.buffer();
32
33
34 }
35
36 QString ChatLine::sender() const {
37   return _sender;
38 }
39
40 QString ChatLine::text() const {
41   return _text;
42 }
43
44 MsgId ChatLine::msgId() const {
45   return _msgId;
46 }
47
48 BufferInfo ChatLine::bufferInfo() const {
49   return _bufferInfo;
50 }
51
52 QDateTime ChatLine::timestamp() const {
53   return _timestamp;
54 }
55
56 QString ChatLine::htmlSender() const {
57   return _htmlSender;
58 }
59
60 QString ChatLine::htmlText() const {
61   return _htmlText;
62 }
63
64 QString ChatLine::htmlTimestamp() const {
65   return _htmlTimestamp;
66 }
67
68
69 QString ChatLine::formattedToHtml(const QString &f) {
70    
71   return f;
72 }