File indexing completed on 2023-09-24 08:10:57
0001 /* 0002 SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef KWINDOWINFO_DUMMY_P_H 0008 #define KWINDOWINFO_DUMMY_P_H 0009 #include "kwindowinfo_p.h" 0010 0011 /** 0012 * Dummy implementation for KWindowInfoPrivate. This is used as a fallback if there is no 0013 * implementation for the currently used windowing system platform. 0014 */ 0015 class KWindowInfoPrivateDummy : public KWindowInfoPrivate 0016 { 0017 public: 0018 KWindowInfoPrivateDummy(WId window, NET::Properties properties, NET::Properties2 properties2); 0019 ~KWindowInfoPrivateDummy() override; 0020 0021 bool valid(bool withdrawn_is_valid) const override; 0022 NET::States state() const override; 0023 bool isMinimized() const override; 0024 NET::MappingState mappingState() const override; 0025 NETExtendedStrut extendedStrut() const override; 0026 NET::WindowType windowType(NET::WindowTypes supported_types) const override; 0027 QString visibleName() const override; 0028 QString visibleNameWithState() const override; 0029 QString name() const override; 0030 QString visibleIconName() const override; 0031 QString visibleIconNameWithState() const override; 0032 QString iconName() const override; 0033 bool onAllDesktops() const override; 0034 bool isOnDesktop(int desktop) const override; 0035 int desktop() const override; 0036 QStringList activities() const override; 0037 QRect geometry() const override; 0038 QRect frameGeometry() const override; 0039 WId transientFor() const override; 0040 WId groupLeader() const override; 0041 QByteArray windowClassClass() const override; 0042 QByteArray windowClassName() const override; 0043 QByteArray windowRole() const override; 0044 QByteArray clientMachine() const override; 0045 bool actionSupported(NET::Action action) const override; 0046 }; 0047 0048 #endif