diff options
author | Itamar <itamar8910@gmail.com> | 2022-02-25 12:18:30 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-25 22:35:12 +0100 |
commit | 3a71748e5d16a244c21aaf28ca3c4220c47f484e (patch) | |
tree | ea2751b9752bf299a2b3e3cdd613c7f8a36b7db1 /Userland/Services/SQLServer/ConnectionFromClient.h | |
parent | efac8625703e9b059af0f32422d0d274f99ae475 (diff) | |
download | serenity-3a71748e5d16a244c21aaf28ca3c4220c47f484e.zip |
Userland: Rename IPC ClientConnection => ConnectionFromClient
This was done with CLion's automatic rename feature and with:
find . -name ClientConnection.h
| rename 's/ClientConnection\.h/ConnectionFromClient.h/'
find . -name ClientConnection.cpp
| rename 's/ClientConnection\.cpp/ConnectionFromClient.cpp/'
Diffstat (limited to 'Userland/Services/SQLServer/ConnectionFromClient.h')
-rw-r--r-- | Userland/Services/SQLServer/ConnectionFromClient.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Userland/Services/SQLServer/ConnectionFromClient.h b/Userland/Services/SQLServer/ConnectionFromClient.h new file mode 100644 index 0000000000..ae7ab80b3f --- /dev/null +++ b/Userland/Services/SQLServer/ConnectionFromClient.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2021, Jan de Visser <jan@de-visser.net> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <AK/HashMap.h> +#include <LibIPC/ConnectionFromClient.h> +#include <SQLServer/SQLClientEndpoint.h> +#include <SQLServer/SQLServerEndpoint.h> + +namespace SQLServer { + +class ConnectionFromClient final + : public IPC::ConnectionFromClient<SQLClientEndpoint, SQLServerEndpoint> { + C_OBJECT(ConnectionFromClient); + +public: + virtual ~ConnectionFromClient() override; + + virtual void die() override; + + static RefPtr<ConnectionFromClient> client_connection_for(int client_id); + +private: + explicit ConnectionFromClient(NonnullOwnPtr<Core::Stream::LocalSocket>, int client_id); + + virtual Messages::SQLServer::ConnectResponse connect(String const&) override; + virtual Messages::SQLServer::SqlStatementResponse sql_statement(int, String const&) override; + virtual void statement_execute(int) override; + virtual void disconnect(int) override; +}; + +} |