1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00

IRCClient: Rename IRCSubWindow => IRCClientWindow.

This commit is contained in:
Andreas Kling 2019-03-15 13:20:46 +01:00
parent f004db19d0
commit eba5fd3f46
7 changed files with 26 additions and 26 deletions

View file

@ -2,7 +2,7 @@
#include "IRCChannel.h"
#include "IRCQuery.h"
#include "IRCLogBuffer.h"
#include "IRCSubWindow.h"
#include "IRCClientWindow.h"
#include <LibGUI/GNotifier.h>
#include <sys/socket.h>
#include <netinet/in.h>
@ -346,28 +346,28 @@ void IRCClient::handle_namreply(const Message& msg)
channel.dump();
}
void IRCClient::register_subwindow(IRCSubWindow& subwindow)
void IRCClient::register_subwindow(IRCClientWindow& subwindow)
{
if (subwindow.type() == IRCSubWindow::Server) {
if (subwindow.type() == IRCClientWindow::Server) {
m_server_subwindow = &subwindow;
subwindow.set_log_buffer(*m_log);
return;
}
if (subwindow.type() == IRCSubWindow::Channel) {
if (subwindow.type() == IRCClientWindow::Channel) {
auto it = m_channels.find(subwindow.name());
ASSERT(it != m_channels.end());
auto& channel = *(*it).value;
subwindow.set_log_buffer(channel.log());
return;
}
if (subwindow.type() == IRCSubWindow::Query) {
if (subwindow.type() == IRCClientWindow::Query) {
subwindow.set_log_buffer(ensure_query(subwindow.name()).log());
}
}
void IRCClient::unregister_subwindow(IRCSubWindow& subwindow)
void IRCClient::unregister_subwindow(IRCClientWindow& subwindow)
{
if (subwindow.type() == IRCSubWindow::Server) {
if (subwindow.type() == IRCClientWindow::Server) {
m_server_subwindow = &subwindow;
return;
}