Introduce Clickable::activate() to put handling clicks in a single place
[quassel.git] / src / uisupport / clickable.h
index ce8d9a6..eb89a36 100644 (file)
 
 #include <QStackedWidget>
 
+#include "types.h"
+
+class QModelIndex;
+
 class Clickable {
 
 public:
@@ -44,6 +48,8 @@ public:
 
   inline bool isValid() const { return _type != Invalid; }
 
+  void activate(NetworkId networkId, const QString &bufferName) const;
+
 private:
   Type _type;
   quint16 _start;
@@ -55,6 +61,8 @@ class ClickableList : public QList<Clickable> {
 public:
   static ClickableList fromString(const QString &);
 
+  Clickable atCursorPos(int idx);
+
 };
 
 #endif // CLICKABLE_H_