/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace NotificationServer { class ClientConnection final : public IPC::ClientConnection , public NotificationServerEndpoint { C_OBJECT(ClientConnection) public: ~ClientConnection() override; virtual void die() override; private: explicit ClientConnection(NonnullRefPtr, int client_id); virtual OwnPtr handle(const Messages::NotificationServer::Greet&) override; virtual OwnPtr handle(const Messages::NotificationServer::ShowNotification&) override; virtual OwnPtr handle(const Messages::NotificationServer::CloseNotification& message) override; virtual OwnPtr handle(const Messages::NotificationServer::UpdateNotificationIcon& message) override; virtual OwnPtr handle(const Messages::NotificationServer::UpdateNotificationText& message) override; virtual OwnPtr handle(const Messages::NotificationServer::IsShowing& message) override; }; }