From fc7f700c201f1202fd9534d626b423b4e09f44a0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 16 Mar 2019 01:15:19 +0100 Subject: IRCClient: Rename IRCClientWindowFoo => IRCWindowFoo. --- Applications/IRCClient/IRCWindow.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Applications/IRCClient/IRCWindow.h (limited to 'Applications/IRCClient/IRCWindow.h') diff --git a/Applications/IRCClient/IRCWindow.h b/Applications/IRCClient/IRCWindow.h new file mode 100644 index 0000000000..79e98ae756 --- /dev/null +++ b/Applications/IRCClient/IRCWindow.h @@ -0,0 +1,35 @@ +#pragma once + +#include + +class IRCClient; +class IRCLogBuffer; +class GTableView; +class GTextEditor; + +class IRCWindow : public GWidget { +public: + enum Type { + Server, + Channel, + Query, + }; + + explicit IRCWindow(IRCClient&, Type, const String& name, GWidget* parent); + virtual ~IRCWindow() override; + + String name() const { return m_name; } + void set_name(const String& name) { m_name = name; } + + Type type() const { return m_type; } + + void set_log_buffer(const IRCLogBuffer&); + +private: + IRCClient& m_client; + Type m_type; + String m_name; + GTableView* m_table_view { nullptr }; + GTextEditor* m_text_editor { nullptr }; + RetainPtr m_log_buffer; +}; -- cgit v1.2.3