Introducing an abstract layer above BufferWidget and Chat{Widget|View}. This allows
[quassel.git] / src / qtui / chatview.h
index 7927316..cc627c7 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-07 by the Quassel IRC Team                         *
+ *   Copyright (C) 2005-08 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 
 #include <QGraphicsView>
 
+#include "abstractbuffercontainer.h"
+
 class AbstractUiMsg;
 class Buffer;
 class ChatLine;
 class ChatScene;
 
-class ChatView : public QGraphicsView {
+class ChatView : public QGraphicsView, public AbstractChatView {
   Q_OBJECT
 
   public:
@@ -38,7 +40,7 @@ class ChatView : public QGraphicsView {
     ChatScene *scene() const;
 
   public slots:
-/*
+
     void clear();
 
     void prependMsg(AbstractUiMsg *);
@@ -49,8 +51,8 @@ class ChatView : public QGraphicsView {
     void prependChatLines(QList<ChatLine *>);
     void appendChatLines(QList<ChatLine *>);
 
-    void setContents(QList<ChatLine *>);
-*/
+    void setContents(const QList<AbstractUiMsg *> &);
+
   private:
     ChatScene *_scene;
 };