X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=6f48f0963acc824f53c1550b87fb2615b272b2ed;hp=17e939dcbeb97dc48f21a4084b2c200397fff822;hb=cb1b16fce88b240c735b942aad44a61a1dd3f28d;hpb=2684aa5295d12e4f7c66b3011fc8b1819f3d1cbb diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index 17e939dc..6f48f096 100644 --- a/src/qtui/bufferwidget.h +++ b/src/qtui/bufferwidget.h @@ -25,23 +25,30 @@ #include "abstractbuffercontainer.h" +class ChatViewSearchBar; +class ChatViewSearchController; + class BufferWidget : public AbstractBufferContainer { Q_OBJECT public: BufferWidget(QWidget *parent); - virtual ~BufferWidget(); + ~BufferWidget(); + + inline ChatViewSearchBar *searchBar() const { return ui.searchBar; } protected: virtual AbstractChatView *createChatView(BufferId); - virtual void removeChatView(AbstractChatView *view); + virtual void removeChatView(BufferId); protected slots: - virtual void showChatView(AbstractChatView *view); + virtual void showChatView(BufferId); private: Ui::BufferWidget ui; + QHash _chatViews; + ChatViewSearchController *_chatViewSearchController; }; #endif