Requires clients to have the X-KDE-Wayland-Interfaces=kde_lockscreenallowed_v1 set in their desktop file, then they will be able to use the kde_lockscreenallowed_v1 protocol to raise any surface above the lockscreen. The protocol has only 1 method, raise_surface to do exactly that. Makes it possible to implement https://invent.kde.org/teams/plasma-mobile/issues/-/issues/98
43 lines
1,013 B
C++
43 lines
1,013 B
C++
/*
|
|
SPDX-FileCopyrightText: 2022 Aleix Pol Gonzalez <aleixpol@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "kwin_export.h"
|
|
|
|
#include <QObject>
|
|
#include <QVector>
|
|
#include <functional>
|
|
#include <optional>
|
|
|
|
struct wl_resource;
|
|
|
|
namespace KWaylandServer
|
|
{
|
|
class Display;
|
|
class SurfaceInterface;
|
|
|
|
class LockscreenOverlayV1InterfacePrivate;
|
|
|
|
class KWIN_EXPORT LockscreenOverlayV1Interface : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_DISABLE_COPY(LockscreenOverlayV1Interface)
|
|
public:
|
|
explicit LockscreenOverlayV1Interface(Display *display, QObject *parent = nullptr);
|
|
~LockscreenOverlayV1Interface() override;
|
|
|
|
Q_SIGNALS:
|
|
/// Notifies about the @p surface being activated
|
|
void allowRequested(SurfaceInterface *surface);
|
|
|
|
private:
|
|
friend class LockscreenOverlayV1InterfacePrivate;
|
|
LockscreenOverlayV1Interface(LockscreenOverlayV1Interface *parent);
|
|
QScopedPointer<LockscreenOverlayV1InterfacePrivate> d;
|
|
};
|
|
|
|
}
|