summaryrefslogtreecommitdiff
path: root/Applications/IRCClient/IRCClient.h
diff options
context:
space:
mode:
authorBrendan Coles <bcoles@gmail.com>2020-04-02 10:03:42 +0000
committerAndreas Kling <kling@serenityos.org>2020-04-02 14:39:05 +0200
commit855f9286fad4b1e6ab09345fb96f30cc9b9f568c (patch)
tree7d418943da276e7364c1410b1bb23844c52a5928 /Applications/IRCClient/IRCClient.h
parentb3d7c5d9de37949612665201e728d8ecb27df633 (diff)
downloadserenity-855f9286fad4b1e6ab09345fb96f30cc9b9f568c.zip
IRCClient: Add channel operations to Channel application menu
Add menu options to invite user, op/deop/voice/devoice user, and cycle channel.
Diffstat (limited to 'Applications/IRCClient/IRCClient.h')
-rw-r--r--Applications/IRCClient/IRCClient.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/Applications/IRCClient/IRCClient.h b/Applications/IRCClient/IRCClient.h
index a463260606..b9eadecbea 100644
--- a/Applications/IRCClient/IRCClient.h
+++ b/Applications/IRCClient/IRCClient.h
@@ -100,13 +100,19 @@ public:
void handle_user_input_in_server(const String&);
void handle_list_channels_action();
- void handle_whois_action(const String&);
+ void handle_whois_action(const String& nick);
void handle_open_query_action(const String&);
void handle_close_query_action(const String&);
- void handle_join_action(const String&);
- void handle_part_action(const String&);
- void handle_change_nick_action(const String&);
+ void handle_join_action(const String& channel_name);
+ void handle_part_action(const String& channel_name);
+ void handle_cycle_channel_action(const String& channel_name);
+ void handle_change_nick_action(const String& nick);
void handle_change_topic_action(const String& channel_name, const String&);
+ void handle_invite_user_action(const String& channel_name, const String& nick);
+ void handle_voice_user_action(const String& channel_name, const String& nick);
+ void handle_devoice_user_action(const String& channel_name, const String& nick);
+ void handle_op_user_action(const String& channel_name, const String& nick);
+ void handle_deop_user_action(const String& channel_name, const String& nick);
void handle_kick_user_action(const String& channel_name, const String& nick, const String&);
IRCQuery* query_with_name(const String&);
@@ -137,6 +143,11 @@ private:
void send_privmsg(const String& target, const String&);
void send_notice(const String& target, const String&);
void send_topic(const String& channel_name, const String&);
+ void send_invite(const String& channel_name, const String& nick);
+ void send_voice_user(const String& channel_name, const String& nick);
+ void send_devoice_user(const String& channel_name, const String& nick);
+ void send_op_user(const String& channel_name, const String& nick);
+ void send_deop_user(const String& channel_name, const String& nick);
void send_kick(const String& channel_name, const String& nick, const String&);
void send_list();
void send_whois(const String&);