Introducing an abstract layer above BufferWidget and Chat{Widget|View}. This allows
[quassel.git] / src / qtui / chatview.h
index 4a46d30..cc627c7 100644 (file)
 
 #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;
 };