2020-12-30 15:31:36 +08:00
|
|
|
#ifndef APPMATCH_H
|
|
|
|
#define APPMATCH_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QDir>
|
|
|
|
#include <QLocale>
|
|
|
|
#include <QDebug>
|
|
|
|
class AppMatch : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit AppMatch(QObject *parent = nullptr);
|
|
|
|
QStringList startMatchApp(QString input);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void getAllDesktopFilePath(QString path);
|
|
|
|
void getDesktopFilePath();
|
|
|
|
void getAppName();
|
|
|
|
void appNameMatch(QString appname,QString desktoppath);
|
|
|
|
|
|
|
|
private:
|
2020-12-30 21:41:00 +08:00
|
|
|
QString m_sourceText;
|
2020-12-30 15:31:36 +08:00
|
|
|
QStringList m_filePathList;
|
|
|
|
QStringList m_returnResult;
|
|
|
|
QStringList m_midResult;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // APPMATCH_H
|