2023-11-06 05:27:44 +00:00
|
|
|
// SPDX-FileCopyrightText: 2023 Devin Lin <devin@kde.org>
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <KOSRelease>
|
|
|
|
|
#include <QObject>
|
2024-02-16 12:38:23 +00:00
|
|
|
#include <qqmlintegration.h>
|
2023-11-06 05:27:44 +00:00
|
|
|
|
|
|
|
|
class InitialStartUtil : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2024-01-17 15:28:09 +00:00
|
|
|
QML_ELEMENT
|
|
|
|
|
QML_SINGLETON
|
2023-11-06 05:27:44 +00:00
|
|
|
Q_PROPERTY(QString distroName READ distroName CONSTANT);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
InitialStartUtil(QObject *parent = nullptr);
|
|
|
|
|
|
|
|
|
|
QString distroName() const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
KOSRelease m_osrelease;
|
|
|
|
|
};
|