KWayland

remote_access_interface.h
1 /*
2  SPDX-FileCopyrightText: 2016 Oleg Chernovskiy <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 #ifndef KWAYLAND_SERVER_REMOTE_ACCESS_INTERFACE_H
7 #define KWAYLAND_SERVER_REMOTE_ACCESS_INTERFACE_H
8 
9 #include "global.h"
10 
11 namespace KWayland
12 {
13 namespace Server
14 {
15 
16 class Display;
17 class OutputInterface;
18 
32 class KWAYLANDSERVER_EXPORT BufferHandle
33 {
34 public:
35  explicit BufferHandle();
36  virtual ~BufferHandle();
37  void setFd(qint32 fd);
38  void setSize(quint32 width, quint32 height);
39  void setStride(quint32 stride);
40  void setFormat(quint32 format);
41 
42  qint32 fd() const;
43  quint32 height() const;
44  quint32 width() const;
45  quint32 stride() const;
46  quint32 format() const;
47 private:
48 
49  friend class RemoteAccessManagerInterface;
50  friend class RemoteBufferInterface;
51  class Private;
53 };
54 
55 class KWAYLANDSERVER_EXPORT RemoteAccessManagerInterface : public Global
56 {
57  Q_OBJECT
58 public:
59  virtual ~RemoteAccessManagerInterface() = default;
60 
64  void sendBufferReady(const OutputInterface *output, const BufferHandle *buf);
68  bool isBound() const;
69 
70 Q_SIGNALS:
74  void bufferReleased(const BufferHandle *buf);
75 
76 private:
77  explicit RemoteAccessManagerInterface(Display *display, QObject *parent = nullptr);
78  friend class Display;
79  class Private;
80 };
81 
82 }
83 }
84 
85 #endif
Global for the wl_output interface.
Class holding the Wayland server display loop.
Definition: display.h:89
Base class for all Globals.
Definition: global.h:46
The structure server should fill to use this interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 22:53:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.