mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
35 lines
739 B
C++
35 lines
739 B
C++
#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;
|
|
};
|