File indexing completed on 2024-05-19 16:31:40

0001 /*
0002  *  SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #ifndef QUICKLAUNCH_P_H
0008 #define QUICKLAUNCH_P_H
0009 
0010 #include <QObject>
0011 #include <QUrl>
0012 #include <QVariantMap>
0013 
0014 class QuicklaunchPrivate : public QObject
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     explicit QuicklaunchPrivate(QObject *parent = nullptr);
0020 
0021     Q_INVOKABLE QVariantMap launcherData(const QUrl &url);
0022     Q_INVOKABLE void openUrl(const QUrl &url);
0023     Q_INVOKABLE void openExec(const QString &exec);
0024 
0025     Q_INVOKABLE void addLauncher(bool isPopup = false);
0026     Q_INVOKABLE void editLauncher(QUrl url, int index, bool isPopup = false);
0027 
0028 Q_SIGNALS:
0029     void launcherAdded(const QString &url, bool isPopup);
0030     void launcherEdited(const QString &url, int index, bool isPopup);
0031 };
0032 
0033 #endif // QUICKLAUNCH_P_H