Prevent Quassel from crashing upon core dis- and reconnect and make the NickListWidgets
[quassel.git] / src / qtopia / nicklistwidget.h
index 6f35716..fe9a10e 100644 (file)
@@ -5,7 +5,7 @@
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
+ *   (at your option) version 3.                                           *
  *                                                                         *
  *   This program is distributed in the hope that it will be useful,       *
  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
@@ -25,7 +25,8 @@
 
 #include "ui_nicklistwidget.h"
 
-class NickTreeModel;
+class Buffer;
+class NickView;
 
 class NickListWidget : public QDialog {
   Q_OBJECT
@@ -35,10 +36,15 @@ class NickListWidget : public QDialog {
     ~NickListWidget();
 
   public slots:
-    void setNickModel(NickTreeModel *model);
+    void setBuffer(Buffer *);
+    void reset();
+
+  private slots:
+    void bufferDestroyed(QObject *);
 
   private:
     Ui::NickListWidget ui;
+    QHash<Buffer *, NickView *> nickViews;
 
 };