- Bug #20 (RPL_NICKNAMEINUSER)
[quassel.git] / gui / channelwidgetinput.h
index e466f1d..eb9a9de 100644 (file)
 
 #include <QtCore>
 #include <QtGui>
+#include "tabcompleter.h"
 
 class ChannelWidgetInput : public QLineEdit {
   Q_OBJECT
 
   public:
     ChannelWidgetInput(QWidget *parent = 0);
-
+    ~ChannelWidgetInput();
+    
   protected:
     virtual bool event(QEvent *);
     virtual void keyPressEvent(QKeyEvent * event);
@@ -40,15 +42,15 @@ class ChannelWidgetInput : public QLineEdit {
   public slots:
     void updateNickList(QStringList);
     
+  signals:
+    void nickListUpdated(QStringList);
+    
   private:
     qint32 idx;
     QStringList history;
     QStringList nickList;
-    
-    bool tabMode;
-    int lastCompletionLength;
-    QStringList tabCompleteList;
-    QStringList::Iterator nextCompletion;
+
+    TabCompleter *tabComplete;
 };
 
 #endif