X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=980d0defe098f4996da6f072c4649c391c921fc0;hp=b9884845caffff86173c8a14c7529b37fdef8d91;hb=f9fc50a5e043668a2525a6c0903ea339d4ba05b7;hpb=36b2b9680ff608f41c681b8c23865abb06a2464c diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index b9884845..980d0def 100644 --- a/src/qtui/bufferwidget.h +++ b/src/qtui/bufferwidget.h @@ -1,5 +1,5 @@ /*************************************************************************** - * 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 * @@ -26,7 +26,6 @@ #include "chatview.h" #include "types.h" -class Buffer; class ChatView; class ChatWidget; class LayoutThread; @@ -37,6 +36,8 @@ class LayoutThread; class BufferWidget : public QWidget { Q_OBJECT + Q_PROPERTY(uint currentBuffer READ currentBuffer WRITE setCurrentBuffer) + public: BufferWidget(QWidget *parent = 0); virtual ~BufferWidget(); @@ -49,23 +50,18 @@ signals: void aboutToClose(); public slots: - void setBuffer(Buffer *); + BufferId currentBuffer() const; + void setCurrentBuffer(BufferId bufferId); void saveState(); private slots: void enterPressed(); - void setActive(bool act = true); - void bufferDestroyed(QObject *); - + void removeBuffer(BufferId bufferId); private: Ui::BufferWidget ui; - //QHash _chatViews; - QHash _chatWidgets; - bool active; - - QString _networkName; - QString _bufferName; + QHash _chatWidgets; + BufferId _currentBuffer; };