KWaylandServer

primaryselectionsource_v1_interface.h
1 /*
2  SPDX-FileCopyrightText: 2020 David Edmundson <[email protected]>
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 "abstract_data_source.h"
9 
10 #include <KWaylandServer/kwaylandserver_export.h>
11 
12 #include "primaryselectiondevicemanager_v1_interface.h"
13 
14 namespace KWaylandServer
15 {
16 class PrimarySelectionSourceV1InterfacePrivate;
17 
18 /**
19  * @brief Represents the Resource for the zwp_primary_selection_source_v1 interface.
20  * Lifespan is mapped to the underlying object
21  */
22 class KWAYLANDSERVER_EXPORT PrimarySelectionSourceV1Interface : public AbstractDataSource
23 {
24  Q_OBJECT
25 public:
27 
28  void requestData(const QString &mimeType, qint32 fd) override;
29  void cancel() override;
30 
31  QStringList mimeTypes() const override;
32 
33  static PrimarySelectionSourceV1Interface *get(wl_resource *native);
34  wl_client *client() const override;
35 
36 private:
37  friend class PrimarySelectionDeviceManagerV1InterfacePrivate;
38  explicit PrimarySelectionSourceV1Interface(PrimarySelectionDeviceManagerV1Interface *parent, ::wl_resource *resource);
39 
41 };
42 
43 }
44 
The AbstractDataSource class abstracts the data that can be transferred to another client...
Represents the Global for zwp_primary_selection_manager_v1 interface.
Represents the Resource for the zwp_primary_selection_source_v1 interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 23:08:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.