Impelementing proper message redirection.
[quassel.git] / src / client / buffermodel.h
index 7bd3fc9..37f8916 100644 (file)
@@ -45,8 +45,12 @@ public:
   void synchronizeSelectionModel(MappedSelectionModel *selectionModel);
   void synchronizeView(QAbstractItemView *view);
 
-  QModelIndex currentIndex();
+  inline QModelIndex currentIndex() { return standardSelectionModel()->currentIndex(); }
+
+public slots:
   void setCurrentIndex(const QModelIndex &newCurrent);
+  void switchToBuffer(const BufferId &bufferId);
+  void switchToBufferIndex(const QModelIndex &bufferIdx);
 
 private slots:
   void debug_currentChanged(QModelIndex current, QModelIndex previous);