Fix default button behavior in CoreConnectDlg.
[quassel.git] / src / uisupport / bufferviewfilter.h
index d20445d..f27352e 100644 (file)
@@ -26,6 +26,7 @@
 #include <QSortFilterProxyModel>
 #include <QSet>
 // #include "buffer.h"
+#include "types.h"
 
 /*****************************************
  * Buffer View Filter
@@ -46,7 +47,7 @@ public:
   };
   Q_DECLARE_FLAGS(Modes, Mode);
 
-  BufferViewFilter(QAbstractItemModel *model, const Modes &mode, const QList<uint> &nets);
+  BufferViewFilter(QAbstractItemModel *model, const Modes &mode, const QList<NetworkId> &nets);
   
   virtual Qt::ItemFlags flags(const QModelIndex &index) const;
   virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
@@ -56,7 +57,6 @@ public:
                                                                           
 public slots:
   void removeBuffer(const QModelIndex &);
-  void invalidateFilter_();
   
 protected:
   bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
@@ -64,12 +64,12 @@ protected:
   
 private:
   Modes mode;
-  QSet<uint> networks;
-  QSet<uint> buffers;
+  QSet<NetworkId> networks;
+  QSet<BufferId> buffers;
 
   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)