2021-04-20 16:24:07 +08:00
|
|
|
#ifndef SEARCHMETHODMANAGER_H
|
|
|
|
#define SEARCHMETHODMANAGER_H
|
|
|
|
|
|
|
|
#include "first-index.h"
|
2021-06-10 20:43:57 +08:00
|
|
|
//#include "inotify-index.h"
|
|
|
|
#include "inotify-watch.h"
|
2021-12-14 14:43:35 +08:00
|
|
|
namespace UkuiSearch {
|
2021-04-26 15:06:47 +08:00
|
|
|
class SearchMethodManager {
|
2021-04-20 16:24:07 +08:00
|
|
|
public:
|
2021-11-22 16:03:31 +08:00
|
|
|
static SearchMethodManager *getInstance();
|
2021-04-20 16:24:07 +08:00
|
|
|
void searchMethod(FileUtils::SearchMethod sm);
|
|
|
|
private:
|
2021-11-22 16:03:31 +08:00
|
|
|
SearchMethodManager();
|
2021-04-20 16:24:07 +08:00
|
|
|
FirstIndex m_fi;
|
2021-06-10 20:43:57 +08:00
|
|
|
// InotifyIndex* m_ii;
|
|
|
|
InotifyWatch *m_iw = nullptr;
|
2021-04-20 16:24:07 +08:00
|
|
|
};
|
2021-04-30 16:28:50 +08:00
|
|
|
}
|
2021-04-20 16:24:07 +08:00
|
|
|
|
|
|
|
#endif // SEARCHMETHODMANAGER_H
|