File indexing completed on 2024-11-10 04:56:53
0001 /* 0002 SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <KQuickManagedConfigModule> 0010 #include <QAbstractListModel> 0011 0012 #include <kwinxwaylandsettings.h> 0013 0014 class KWinXwaylandData; 0015 0016 class KcmXwayland : public KQuickManagedConfigModule 0017 { 0018 Q_OBJECT 0019 Q_PROPERTY(KWinXwaylandSettings *settings READ settings CONSTANT) 0020 0021 public: 0022 explicit KcmXwayland(QObject *parent, const KPluginMetaData &metaData); 0023 ~KcmXwayland() override; 0024 0025 KWinXwaylandSettings *settings() const 0026 { 0027 return m_settings; 0028 } 0029 0030 private: 0031 void refresh(); 0032 0033 KWinXwaylandData *const m_data; 0034 KWinXwaylandSettings *const m_settings; 0035 };