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

IRCClient: Ask the user which IRC server to connect to on startup.

This commit is contained in:
Andreas Kling 2019-04-02 20:40:45 +02:00
parent 76ce68ac48
commit cc20eef7ef
3 changed files with 20 additions and 8 deletions

View file

@ -17,9 +17,11 @@ class IRCClient final : public GObject {
friend class IRCChannel;
friend class IRCQuery;
public:
IRCClient(const String& address, int port = 6667);
IRCClient();
virtual ~IRCClient() override;
void set_server(const String& hostname, int port = 6667);
bool connect();
String hostname() const { return m_hostname; }