/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace NotificationServer { class ClientConnection final : public IPC::ClientConnection { C_OBJECT(ClientConnection) public: ~ClientConnection() override; virtual void die() override; private: explicit ClientConnection(NonnullRefPtr, int client_id); virtual void show_notification(String const&, String const&, Gfx::ShareableBitmap const&) override; virtual void close_notification() override; virtual Messages::NotificationServer::UpdateNotificationIconResponse update_notification_icon(Gfx::ShareableBitmap const&) override; virtual Messages::NotificationServer::UpdateNotificationTextResponse update_notification_text(String const&, String const&) override; virtual Messages::NotificationServer::IsShowingResponse is_showing() override; }; }