diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-16 01:15:19 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-16 01:15:19 +0100 |
commit | fc7f700c201f1202fd9534d626b423b4e09f44a0 (patch) | |
tree | f2e251a64bb31a43187568c0ec39a18983f4ec17 /Applications/IRCClient/IRCWindow.h | |
parent | 5c2d405e1fa9214d095b51ac2f9de601f97550a8 (diff) | |
download | serenity-fc7f700c201f1202fd9534d626b423b4e09f44a0.zip |
IRCClient: Rename IRCClientWindowFoo => IRCWindowFoo.
Diffstat (limited to 'Applications/IRCClient/IRCWindow.h')
-rw-r--r-- | Applications/IRCClient/IRCWindow.h | 35 |
1 files changed, 35 insertions, 0 deletions
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 <LibGUI/GWidget.h> + +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<IRCLogBuffer> m_log_buffer; +}; |