mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Move from a C++ library + QML plugin to a QML plugin only for simplicity, since the homescreen switching architecture will be done from Plasma, and so use of the shell library only needs to be from QML.
41 lines
1 KiB
C++
41 lines
1 KiB
C++
/*
|
|
* SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <KConfigGroup>
|
|
#include <KConfigWatcher>
|
|
#include <KSharedConfig>
|
|
#include <QObject>
|
|
|
|
class MobileShellSettings : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(bool navigationPanelEnabled READ navigationPanelEnabled WRITE setNavigationPanelEnabled NOTIFY navigationPanelEnabledChanged)
|
|
|
|
public:
|
|
static MobileShellSettings *self();
|
|
|
|
MobileShellSettings(QObject *parent = nullptr);
|
|
|
|
bool navigationPanelEnabled() const;
|
|
void setNavigationPanelEnabled(bool navigationPanelEnabled);
|
|
|
|
QList<QString> enabledQuickSettings() const;
|
|
void setEnabledQuickSettings(QList<QString> &list);
|
|
|
|
QList<QString> disabledQuickSettings() const;
|
|
void setDisabledQuickSettings(QList<QString> &list);
|
|
|
|
Q_SIGNALS:
|
|
void navigationPanelEnabledChanged();
|
|
void enabledQuickSettingsChanged();
|
|
void disabledQuickSettingsChanged();
|
|
|
|
private:
|
|
KConfigWatcher::Ptr m_configWatcher;
|
|
KSharedConfig::Ptr m_config;
|
|
};
|