mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
32 lines
677 B
C++
32 lines
677 B
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 NOTIFY navigationPanelEnabledChanged)
|
|
|
|
public:
|
|
static MobileShellSettings *self();
|
|
|
|
MobileShellSettings(QObject *parent = nullptr);
|
|
|
|
bool navigationPanelEnabled() const;
|
|
|
|
Q_SIGNALS:
|
|
void navigationPanelEnabledChanged();
|
|
|
|
private:
|
|
KConfigWatcher::Ptr m_configWatcher;
|
|
KSharedConfig::Ptr m_config;
|
|
};
|