- NickModel(IrcChannel *channel = 0, QObject *parent = 0);
- virtual ~NickModel();
-
- virtual QModelIndex index(int row, int col, const QModelIndex &parent) const;
- virtual QModelIndex parent(const QModelIndex &index) const;
- virtual int rowCount(const QModelIndex &) const;
- virtual int columnCount(const QModelIndex &) const;
- virtual QVariant data(const QModelIndex &, int role) const;
- virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
-
- IrcChannel *ircChannel() const;
-
- QModelIndex indexOfUser(IrcUser *) const;
- int categoryFromModes(const QString &modes) const;
- int categoryFromIndex(const QModelIndex &index) const;
- int userCategory(IrcUser *) const;
-
- public slots:
- void setIrcChannel(IrcChannel *);
- void addUser(IrcUser *);
- void removeUser(IrcUser *);
- void removeUser(const QModelIndex &);
- void renameUser(IrcUser *);
- void changeUserModes(IrcUser *);
-
- private:
-
- IrcChannel *_ircChannel;
- QVector<QList<IrcUser *> > users;
-