kwin/screencast/screencastmanager.h
Vlad Zahorodnii 1fb9f6f13a Switch to SPDX license markers
The main advantage of SPDX license identifiers over the traditional
license headers is that it's more difficult to overlook inappropriate
licenses for kwin, for example GPL 3. We also don't have to copy a
lot of boilerplate text.

In order to create this change, I ran licensedigger -r -c from the
toplevel source directory.
2020-08-07 19:57:56 +00:00

36 lines
971 B
C++

/*
* 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>
namespace KWin
{
class PipeWireStream;
class ScreencastManager : public QObject
{
Q_OBJECT
public:
explicit ScreencastManager(QObject *parent = nullptr);
void streamWindow(KWaylandServer::ScreencastStreamInterface *stream, const QString &winid);
void streamOutput(KWaylandServer::ScreencastStreamInterface *stream,
::wl_resource *outputResource,
KWaylandServer::ScreencastInterface::CursorMode mode);
private:
void integrateStreams(KWaylandServer::ScreencastStreamInterface *waylandStream, PipeWireStream *pipewireStream);
KWaylandServer::ScreencastInterface *m_screencast;
};
} // namespace KWin