#ifndef FIRSTINDEX_H #define FIRSTINDEX_H #include #include #include //#include #include "traverse_bfs.h" #include "global-settings.h" #include "index-generator.h" #include "inotify-index.h" #include "file-utils.h" class FirstIndex : public QThread, public Traverse_BFS { public: FirstIndex(const QString&); ~FirstIndex(); virtual void DoSomething(const QFileInfo &) final; protected: void run() override; private: FirstIndex(const FirstIndex&) = delete; void operator=(const FirstIndex&) = delete; bool bool_dataBaseStatusOK = false; bool bool_dataBaseExist = false; IndexGenerator* p_indexGenerator = nullptr; //here should be refact // MessageListManager* mlm; //test QQueue>* q_index; QQueue* q_content_index; const QVector targetFileTypeVec ={ // QString(".doc"), QString(".docx"), // QString(".ppt"), // QString(".pptx"), // QString(".xls"), // QString(".xlsx"), QString(".txt")}; }; #endif // FIRSTINDEX_H