Userland: Mark subclasses of IPC::{Client,Server}Connection final

This commit is contained in:
Andreas Kling 2021-05-23 09:52:41 +02:00
parent c1c252ddb2
commit a345a1f4a1
Notes: sideshowbarker 2024-07-18 17:30:41 +09:00
10 changed files with 14 additions and 11 deletions

View file

@ -14,7 +14,7 @@
#define LANGUAGE_CLIENT(language_name_, socket_name) \ #define LANGUAGE_CLIENT(language_name_, socket_name) \
namespace language_name_ { \ namespace language_name_ { \
class ServerConnection : public HackStudio::ServerConnection { \ class ServerConnection final : public HackStudio::ServerConnection { \
C_OBJECT(ServerConnection) \ C_OBJECT(ServerConnection) \
public: \ public: \
static const char* language_name() { return #language_name_; } \ static const char* language_name() { return #language_name_; } \

View file

@ -18,8 +18,7 @@
namespace LanguageServers { namespace LanguageServers {
class ClientConnection class ClientConnection : public IPC::ClientConnection<LanguageClientEndpoint, LanguageServerEndpoint> {
: public IPC::ClientConnection<LanguageClientEndpoint, LanguageServerEndpoint> {
public: public:
explicit ClientConnection(NonnullRefPtr<Core::LocalSocket>, int client_id); explicit ClientConnection(NonnullRefPtr<Core::LocalSocket>, int client_id);
~ClientConnection() override; ~ClientConnection() override;

View file

@ -14,7 +14,8 @@ namespace Audio {
class Buffer; class Buffer;
class ClientConnection : public IPC::ServerConnection<AudioClientEndpoint, AudioServerEndpoint> class ClientConnection final
: public IPC::ServerConnection<AudioClientEndpoint, AudioServerEndpoint>
, public AudioClientEndpoint { , public AudioClientEndpoint {
C_OBJECT(ClientConnection) C_OBJECT(ClientConnection)
public: public:

View file

@ -34,7 +34,8 @@ auto Launcher::Details::from_details_str(const String& details_str) -> NonnullRe
return details; return details;
} }
class LaunchServerConnection : public IPC::ServerConnection<LaunchClientEndpoint, LaunchServerEndpoint> class LaunchServerConnection final
: public IPC::ServerConnection<LaunchClientEndpoint, LaunchServerEndpoint>
, public LaunchClientEndpoint { , public LaunchClientEndpoint {
C_OBJECT(LaunchServerConnection) C_OBJECT(LaunchServerConnection)
private: private:

View file

@ -12,7 +12,8 @@
namespace GUI { namespace GUI {
class ClipboardServerConnection : public IPC::ServerConnection<ClipboardClientEndpoint, ClipboardServerEndpoint> class ClipboardServerConnection final
: public IPC::ServerConnection<ClipboardClientEndpoint, ClipboardServerEndpoint>
, public ClipboardClientEndpoint { , public ClipboardClientEndpoint {
C_OBJECT(ClipboardServerConnection); C_OBJECT(ClipboardServerConnection);

View file

@ -11,7 +11,8 @@
namespace GUI { namespace GUI {
class NotificationServerConnection : public IPC::ServerConnection<NotificationClientEndpoint, NotificationServerEndpoint> class NotificationServerConnection final
: public IPC::ServerConnection<NotificationClientEndpoint, NotificationServerEndpoint>
, public NotificationClientEndpoint { , public NotificationClientEndpoint {
C_OBJECT(NotificationServerConnection) C_OBJECT(NotificationServerConnection)

View file

@ -12,7 +12,7 @@
namespace GUI { namespace GUI {
class WindowManagerServerConnection class WindowManagerServerConnection final
: public IPC::ServerConnection<WindowManagerClientEndpoint, WindowManagerServerEndpoint> : public IPC::ServerConnection<WindowManagerClientEndpoint, WindowManagerServerEndpoint>
, public WindowManagerClientEndpoint { , public WindowManagerClientEndpoint {
C_OBJECT(WindowManagerServerConnection) C_OBJECT(WindowManagerServerConnection)

View file

@ -12,7 +12,7 @@
namespace GUI { namespace GUI {
class WindowServerConnection class WindowServerConnection final
: public IPC::ServerConnection<WindowClientEndpoint, WindowServerEndpoint> : public IPC::ServerConnection<WindowClientEndpoint, WindowServerEndpoint>
, public WindowClientEndpoint { , public WindowClientEndpoint {
C_OBJECT(WindowServerConnection) C_OBJECT(WindowServerConnection)

View file

@ -15,7 +15,7 @@ namespace Protocol {
class Request; class Request;
class RequestClient class RequestClient final
: public IPC::ServerConnection<RequestClientEndpoint, RequestServerEndpoint> : public IPC::ServerConnection<RequestClientEndpoint, RequestServerEndpoint>
, public RequestClientEndpoint { , public RequestClientEndpoint {
C_OBJECT(RequestClient); C_OBJECT(RequestClient);

View file

@ -15,7 +15,7 @@ namespace Protocol {
class WebSocket; class WebSocket;
class WebSocketClient class WebSocketClient final
: public IPC::ServerConnection<WebSocketClientEndpoint, WebSocketServerEndpoint> : public IPC::ServerConnection<WebSocketClientEndpoint, WebSocketServerEndpoint>
, public WebSocketClientEndpoint { , public WebSocketClientEndpoint {
C_OBJECT(WebSocketClient); C_OBJECT(WebSocketClient);