Various stuff, cosmetic fixes, fiddling with IrcUsers and NetworkInfos in Buffers.
[quassel.git] / src / client / nicktreemodel.h
index 5c57674..3006d12 100644 (file)
 #ifndef _NICKTREEMODEL_H_
 #define _NICKTREEMODEL_H_
 
+#include "ircuser.h"
 #include "treemodel.h"
 
+//! Represents a single IrcUser within a NickTreeModel.
+class NickTreeItem : public TreeItem {
+  Q_OBJECT
+
+  public:
+    NickTreeItem(IrcUser *ircuser, TreeItem *parent = 0);
+
+    virtual QVariant data(int column, int row) const;
+
+  private:
+
+};
+
+//! Represents a group of nicks, such as Ops, Voiced etc.
+class NickTreeGroupItem : public TreeItem {
+  Q_OBJECT
+
+  public:
+    NickTreeGroupItem(const QString &title, TreeItem *parent = 0);
+
+    virtual QVariant data(int column, int row) const;
+
+  private:
+
+};
+
+//! Represents the IrcUsers in a given IrcChannel.
 class NickTreeModel : public TreeModel {
   Q_OBJECT
 
@@ -30,6 +58,8 @@ class NickTreeModel : public TreeModel {
     NickTreeModel(QObject *parent = 0);
     virtual ~NickTreeModel();
 
+    static QList<QVariant> defaultHeader();
+
   private:
 
 };