1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

IRCClient: Modernize Core::Object usage

This commit is contained in:
Andreas Kling 2020-02-23 09:29:35 +01:00
parent a70cc5ca1d
commit 8efafdfc12
4 changed files with 27 additions and 25 deletions

View file

@ -32,8 +32,8 @@
#include <LibGUI/Window.h>
class IRCAppWindow : public GUI::Window {
C_OBJECT(IRCAppWindow);
public:
IRCAppWindow();
virtual ~IRCAppWindow() override;
static IRCAppWindow& the();
@ -41,6 +41,8 @@ public:
void set_active_window(IRCWindow&);
private:
IRCAppWindow();
void setup_client();
void setup_actions();
void setup_menus();
@ -49,7 +51,7 @@ private:
void update_part_action();
IRCWindow& create_window(void* owner, IRCWindow::Type, const String& name);
IRCClient m_client;
NonnullRefPtr<IRCClient> m_client;
RefPtr<GUI::StackWidget> m_container;
RefPtr<GUI::TableView> m_window_list;
RefPtr<GUI::Action> m_join_action;