diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-07 21:51:08 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-07 21:58:57 +0200 |
commit | ea9340aeca8f6c72111813c6b2d10f8bf03681ce (patch) | |
tree | 4f4d7f408e4c59800b326a7480421b4c53c66eda /Applications/IRCClient/IRCClient.h | |
parent | d47432487d4f8d8ff04e8fe2d4dfee6fbae05814 (diff) | |
download | serenity-ea9340aeca8f6c72111813c6b2d10f8bf03681ce.zip |
IRCClient: Implement the "part from channel" action.
Also make sure the action is disabled while we're not in a window that
corresponds to an open channel. :^)
Fixes #277.
Diffstat (limited to 'Applications/IRCClient/IRCClient.h')
-rw-r--r-- | Applications/IRCClient/IRCClient.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Applications/IRCClient/IRCClient.h b/Applications/IRCClient/IRCClient.h index d591f4b527..e72b7cfc7a 100644 --- a/Applications/IRCClient/IRCClient.h +++ b/Applications/IRCClient/IRCClient.h @@ -44,6 +44,7 @@ public: Function<void()> on_disconnect; Function<void()> on_server_message; Function<void(const String&)> on_nickname_changed; + Function<void(IRCChannel&)> on_part_from_channel; Function<IRCWindow*(void*, IRCWindow::Type, const String&)> aid_create_window; Function<IRCWindow*()> aid_get_active_window; @@ -59,6 +60,8 @@ public: const IRCWindow& window_at(int index) const { return *m_windows.at(index); } IRCWindow& window_at(int index) { return *m_windows.at(index); } + void did_part_from_channel(Badge<IRCChannel>, IRCChannel&); + void handle_user_input_in_channel(const String& channel_name, const String&); void handle_user_input_in_query(const String& query_name, const String&); void handle_user_input_in_server(const String&); |