#ifndef STRINGSASYNCTASK_H #define STRINGSASYNCTASK_H #include "utils/AsyncTask.h" #include "Cutter.h" class StringsTask : public AsyncTask { Q_OBJECT public: QString getTitle() override { return tr("Searching for Strings"); } signals: void stringSearchFinished(const QList &strings); protected: void runTask() override { auto strings = Core()->getAllStrings(); emit stringSearchFinished(strings); } }; #endif //STRINGSASYNCTASK_H