OK, disabled warnings for the moment :)
[quassel.git] / src / qtui / nicklistwidget.h
index 05f3235..b21182d 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  *
@@ -22,6 +22,7 @@
 #define _NICKLISTWIDGET_H_
 
 #include "ui_nicklistwidget.h"
+#include "types.h"
 
 #include <QHash>
 
@@ -31,17 +32,24 @@ class NickView;
 class NickListWidget : public QWidget {
   Q_OBJECT
 
-  public:
-    NickListWidget(QWidget *parent = 0);
-
-  public slots:
-    void setBuffer(Buffer *);
-    void reset();
-
-  private:
-    Ui::NickListWidget ui;
-    QHash<Buffer *, NickView *> nickViews;
-
+  Q_PROPERTY(BufferId currentBuffer READ currentBuffer WRITE setCurrentBuffer); // FIXME BufferId
+
+public:
+  NickListWidget(QWidget *parent = 0);
+
+public slots:
+  BufferId currentBuffer() const;
+  void setCurrentBuffer(BufferId bufferId);
+  void reset();
+             
+private slots:
+  void removeBuffer(BufferId bufferId);
+  
+private:
+  Ui::NickListWidget ui;
+  QHash<BufferId, NickView *> nickViews;
+  BufferId _currentBuffer;
+  
 };
 
 #endif