X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtopia%2Fchatline.cpp;h=d0fbf6e05b9d6448263ed8d2c9abc843637e3122;hb=99fb0a0f1f66ae5117fa64cc204256e5b3a19499;hp=28ce89d822236605a3f2d8d4dedaa9ac9f07f386;hpb=6c6daea183c3a013a91fb8e9f250f6dece3023f8;p=quassel.git diff --git a/src/qtopia/chatline.cpp b/src/qtopia/chatline.cpp index 28ce89d8..d0fbf6e0 100644 --- a/src/qtopia/chatline.cpp +++ b/src/qtopia/chatline.cpp @@ -18,12 +18,19 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#include + #include "chatline.h" +#include "qtopiaui.h" +#include "qtopiauistyle.h" ChatLine::ChatLine(Message msg) { - + _styledSender = QtopiaUi::style()->styleString(msg.formattedSender()); + _styledText = QtopiaUi::style()->styleString(msg.formattedText()); + _timestamp = msg.timestamp(); + _msgId = msg.msgId(); + _bufferInfo = msg.buffer(); - } @@ -39,11 +46,25 @@ MsgId ChatLine::msgId() const { return _msgId; } -BufferId ChatLine::bufferId() const { - return _bufferId; +BufferInfo ChatLine::bufferInfo() const { + return _bufferInfo; +} + +QDateTime ChatLine::timestamp() const { + return _timestamp; +} + +UiStyle::StyledText ChatLine::styledSender() const { + return _styledSender; } -QDateTime ChatLine::timeStamp() const { - return _timeStamp; +UiStyle::StyledText ChatLine::styledText() const { + return _styledText; } + + +QString ChatLine::formattedToHtml(const QString &f) { + + return f; +}