X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fnicklistwidget.h;h=b21182dd8779cd70a30190f85040397272c0cf9c;hp=579d8fbf564d32ca59708d9ca216b422de47d85f;hb=e5ef65b239e9a128a5cf86e6eef9bce1fd098448;hpb=e671e9da1edaab37ec403f575979f9a92a766e9a diff --git a/src/qtui/nicklistwidget.h b/src/qtui/nicklistwidget.h index 579d8fbf..b21182dd 100644 --- a/src/qtui/nicklistwidget.h +++ b/src/qtui/nicklistwidget.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 * @@ -22,6 +22,7 @@ #define _NICKLISTWIDGET_H_ #include "ui_nicklistwidget.h" +#include "types.h" #include @@ -31,16 +32,24 @@ class NickView; class NickListWidget : public QWidget { Q_OBJECT - public: - NickListWidget(QWidget *parent = 0); - - public slots: - void setBuffer(Buffer *); - - private: - Ui::NickListWidget ui; - QHash nickViews; - + Q_PROPERTY(BufferId currentBuffer READ currentBuffer WRITE setCurrentBuffer); // FIXME BufferId + +public: + NickListWidget(QWidget *parent = 0); + +public slots: + BufferId currentBuffer() const; + void setCurrentBuffer(BufferId bufferId); + void reset(); + +private slots: + void removeBuffer(BufferId bufferId); + +private: + Ui::NickListWidget ui; + QHash nickViews; + BufferId _currentBuffer; + }; #endif