diff options
author | Itamar <itamar8910@gmail.com> | 2022-02-25 13:09:27 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-25 22:35:12 +0100 |
commit | 2bc8e32af05a1a891a2cdc39fe6e48b694ec546e (patch) | |
tree | 985dd38ed41cd6108226b6c7226cf0eaa0e26b58 | |
parent | 493f604dba46108c151b55dc028c1e557bf58973 (diff) | |
download | serenity-2bc8e32af05a1a891a2cdc39fe6e48b694ec546e.zip |
LibGUI: Rename NotificationServerConnection
Rename NotificationServerConnection=>ConnectionToNotificationServer.
This was done with CLion's automatic rename feature.
-rw-r--r-- | Userland/Libraries/LibGUI/Notification.cpp | 8 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/Notification.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibGUI/Notification.cpp b/Userland/Libraries/LibGUI/Notification.cpp index 90bbd928bf..3d15afbc3d 100644 --- a/Userland/Libraries/LibGUI/Notification.cpp +++ b/Userland/Libraries/LibGUI/Notification.cpp @@ -11,10 +11,10 @@ namespace GUI { -class NotificationServerConnection final +class ConnectionToNotificationServer final : public IPC::ConnectionToServer<NotificationClientEndpoint, NotificationServerEndpoint> , public NotificationClientEndpoint { - IPC_CLIENT_CONNECTION(NotificationServerConnection, "/tmp/portal/notify") + IPC_CLIENT_CONNECTION(ConnectionToNotificationServer, "/tmp/portal/notify") friend class Notification; @@ -25,7 +25,7 @@ public: } private: - explicit NotificationServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket, Notification* notification) + explicit ConnectionToNotificationServer(NonnullOwnPtr<Core::Stream::LocalSocket> socket, Notification* notification) : IPC::ConnectionToServer<NotificationClientEndpoint, NotificationServerEndpoint>(*this, move(socket)) , m_notification(notification) { @@ -45,7 +45,7 @@ void Notification::show() { VERIFY(!m_shown && !m_destroyed); auto icon = m_icon ? m_icon->to_shareable_bitmap() : Gfx::ShareableBitmap(); - m_connection = NotificationServerConnection::try_create(this).release_value_but_fixme_should_propagate_errors(); + m_connection = ConnectionToNotificationServer::try_create(this).release_value_but_fixme_should_propagate_errors(); m_connection->show_notification(m_text, m_title, icon); m_shown = true; } diff --git a/Userland/Libraries/LibGUI/Notification.h b/Userland/Libraries/LibGUI/Notification.h index 428c6ff316..c5d94aaccc 100644 --- a/Userland/Libraries/LibGUI/Notification.h +++ b/Userland/Libraries/LibGUI/Notification.h @@ -11,12 +11,12 @@ namespace GUI { -class NotificationServerConnection; +class ConnectionToNotificationServer; class Notification : public Core::Object { C_OBJECT(Notification); - friend class NotificationServerConnection; + friend class ConnectionToNotificationServer; public: virtual ~Notification() override; @@ -62,7 +62,7 @@ private: bool m_destroyed { false }; bool m_shown { false }; - RefPtr<NotificationServerConnection> m_connection; + RefPtr<ConnectionToNotificationServer> m_connection; }; } |