ukui-search/libsearch/searchinterface/searchtasks/file-search-task.h

29 lines
752 B
C
Raw Normal View History

2021-12-28 15:56:41 +08:00
#ifndef FILESEARCHTASK_H
#define FILESEARCHTASK_H
#include "search-task-plugin-iface.h"
#include "search-controller.h"
#include <QIcon>
namespace UkuiSearch {
class FileSearchTask : public SearchTaskPLuginIface
{
Q_OBJECT
public:
explicit FileSearchTask(SearchController searchController);
PluginType pluginType() {return PluginType::SearchTaskPlugin;}
const QString name();
const QString description();
const QIcon icon() {return QIcon::fromTheme("folder");}
void setEnable(bool enable) {}
bool isEnable() {}
QString getSearchType();
void startSearch(SearchController searchController);
void stop();
protected:
void run();
private:
SearchController m_searchControl;
};
}
#endif // FILESEARCHTASK_H