mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
IRCClient: Rename IRCClientWindowFoo => IRCWindowFoo.
This commit is contained in:
parent
5c2d405e1f
commit
fc7f700c20
9 changed files with 59 additions and 59 deletions
35
Applications/IRCClient/IRCWindow.h
Normal file
35
Applications/IRCClient/IRCWindow.h
Normal file
|
@ -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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue