mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
0b7baa7e5a
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
35 lines
1.3 KiB
C++
35 lines
1.3 KiB
C++
/*
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibIPC/ConnectionFromClient.h>
|
|
#include <WindowServer/ScreenLayout.h>
|
|
|
|
// Must be included after WindowServer/ScreenLayout.h
|
|
#include <NotificationServer/NotificationClientEndpoint.h>
|
|
#include <NotificationServer/NotificationServerEndpoint.h>
|
|
|
|
namespace NotificationServer {
|
|
|
|
class ConnectionFromClient final : public IPC::ConnectionFromClient<NotificationClientEndpoint, NotificationServerEndpoint> {
|
|
C_OBJECT(ConnectionFromClient)
|
|
public:
|
|
~ConnectionFromClient() override = default;
|
|
|
|
virtual void die() override;
|
|
|
|
private:
|
|
explicit ConnectionFromClient(NonnullOwnPtr<Core::Stream::LocalSocket>, 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;
|
|
};
|
|
|
|
}
|