mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibCore: Move LibGUI/GNotifier to LibCore/CNotifier.
This commit is contained in:
parent
b2542414d7
commit
fc1d3074de
15 changed files with 53 additions and 53 deletions
|
@ -4,7 +4,7 @@
|
|||
#include "IRCLogBuffer.h"
|
||||
#include "IRCWindow.h"
|
||||
#include "IRCWindowListModel.h"
|
||||
#include <LibGUI/GNotifier.h>
|
||||
#include <LibCore/CNotifier.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
|
@ -47,8 +47,8 @@ void IRCClient::set_server(const String &hostname, int port)
|
|||
|
||||
void IRCClient::on_socket_connected()
|
||||
{
|
||||
m_notifier = make<GNotifier>(m_socket->fd(), GNotifier::Read);
|
||||
m_notifier->on_ready_to_read = [this] (GNotifier&) { receive_from_server(); };
|
||||
m_notifier = make<CNotifier>(m_socket->fd(), CNotifier::Read);
|
||||
m_notifier->on_ready_to_read = [this] { receive_from_server(); };
|
||||
|
||||
send_user();
|
||||
send_nick();
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
class IRCChannel;
|
||||
class IRCQuery;
|
||||
class IRCWindowListModel;
|
||||
class GNotifier;
|
||||
class CNotifier;
|
||||
|
||||
class IRCClient final : public CObject {
|
||||
friend class IRCChannel;
|
||||
|
@ -118,7 +118,7 @@ private:
|
|||
|
||||
String m_nickname;
|
||||
Vector<char> m_line_buffer;
|
||||
OwnPtr<GNotifier> m_notifier;
|
||||
OwnPtr<CNotifier> m_notifier;
|
||||
HashMap<String, RetainPtr<IRCChannel>> m_channels;
|
||||
HashMap<String, RetainPtr<IRCQuery>> m_queries;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue