X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fnickmodel.h;h=4baa1117b1f3555178b29dc5feed0486230ac5df;hp=828f21d469594f08927bcc1c2719f2c16cc3e327;hb=fd7c2c4a41b5bb9cffcfe7a8f86a28ab7f38ac27;hpb=fb1c465a71b110984d59722bbf0ed873674daf94 diff --git a/src/client/nickmodel.h b/src/client/nickmodel.h index 828f21d4..4baa1117 100644 --- a/src/client/nickmodel.h +++ b/src/client/nickmodel.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005-07 by the Quassel IRC Team * + * Copyright (C) 2005-08 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -59,7 +59,7 @@ class NickModel : public QAbstractItemModel { int userCategory(IrcUser *) const; public slots: - void setIrcChannel(IrcChannel *); + void setIrcChannel(IrcChannel *chan = 0); void addUser(IrcUser *); void removeUser(IrcUser *); void removeUser(const QModelIndex &); @@ -79,6 +79,13 @@ class FilteredNickModel : public QSortFilterProxyModel { public: FilteredNickModel(QObject *parent = 0); + virtual ~FilteredNickModel(); + + virtual void setSourceModel(QAbstractItemModel *model); + + private slots: + void sourceRowsInserted(const QModelIndex &, int, int); + void sourceRowsRemoved(const QModelIndex &, int, int); protected: virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;