summaryrefslogtreecommitdiff
path: root/Applications/IRCClient/IRCAppWindow.h
blob: fb57f7cd7715b0d7290a17493e8312236572660f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <LibGUI/GWindow.h>
#include <LibGUI/GWidget.h>
#include "IRCClient.h"
#include "IRCClientWindow.h"

class IRCAppWindow : public GWindow {
public:
    IRCAppWindow();
    virtual ~IRCAppWindow() override;

private:
    void setup_client();
    void setup_widgets();

    IRCClientWindow& create_subwindow(IRCClientWindow::Type, const String& name);
    IRCClientWindow& ensure_window(IRCClientWindow::Type, const String& name);

    IRCClient m_client;

    GWidget* m_subwindow_container { nullptr };
};