KWayland

idleinhibit_interface.cpp
1 /*
2  SPDX-FileCopyrightText: 2017 Martin Flöser <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 #include "idleinhibit_interface_p.h"
7 
8 namespace KWayland
9 {
10 namespace Server
11 {
12 IdleInhibitManagerInterface::Private::Private(IdleInhibitManagerInterface *q,
13  Display *d,
14  const wl_interface *interface,
15  quint32 version,
16  IdleInhibitManagerInterfaceVersion interfaceVersion)
17  : Global::Private(d, interface, version)
18  , interfaceVersion(interfaceVersion)
19  , q(q)
20 {
21 }
22 
23 IdleInhibitManagerInterface::IdleInhibitManagerInterface(Private *d, QObject *parent)
24  : Global(d, parent)
25 {
26 }
27 
28 IdleInhibitManagerInterface::~IdleInhibitManagerInterface() = default;
29 
30 IdleInhibitManagerInterfaceVersion IdleInhibitManagerInterface::interfaceVersion() const
31 {
32  Q_D();
33  return d->interfaceVersion;
34 }
35 
36 IdleInhibitManagerInterface::Private *IdleInhibitManagerInterface::d_func() const
37 {
38  return reinterpret_cast<Private *>(d.data());
39 }
40 
41 }
42 }
IdleInhibitManagerInterfaceVersion
Enum describing the interface versions the IdleInhibitManagerInterface can support.
unsigned int version()
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 03:56:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.