Syncing my state before starting to reorganize the UI parts of the source...
[quassel.git] / src / qtopia / chatline.cpp
index 28ce89d..531fe28 100644 (file)
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
+#include <QtCore>
+
 #include "chatline.h"
 
 ChatLine::ChatLine(Message msg) {
-  
-
-  
+  _text = msg.text();  // FIXME
+  _sender = msg.sender();
+  _timeStamp = msg.timeStamp();
+  _msgId = msg.msgId();
+  _bufferInfo = msg.buffer();
 
+  _htmlSender = formattedToHtml(msg.formattedSender());
+  _htmlText = formattedToHtml(msg.formattedText());
+  _htmlTimeStamp = formattedToHtml(msg.formattedTimeStamp());
 }
 
 QString ChatLine::sender() const {
@@ -39,11 +46,28 @@ MsgId ChatLine::msgId() const {
   return _msgId;
 }
 
-BufferId ChatLine::bufferId() const {
-  return _bufferId;
+BufferInfo ChatLine::bufferInfo() const {
+  return _bufferInfo;
 }
 
 QDateTime ChatLine::timeStamp() const {
   return _timeStamp;
 }
 
+QString ChatLine::htmlSender() const {
+  return _htmlSender;
+}
+
+QString ChatLine::htmlText() const {
+  return _htmlText;
+}
+
+QString ChatLine::htmlTimeStamp() const {
+  return _htmlTimeStamp;
+}
+
+
+QString ChatLine::formattedToHtml(const QString &f) {
+   
+  return f;
+}