2018-05-28 20:06:24 +00:00
|
|
|
|
|
|
|
#ifndef STRINGSASYNCTASK_H
|
|
|
|
#define STRINGSASYNCTASK_H
|
|
|
|
|
|
|
|
#include "utils/AsyncTask.h"
|
|
|
|
#include "Cutter.h"
|
|
|
|
|
|
|
|
class StringsTask : public AsyncTask
|
|
|
|
{
|
2018-06-25 19:28:34 +00:00
|
|
|
Q_OBJECT
|
2018-05-28 20:06:24 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
QString getTitle() override { return tr("Searching for Strings"); }
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void stringSearchFinished(const QList<StringDescription> &strings);
|
|
|
|
|
|
|
|
protected:
|
2018-06-25 19:28:34 +00:00
|
|
|
void runTask() override
|
|
|
|
{
|
|
|
|
auto strings = Core()->getAllStrings();
|
|
|
|
emit stringSearchFinished(strings);
|
|
|
|
}
|
2018-05-28 20:06:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //STRINGSASYNCTASK_H
|