File indexing completed on 2024-05-12 17:08:38

0001 /*
0002  *  SPDX-FileCopyrightText: 2021 Felipe Kinoshita <kinofhek@gmail.com>
0003  *  SPDX-FileCopyrightText: 2022 Nate Graham <nate@kde.org>
0004  *
0005  *  SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006  */
0007 
0008 #include "QObject"
0009 
0010 class Controller : public QObject
0011 {
0012     Q_OBJECT
0013 public:
0014     Q_INVOKABLE static void launchApp(const QString &program);
0015     Q_INVOKABLE static void runCommand(const QString &command);
0016     Q_INVOKABLE static void runCommand(const QString &command, const QString &desktopFilename);
0017     Q_INVOKABLE bool networkAlreadyConnected();
0018     Q_INVOKABLE bool userFeedbackAvailable();
0019     Q_INVOKABLE QStringList distroPages();
0020 
0021     Q_PROPERTY(QString newPlasmaVersion MEMBER m_newPlasmaVersion NOTIFY newPlasmaVersionChanged)
0022 
0023     void setPlasmaUpgradeVersion(const QString &version);
0024 
0025 Q_SIGNALS:
0026     void newPlasmaVersionChanged();
0027 
0028 private:
0029     QString m_newPlasmaVersion;
0030 };