kwin/screencast/screencastmanager.h

37 lines
972 B
C
Raw Normal View History

/*
2020-08-02 22:22:19 +00:00
SPDX-FileCopyrightText: 2018-2020 Red Hat Inc
SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org>
SPDX-FileContributor: Jan Grulich <jgrulich@redhat.com>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include <KWaylandServer/screencast_interface.h>
2020-07-28 13:37:04 +00:00
namespace KWin
{
class PipeWireStream;
2020-07-27 11:07:57 +00:00
class ScreencastManager : public QObject
{
Q_OBJECT
2020-07-27 11:07:57 +00:00
public:
2020-07-27 11:07:57 +00:00
explicit ScreencastManager(QObject *parent = nullptr);
void streamWindow(KWaylandServer::ScreencastStreamInterface *stream, const QString &winid);
void streamOutput(KWaylandServer::ScreencastStreamInterface *stream,
2020-07-27 11:07:57 +00:00
::wl_resource *outputResource,
KWaylandServer::ScreencastInterface::CursorMode mode);
private:
void integrateStreams(KWaylandServer::ScreencastStreamInterface *waylandStream, PipeWireStream *pipewireStream);
KWaylandServer::ScreencastInterface *m_screencast;
};
2020-07-28 13:37:04 +00:00
} // namespace KWin