uint -> NetworkId, uint -> BufferId almost everywhere. Conversion will be made explic...
[quassel.git] / src / uisupport / bufferviewfilter.h
index 2a91733..506cbeb 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  *
@@ -25,8 +25,8 @@
 #include <QDropEvent>
 #include <QSortFilterProxyModel>
 #include <QSet>
-#include "buffer.h"
-#include "buffertreemodel.h"
+// #include "buffer.h"
+#include "types.h"
 
 /*****************************************
  * Buffer View Filter
@@ -51,7 +51,10 @@ public:
   
   virtual Qt::ItemFlags flags(const QModelIndex &index) const;
   virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
-  
+
+  QVariant data(const QModelIndex &index, int role) const;
+  QVariant foreground(const QModelIndex &index) const;
+                                                                          
 public slots:
   void removeBuffer(const QModelIndex &);
   void invalidateFilter_();
@@ -67,7 +70,7 @@ private:
 
   bool filterAcceptBuffer(const QModelIndex &) const;
   bool filterAcceptNetwork(const QModelIndex &) const;
-  void addBuffer(const uint &);
+  void addBuffer(const BufferId &);
 
 };
 Q_DECLARE_OPERATORS_FOR_FLAGS(BufferViewFilter::Modes)