aboutsummaryrefslogtreecommitdiffstats
path: root/launcher/src/shortcutappmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/src/shortcutappmodel.h')
-rw-r--r--launcher/src/shortcutappmodel.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/launcher/src/shortcutappmodel.h b/launcher/src/shortcutappmodel.h
deleted file mode 100644
index e11e121..0000000
--- a/launcher/src/shortcutappmodel.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifndef SHORTCUTAPPMODEL_H
-#define SHORTCUTAPPMODEL_H
-
-#include <QtCore/QAbstractListModel>
-#include <QXmlStreamReader>
-#include <QXmlStreamWriter>
-#include <QFile>
-#include <QProcess>
-#include <QThread>
-
-struct RegisterApp {
- QString id;
- QString name;
- QString icon;
- bool isBlank;
-};
-
-class ShortcutAppModel : public QAbstractListModel
-{
- Q_OBJECT
-public:
- explicit ShortcutAppModel(QObject *parent = nullptr);
- ~ShortcutAppModel();
-
- int rowCount(const QModelIndex &parent = QModelIndex()) const override;
-
- QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
- QHash<int, QByteArray> roleNames() const override;
-
- Q_INVOKABLE QString getId(int index) const;
- Q_INVOKABLE QString getName(int index) const;
- Q_INVOKABLE QString getIcon(int index) const;
- Q_INVOKABLE bool isBlank(int index) const;
-
-public slots:
- void shortcutUpdate(QStringList shortcut_list);
-
-signals:
- void updateShortcut();
-
-private:
- void init();
- void getAppQueue();
- void setAppQueuePoint(QString id, QString name);
- QString getIconPath(QString id);
-
- class Private;
- Private *d;
- RegisterApp app;
-
-};
-
-#endif // SHORTCUTAPPMODEL_H