summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2022-02-25 13:13:30 +0200
committerAndreas Kling <kling@serenityos.org>2022-02-25 22:35:12 +0100
commit2f61d32f9942d14f04eb30347ef319882f3603f1 (patch)
tree10c8456f3db34637ece0fbf9f264ac0b3d96517d /Userland/Libraries
parent2bc8e32af05a1a891a2cdc39fe6e48b694ec546e (diff)
downloadserenity-2f61d32f9942d14f04eb30347ef319882f3603f1.zip
LibGUI: Rename ClipboardServerConnection=>ConnectionToClipboardServer
This was done with CLion's automatic rename feature.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibGUI/Clipboard.cpp14
-rw-r--r--Userland/Libraries/LibGUI/Clipboard.h4
2 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Libraries/LibGUI/Clipboard.cpp b/Userland/Libraries/LibGUI/Clipboard.cpp
index a548451055..c7dbb2075a 100644
--- a/Userland/Libraries/LibGUI/Clipboard.cpp
+++ b/Userland/Libraries/LibGUI/Clipboard.cpp
@@ -13,13 +13,13 @@
namespace GUI {
-class ClipboardServerConnection final
+class ConnectionToClipboardServer final
: public IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint>
, public ClipboardClientEndpoint {
- IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard")
+ IPC_CLIENT_CONNECTION(ConnectionToClipboardServer, "/tmp/portal/clipboard")
private:
- ClipboardServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
+ ConnectionToClipboardServer(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
: IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint>(*this, move(socket))
{
}
@@ -30,16 +30,16 @@ private:
}
};
-static RefPtr<ClipboardServerConnection> s_connection;
+static RefPtr<ConnectionToClipboardServer> s_connection;
-static ClipboardServerConnection& connection()
+static ConnectionToClipboardServer& connection()
{
return *s_connection;
}
void Clipboard::initialize(Badge<Application>)
{
- s_connection = ClipboardServerConnection::try_create().release_value_but_fixme_should_propagate_errors();
+ s_connection = ConnectionToClipboardServer::try_create().release_value_but_fixme_should_propagate_errors();
}
Clipboard& Clipboard::the()
@@ -153,7 +153,7 @@ void Clipboard::clear()
connection().async_set_clipboard_data({}, {}, {});
}
-void Clipboard::clipboard_data_changed(Badge<ClipboardServerConnection>, String const& mime_type)
+void Clipboard::clipboard_data_changed(Badge<ConnectionToClipboardServer>, String const& mime_type)
{
if (on_change)
on_change(mime_type);
diff --git a/Userland/Libraries/LibGUI/Clipboard.h b/Userland/Libraries/LibGUI/Clipboard.h
index 873bb778b2..4b37c0df36 100644
--- a/Userland/Libraries/LibGUI/Clipboard.h
+++ b/Userland/Libraries/LibGUI/Clipboard.h
@@ -16,7 +16,7 @@
namespace GUI {
-class ClipboardServerConnection;
+class ConnectionToClipboardServer;
class Clipboard {
public:
@@ -47,7 +47,7 @@ public:
void set_bitmap(Gfx::Bitmap const&);
void clear();
- void clipboard_data_changed(Badge<ClipboardServerConnection>, String const& mime_type);
+ void clipboard_data_changed(Badge<ConnectionToClipboardServer>, String const& mime_type);
void register_client(Badge<ClipboardClient>, ClipboardClient& client) { m_clients.set(&client); }
void unregister_client(Badge<ClipboardClient>, ClipboardClient& client) { m_clients.remove(&client); }