Bring back dynamic backlog fetching (move scrollbar slider to the very top to get...
[quassel.git] / src / qtui / chatview.h
index be26a11..b9c1892 100644 (file)
@@ -45,21 +45,16 @@ class ChatView : public QGraphicsView, public AbstractChatView {
 
     void clear();
 
-    void prependMsg(AbstractUiMsg *);
-    void appendMsg(AbstractUiMsg *);
-
-    void prependChatLine(ChatLine *);
-    void appendChatLine(ChatLine *);
-    void prependChatLines(QList<ChatLine *>);
-    void appendChatLines(QList<ChatLine *>);
-
-    void setContents(const QList<AbstractUiMsg *> &);
+    void setBufferForBacklogFetching(BufferId buffer);
 
   protected:
     virtual void resizeEvent(QResizeEvent *event);
 
   protected slots:
     virtual void sceneHeightChanged(qreal height);
+    virtual void verticalScrollbarChanged(int);
+    virtual void sliderPressed();
+    virtual void sliderReleased();
 
   private:
     void init(MessageFilter *filter);
@@ -67,4 +62,5 @@ class ChatView : public QGraphicsView, public AbstractChatView {
     ChatScene *_scene;
 };
 
+
 #endif