LibGUI: Rename ClipboardServerConnection=>ConnectionToClipboardServer

This was done with CLion's automatic rename feature.
This commit is contained in:
Itamar 2022-02-25 13:13:30 +02:00 committed by Andreas Kling
parent 2bc8e32af0
commit 2f61d32f99
Notes: sideshowbarker 2024-07-17 22:41:14 +09:00
2 changed files with 9 additions and 9 deletions

View File

@ -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);

View File

@ -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); }