shift-shell/envmanager/devicepresets.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
550 B
C
Raw Permalink Normal View History

// SPDX-FileCopyrightText: 2025 Devin Lin <devin@kde.org>
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <QObject>
#include <KConfigGroup>
#include <KSharedConfig>
class DevicePresets : public QObject
{
Q_OBJECT
public:
DevicePresets(QObject *parent = nullptr);
void initialize();
private:
void setKey(KConfigGroup &fallbackGroup, KConfigGroup &fromGroup, KConfigGroup &toGroup, const QString &fromKey, const QString &toKey);
QStringList detectDeviceString();
KSharedConfig::Ptr m_mobileConfig;
};