cutter/src/common/StringsTask.h

27 lines
519 B
C
Raw Normal View History

2018-05-28 20:06:24 +00:00
#ifndef STRINGSASYNCTASK_H
#define STRINGSASYNCTASK_H
2018-10-17 07:55:53 +00:00
#include "common/AsyncTask.h"
#include "core/Cutter.h"
2018-05-28 20:06:24 +00:00
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