KWin
Loading...
Searching...
No Matches
primaryselectionsource_v1.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2020 David Edmundson <davidedmundson@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6#pragma once
7
8#include "kwin_export.h"
9
12
13namespace KWin
14{
15class PrimarySelectionSourceV1InterfacePrivate;
16
22{
23 Q_OBJECT
24public:
26
27 void requestData(const QString &mimeType, qint32 fd) override;
28 void cancel() override;
29
30 QStringList mimeTypes() const override;
31
32 static PrimarySelectionSourceV1Interface *get(wl_resource *native);
33 wl_client *client() const override;
34
35private:
37 explicit PrimarySelectionSourceV1Interface(::wl_resource *resource);
38
39 std::unique_ptr<PrimarySelectionSourceV1InterfacePrivate> d;
40};
41
42}
43
The AbstractDataSource class abstracts the data that can be transferred to another client.
Represents the Resource for the zwp_primary_selection_source_v1 interface. Lifespan is mapped to the ...
Q_DECLARE_METATYPE(KWin::SwitchEvent::State)