ukui-search/appmatch/app-match.h

30 lines
586 B
C
Raw Normal View History

2020-12-25 21:02:43 +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:
QString m_soureText;
QStringList m_filePathList;
QStringList m_returnResult;
2020-12-26 13:30:56 +08:00
QStringList m_midResult;
2020-12-25 21:02:43 +08:00
};
#endif // APPMATCH_H