Work-in-progress: use progress bar
[quassel.git] / src / client / treemodel.h
index a403984..2b7928c 100644 (file)
@@ -21,7 +21,9 @@
 #ifndef _TREEMODEL_H_
 #define _TREEMODEL_H_
 
-#include <QtCore>
+#include <QList>
+#include <QVariant>
+#include <QAbstractItemModel>
 
 /*****************************************
  *  general item used in the Tree Model
@@ -69,9 +71,12 @@ public:
   int rowCount(const QModelIndex &parent = QModelIndex()) const;
   int columnCount(const QModelIndex &parent = QModelIndex()) const;
 
+  void clear();
+
 protected:
   bool removeRow(int row, const QModelIndex &parent = QModelIndex());
-  
+  bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex());
+
   TreeItem *rootItem;
 };