bump © years
[quassel.git] / src / uisupport / bufferview.h
index b4fcbee..011deab 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2010 by the Quassel Project                        *
+ *   Copyright (C) 2005-2012 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -41,6 +41,11 @@ class BufferView : public QTreeView {
   Q_OBJECT
 
 public:
+  enum Direction {
+    Forward = 1,
+    Backward = -1
+  };
+
   BufferView(QWidget *parent = 0);
   void init();
 
@@ -58,6 +63,9 @@ public slots:
   void setRootIndexForNetworkId(const NetworkId &networkId);
   void removeSelectedBuffers(bool permanently = false);
   void menuActionTriggered(QAction *);
+  void nextBuffer();
+  void previousBuffer();
+  void hideCurrentBuffer();
 
 signals:
   void removeBuffer(const QModelIndex &);
@@ -83,6 +91,8 @@ private slots:
   void on_configChanged();
   void on_layoutChanged();
 
+  void changeBuffer(Direction direction);
+
 private:
   QPointer<BufferViewConfig> _config;