File indexing completed on 2024-09-08 03:42:25
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 #ifndef KWINDOWSYSTEM_P_H 0007 #define KWINDOWSYSTEM_P_H 0008 0009 #include "netwm_def.h" 0010 #include <QStringList> 0011 #include <QWidgetList> //For WId 0012 #include <kwindowsystem_export.h> 0013 0014 class NETWinInfo; 0015 0016 class KWINDOWSYSTEM_EXPORT KWindowSystemPrivate : public NET 0017 { 0018 public: 0019 virtual ~KWindowSystemPrivate(); 0020 virtual void activateWindow(QWindow *win, long time = 0) = 0; 0021 virtual bool showingDesktop() = 0; 0022 virtual void setShowingDesktop(bool showing) = 0; 0023 }; 0024 0025 class KWINDOWSYSTEM_EXPORT KWindowSystemPrivateV2 : public KWindowSystemPrivate 0026 { 0027 public: 0028 virtual void requestToken(QWindow *win, uint32_t serial, const QString &app_id) = 0; 0029 virtual void setCurrentToken(const QString &token) = 0; 0030 virtual quint32 lastInputSerial(QWindow *window) = 0; 0031 virtual void setMainWindow(QWindow *window, const QString &handle) = 0; 0032 virtual void exportWindow(QWindow *window) = 0; 0033 virtual void unexportWindow(QWindow *window) = 0; 0034 }; 0035 0036 #endif